/* CMS Page Improvements */

/* Free shipping banner */
.free-shipping-banner {
    background: linear-gradient(135deg, #d60b15 0%, #e74c3c 100%);
    color: #ffffff;
    padding: 20px 30px;
    margin: 0 0 40px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Step-by-step ordering guide */
.ordering-steps {
    max-width: 100%;
    margin: 0 auto;
}

.ordering-step {
    margin-bottom: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 5px solid #d60b15;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ordering-step h2 {
    color: #d60b15;
    font-size: 24px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #d60b15;
    color: #ffffff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.ordering-step p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
    font-size: 15px;
}

.ordering-step p:last-child {
    margin-bottom: 0;
}

/* Sub-steps styling */
.sub-steps {
    margin-top: 20px;
    padding-left: 20px;
}

.sub-step {
    margin-bottom: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #d60b15;
}

.sub-step-title {
    font-weight: bold;
    color: #d60b15;
    margin-bottom: 8px;
    display: block;
}

/* Payment and delivery info boxes */
.info-box {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 15px;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.info-box ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    line-height: 1.6;
}

.info-box ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d60b15;
    font-weight: bold;
    font-size: 18px;
}

/* Highlight important terms */
.highlight-term {
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

/* Contact info box */
.contact-box {
    background: #e8f4f8;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.contact-box p {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
}

.contact-box a {
    color: #3498db;
    font-weight: bold;
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* Responsive adjustments - Mobile First */
@media (max-width: 768px) {
    /* Add breathing room on mobile */
    .ordering-steps {
        padding: 0 10px;
    }

    /* Make steps more compact but still elegant */
    .ordering-step {
        padding: 20px 15px;
        margin-bottom: 25px;
        border-radius: 12px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    }

    /* Better mobile heading */
    .ordering-step h2 {
        font-size: 19px;
        margin: 0 0 18px 0;
        gap: 12px;
        line-height: 1.3;
    }

    /* Slightly smaller but still prominent step numbers */
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    /* Improve text readability on mobile */
    .ordering-step p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 12px;
    }

    /* Sub-steps adjustments */
    .sub-steps {
        padding-left: 0;
        margin-top: 15px;
    }

    .sub-step {
        padding: 12px 15px;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .sub-step-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .sub-step p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .sub-step p:last-child {
        margin-bottom: 0;
    }

    /* Info boxes on mobile */
    .info-box {
        padding: 15px;
        margin-top: 12px;
        border-radius: 8px;
    }

    .info-box p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    .info-box ul li {
        padding: 8px 0 8px 28px;
        font-size: 13px;
        line-height: 1.5;
    }

    .info-box ul li:before {
        font-size: 16px;
    }

    /* Highlight terms - more subtle on mobile */
    .highlight-term {
        padding: 2px 5px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Contact box mobile styling */
    .contact-box {
        padding: 18px 15px;
        margin-top: 25px;
        border-radius: 10px;
    }

    .contact-box p {
        font-size: 14px;
        line-height: 1.6;
    }

    .contact-box a {
        display: inline-block;
        margin-top: 5px;
        word-break: break-word;
    }

    /* Free shipping banner (if used) */
    .free-shipping-banner {
        padding: 15px;
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 25px;
        border-radius: 10px;
    }
}

/* Extra small devices (phones in portrait, less than 576px) */
@media (max-width: 576px) {
    .ordering-steps {
        padding: 0 5px;
    }

    .ordering-step {
        padding: 18px 12px;
        margin-bottom: 20px;
    }

    .ordering-step h2 {
        font-size: 17px;
        gap: 10px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .ordering-step p,
    .info-box p {
        font-size: 13px;
    }

    .sub-step {
        padding: 10px 12px;
    }

    .info-box {
        padding: 12px;
    }

    .contact-box {
        padding: 15px 12px;
    }

    .contact-box p {
        font-size: 13px;
    }
}
