/**
 * Delivery Page Styles (Оплата і доставка)
 * Modern design with WordPress content support
 */

/* ===================================
   BASE STYLES
   =================================== */

.delivery-page {
    position: relative;
    width: 100%;
    background: var(--color-bg, #F9F6F0);
    padding: 0;
}

.site-main.delivery-page {
    margin-bottom: 0 !important;
}

body.page-delivery-template .footer-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-delivery-template #page {
    padding: 0 40px;
    box-sizing: border-box;
}

.delivery-page .container {
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   ARTICLE & HEADER
   =================================== */

.delivery-page .delivery-article {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 40px 0 60px;
}

.delivery-page .delivery-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease both;
}

.delivery-page .delivery-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 52px;
    line-height: 1.1;
    color: var(--color-black, #1A1A1A);
    margin: 0;
}

/* ===================================
   CONTENT WRAPPER - WordPress Content
   =================================== */

.delivery-page .delivery-content-wrapper {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

/* Typography in content */
.delivery-page .delivery-content-wrapper h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2;
    color: var(--color-black, #1A1A1A);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid #80C242;
    display: inline-block;
}

.delivery-page .delivery-content-wrapper h2:not(:first-child) {
    margin-top: 40px;
}

.delivery-page .delivery-content-wrapper h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: var(--color-black, #1A1A1A);
    margin: 30px 0 16px 0;
}

.delivery-page .delivery-content-wrapper p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: #555555;
    margin: 0 0 20px 0;
}

.delivery-page .delivery-content-wrapper strong {
    font-weight: 700;
    color: var(--color-black, #1A1A1A);
}

/* Lists styling */
.delivery-page .delivery-content-wrapper ul,
.delivery-page .delivery-content-wrapper ol {
    margin: 0 0 24px 0;
    padding: 0;
    list-style: none;
}

.delivery-page .delivery-content-wrapper ul li,
.delivery-page .delivery-content-wrapper ol li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
}

.delivery-page .delivery-content-wrapper ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #80C242 0%, #6BA832 100%);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

.delivery-page .delivery-content-wrapper ol {
    counter-reset: list-counter;
}

.delivery-page .delivery-content-wrapper ol li::before {
    counter-increment: list-counter;
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #80C242 0%, #6BA832 100%);
    border-radius: 50%;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tables styling */
.delivery-page .delivery-content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.delivery-page .delivery-content-wrapper th,
.delivery-page .delivery-content-wrapper td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #F0F0F0;
}

.delivery-page .delivery-content-wrapper th {
    background: linear-gradient(135deg, #80C242 0%, #6BA832 100%);
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 15px;
}

.delivery-page .delivery-content-wrapper td {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #555555;
}

.delivery-page .delivery-content-wrapper tr:nth-child(even) td {
    background: #FAFAFA;
}

.delivery-page .delivery-content-wrapper tr:last-child td {
    border-bottom: none;
}

/* Highlighted text / notices */
.delivery-page .delivery-content-wrapper em {
    font-style: normal;
    color: #80C242;
    font-weight: 500;
}

/* Blockquotes for important info */
.delivery-page .delivery-content-wrapper blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: rgba(128, 194, 66, 0.1);
    border-left: 4px solid #80C242;
    border-radius: 0 12px 12px 0;
}

.delivery-page .delivery-content-wrapper blockquote p {
    margin: 0;
    color: var(--color-black, #1A1A1A);
    font-weight: 500;
}

/* Links */
.delivery-page .delivery-content-wrapper a {
    color: #80C242;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.delivery-page .delivery-content-wrapper a:hover {
    color: #6BA832;
    text-decoration: underline;
}

/* ===================================
   CTA SECTION
   =================================== */

.delivery-page .delivery-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 45px;
    background: linear-gradient(135deg, #80C242 0%, #6BA832 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(128, 194, 66, 0.3);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.delivery-page .delivery-cta__content {
    flex: 1;
}

.delivery-page .delivery-cta__title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0 0 8px 0;
}

