/**
 * Delivery Information Page Styles
 * Scoped to .page-delivery-information and body.page-template-template-delivery-information
 * Uses theme design system (cards, buttons, spacing)
 */

/* Scoped to delivery information page */
.page-delivery-information,
body.page-template-template-delivery-information {
    /* Inherit theme typography and spacing */
}

/* Hero Section */
.page-delivery-information .delivery-hero {
    padding: 60px 0;
    background-size: cover;
    background-position: center;
    background-color: #f7f8fa;
    position: relative;
}

.page-delivery-information .delivery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-delivery-information .delivery-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.page-delivery-information .delivery-hero__title {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #fff;
}

.page-delivery-information .delivery-hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.95);
}

.page-delivery-information .delivery-hero__cta {
    margin-top: 24px;
}

/* Section Titles */
.page-delivery-information .delivery-section__title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 32px;
    color: #3d464d;
    text-align: center;
}

/* Overview Section */
.page-delivery-information .delivery-overview {
    padding: 60px 0;
}

.page-delivery-information .delivery-overview__content {
    font-size: 16px;
    line-height: 1.75;
    color: #6c757d;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Shipping Methods Cards */
.page-delivery-information .delivery-methods {
    margin-top: 40px;
}

.page-delivery-information .delivery-method-card {
    height: 100%;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.page-delivery-information .delivery-method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-delivery-information .delivery-method-card__title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #3d464d;
}

.page-delivery-information .delivery-method-card__desc {
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 16px;
}

.page-delivery-information .delivery-method-card__meta {
    font-size: 14px;
    color: #3d464d;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.page-delivery-information .delivery-method-card__meta > div {
    margin-bottom: 8px;
}

.page-delivery-information .delivery-method-card__meta > div:last-child {
    margin-bottom: 0;
}

/* Delivery Steps */
.page-delivery-information .delivery-steps {
    padding: 60px 0;
    background-color: #f7f8fa;
}

.page-delivery-information .delivery-step {
    transition: box-shadow 0.2s ease-in-out;
}

.page-delivery-information .delivery-step:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-delivery-information .delivery-step__header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.page-delivery-information .delivery-step__number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffd333;
    color: #3d464d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.page-delivery-information .delivery-step__content {
    flex: 1;
}

.page-delivery-information .delivery-step__title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #3d464d;
}

.page-delivery-information .delivery-step__desc {
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
}

.page-delivery-information .delivery-step__toggle {
    margin-top: 12px;
    padding: 0;
    border: none;
    background: none;
    color: #3d464d;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.page-delivery-information .delivery-step__toggle:hover {
    color: #ffd333;
    text-decoration: underline;
}

.page-delivery-information .delivery-step__toggle-icon {
    transition: transform 0.2s ease-in-out;
    fill: currentColor;
}

.page-delivery-information .delivery-step__toggle[aria-expanded="true"] .delivery-step__toggle-icon {
    transform: rotate(180deg);
}

.page-delivery-information .delivery-step__details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
}

/* Shipping Zones */
.page-delivery-information .delivery-zones {
    padding: 60px 0;
}

.page-delivery-information .delivery-zones__table-wrapper {
    overflow-x: auto;
    margin-top: 32px;
}

.page-delivery-information .delivery-zones__table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-delivery-information .delivery-zones__table thead {
    background-color: #f7f8fa;
}

.page-delivery-information .delivery-zones__table th {
    padding: 16px;
    text-align: left;
    font-weight: 500;
    color: #3d464d;
    border-bottom: 2px solid #e0e0e0;
}

.page-delivery-information .delivery-zones__table td {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    color: #6c757d;
}

.page-delivery-information .delivery-zones__table tbody tr:hover {
    background-color: #f7f8fa;
}

/* Mobile Cards View for Zones */
.page-delivery-information .delivery-zones__cards {
    margin-top: 32px;
}

.page-delivery-information .delivery-zone-card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-delivery-information .delivery-zone-card__title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #3d464d;
}

.page-delivery-information .delivery-zone-card__meta > div {
    margin-bottom: 8px;
    font-size: 14px;
    color: #6c757d;
}

.page-delivery-information .delivery-zone-card__meta > div:last-child {
    margin-bottom: 0;
}

/* Notes Section */
.page-delivery-information .delivery-notes {
    padding: 60px 0;
    background-color: #f7f8fa;
}

.page-delivery-information .delivery-notes__content {
    font-size: 16px;
    line-height: 1.75;
    color: #6c757d;
    margin-bottom: 24px;
}

.page-delivery-information .delivery-notes__link {
    margin-top: 24px;
}

/* FAQ Section */
.page-delivery-information .delivery-faq {
    padding: 60px 0;
}

.page-delivery-information .delivery-faq-item {
    transition: box-shadow 0.2s ease-in-out;
}

.page-delivery-information .delivery-faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-delivery-information .delivery-faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #3d464d;
    cursor: pointer;
    padding: 16px 0;
}

.page-delivery-information .delivery-faq-item__question:hover {
    color: #ffd333;
}

.page-delivery-information .delivery-faq-item__question-text {
    flex: 1;
    margin-right: 16px;
}

.page-delivery-information .delivery-faq-item__icon {
    flex-shrink: 0;
    transition: transform 0.2s ease-in-out;
    fill: currentColor;
}

.page-delivery-information .delivery-faq-item__question[aria-expanded="true"] .delivery-faq-item__icon {
    transform: rotate(180deg);
}

.page-delivery-information .delivery-faq-item__answer {
    padding-top: 16px;
    padding-bottom: 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    line-height: 1.75;
    color: #6c757d;
}

/* CTA Section */
.page-delivery-information .delivery-cta {
    padding: 60px 0;
    background-color: #f7f8fa;
}

.page-delivery-information .delivery-cta__card {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-delivery-information .delivery-cta__title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #3d464d;
}

.page-delivery-information .delivery-cta__text {
    font-size: 16px;
    line-height: 1.75;
    color: #6c757d;
    margin-bottom: 24px;
}

.page-delivery-information .delivery-cta__button {
    margin-bottom: 16px;
}

.page-delivery-information .delivery-cta__hours {
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .page-delivery-information .delivery-hero__title {
        font-size: 28px;
    }
    
    .page-delivery-information .delivery-hero__subtitle {
        font-size: 16px;
    }
    
    .page-delivery-information .delivery-section__title {
        font-size: 24px;
    }
}

@media (max-width: 575.98px) {
    .page-delivery-information .delivery-hero {
        padding: 40px 0;
    }
    
    .page-delivery-information .delivery-hero__title {
        font-size: 24px;
    }
    
    .page-delivery-information .delivery-overview,
    .page-delivery-information .delivery-steps,
    .page-delivery-information .delivery-zones,
    .page-delivery-information .delivery-notes,
    .page-delivery-information .delivery-faq,
    .page-delivery-information .delivery-cta {
        padding: 40px 0;
    }
    
    .page-delivery-information .delivery-section__title {
        font-size: 20px;
    }
}