.delivery-page .delivery-cta__text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.delivery-page .delivery-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #FFFFFF;
    color: #80C242;
    border-radius: 14px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.delivery-page .delivery-cta__btn:hover {
    background: #FFEAC4;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    body.page-delivery-template #page {
        padding: 0 20px;
    }

    .delivery-page .delivery-article {
        padding: 30px 0 50px;
    }

    .delivery-page .delivery-title {
        font-size: 44px;
    }

    .delivery-page .delivery-content-wrapper {
        padding: 40px 35px;
    }

    .delivery-page .delivery-cta {
        flex-direction: column;
        text-align: center;
        padding: 35px 30px;
    }

    .delivery-page .delivery-cta__content {
        text-align: center;
    }

    .delivery-page .delivery-cta__title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    body.page-delivery-template #page {
        padding: 0 15px;
    }

    .delivery-page .container {
        padding: 0 10px;
    }

    .delivery-page .delivery-header {
        margin-bottom: 30px;
    }

    .delivery-page .delivery-title {
        font-size: 36px;
    }

    .delivery-page .delivery-content-wrapper {
        padding: 30px 24px;
        border-radius: 20px;
        margin-bottom: 30px;
    }

    .delivery-page .delivery-content-wrapper h2 {
        font-size: 26px;
    }

    .delivery-page .delivery-content-wrapper h3 {
        font-size: 20px;
    }

    .delivery-page .delivery-content-wrapper p {
        font-size: 16px;
    }

    .delivery-page .delivery-content-wrapper ul li,
    .delivery-page .delivery-content-wrapper ol li {
        padding-left: 32px;
        font-size: 15px;
    }

    .delivery-page .delivery-cta {
        padding: 28px 24px;
        gap: 20px;
        border-radius: 20px;
    }

    .delivery-page .delivery-cta__title {
        font-size: 24px;
    }

    .delivery-page .delivery-cta__text {
        font-size: 14px;
    }

    .delivery-page .delivery-cta__btn {
        padding: 14px 26px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body.page-delivery-template #page {
        padding: 0 10px;
    }

    .delivery-page .delivery-article {
        padding: 20px 0 40px;
    }

    .delivery-page .delivery-header {
        margin-bottom: 24px;
    }

    .delivery-page .delivery-title {
        font-size: 28px;
    }

    .delivery-page .delivery-content-wrapper {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .delivery-page .delivery-content-wrapper h2 {
        font-size: 22px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .delivery-page .delivery-content-wrapper h2:not(:first-child) {
        margin-top: 32px;
    }

    .delivery-page .delivery-content-wrapper h3 {
        font-size: 18px;
    }

    .delivery-page .delivery-content-wrapper p {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .delivery-page .delivery-content-wrapper ul li,
    .delivery-page .delivery-content-wrapper ol li {
        padding-left: 28px;
        font-size: 14px;
        margin-bottom: 12px;
    }

    .delivery-page .delivery-content-wrapper ul li::before {
        width: 18px;
        height: 18px;
        top: 4px;
        background-size: 10px;
    }

    .delivery-page .delivery-content-wrapper ol li::before {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .delivery-page .delivery-content-wrapper th,
    .delivery-page .delivery-content-wrapper td {
        padding: 12px 14px;
        font-size: 14px;
    }

    .delivery-page .delivery-content-wrapper blockquote {
        padding: 16px 18px;
        margin: 20px 0;
    }

    .delivery-page .delivery-cta {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .delivery-page .delivery-cta__title {
        font-size: 20px;
    }

    .delivery-page .delivery-cta__text {
        font-size: 13px;
    }

    .delivery-page .delivery-cta__btn {
        padding: 12px 22px;
        font-size: 14px;
        border-radius: 12px;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.delivery-page .delivery-cta__btn:focus {
    outline: 3px solid #FFFFFF;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .delivery-page .delivery-header,
    .delivery-page .delivery-content-wrapper,
    .delivery-page .delivery-cta {
        animation: none;
    }

    .delivery-page .delivery-cta__btn {
        transition: none;
    }
}
