/* Creatus Delivery Pro Styles */

/* Hide unwanted country fields */
#billing_country_field,
#shipping_country_field {
    display: none !important;
}

/* Checkout Method Buttons */
.creatus-checkout-buttons-wrapper {
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    /* Tighter padding */
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.creatus-checkout-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
    color: #222;
}

.creatus-checkout-button-group {
    display: flex;
    gap: 15px;
    /* Distinct gap matches fields below */
}

.creatus-checkout-btn {
    flex: 1;
    padding: 0;
    line-height: 52px;
    text-align: center;
    border: 1px solid #999 !important;
    /* STRONG BORDER */
    background-clip: padding-box;
    /* Fix for button borders on some browsers */
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none;
    transition: 0.2s ease-in-out;
    background: #e0e0e0 !important;
    /* FORCE INACTIVE GREY */
    color: #444 !important;
    /* FORCE INACTIVE TEXT */
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    height: 52px !important;
    width: 100%;
    white-space: nowrap;
    margin-right: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    /* MATCH ABHOLEN SHADOW */
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none !important;
    outline: none !important;
}

/* ... */

.creatus-checkout-btn.active {
    background: #000 !important;
    /* FORCE BLACK ACTIVE */
    color: #fff !important;
    /* FORCE WHITE text */
    border-color: #000 !important;
    z-index: 2;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.creatus-checkout-btn.active .creatus-plz-badge {
    color: #fff;
    opacity: 0.8;
}

.creatus-checkout-btn:hover {
    background: #e0e0e0 !important;
    color: #444 !important;
    border-color: #999 !important;
}

.creatus-checkout-btn.active:hover {
    background: #222 !important;
    color: #fff !important;
    border-color: #000 !important;
}

@media (max-width: 768px) {
    .creatus-checkout-buttons-wrapper {
        padding: 12px;
    }

    /* Buttons Stacked on Mobile (Tall & Full Width) */
    .creatus-checkout-button-group {
        flex-direction: column;
        /* Stacked */
        gap: 15px;
        /* More spacing */
    }

    .creatus-checkout-btn {
        font-size: 16px !important;
        padding: 0 !important;
        height: 55px !important;
        /* Taller */
        width: 100% !important;
        /* Full width */
        flex: none !important;
    }

    .creatus-checkout-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

/* Warnings (Modern & Clean) */
#creatus-checkout-warning {
    display: none;
    background-color: #fff4f4;
    /* Very light red bg */
    color: #d32f2f;
    /* Red text */
    padding: 12px;
    margin-top: 15px;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

#creatus-checkout-warning strong {
    color: #b71c1c;
}

/* Modal Overlay */
#creatus-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.creatus-modal-container {
    background: #fff;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    border-radius: 6px;
}

.creatus-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    font-family: -apple-system, sans-serif;
    text-transform: none;
}

.creatus-modal-title::after {
    content: '';
    display: none;
    /* Hide underline */
}

.creatus-tabs {
    display: flex;
    border: 2px solid #000;
    margin-bottom: 30px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    height: auto;
    /* Fixed height for container */
}

.creatus-tab-item {
    flex: 1;
    padding: 12px;
    font-weight: bold;
    font-size: 18px !important;
    /* Force equal size */
    color: #000;
    background: #fff;
    transition: all 0.2s;
    text-transform: none;
    border: none;
    margin: 0;
    /* Remove padding to rely on flex centering */
    height: auto;
    line-height: normal;
    display: block;
    text-align: center;
}

.creatus-tab-item.creatus-active {
    background: #000;
    color: #fff;
    border-bottom: none;
}

#plz-input-container input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #000;
    text-align: center;
    font-size: 22px;
    padding: 15px 5px 10px 5px;
    outline: none;
    background: transparent;
    color: #000;
    font-weight: bold;
    border-radius: 0;
}

#plz-input-container input::placeholder {
    color: #999;
    font-weight: normal;
}

/* Modal Button */
.creatus-arrow-btn {
    background: #000 !important;
    color: #fff !important;
    border: none;
    height: 60px;
    line-height: 60px;
    padding: 0 40px 0 30px;
    font-size: 18px !important;
    /* Match tabs */
    font-weight: bold !important;
    /* Match tabs */
    cursor: pointer;
    display: block;
    margin-top: 30px;
    width: 100%;
    text-align: center;
    text-transform: lowercase;
    border-radius: 0;
    /* Base Arrow Shape */
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
    transition: clip-path 0.3s ease-out;
    /* Restore animation */
}

/* Hover: Extend Arrow */
.creatus-arrow-btn:hover {
    background: #000 !important;
    /* Color stays black */
    clip-path: polygon(0% 0%, 93% 0%, 100% 50%, 93% 100%, 0% 100%);
    /* Extend arrow */
}

.creatus-locked-btn {
    opacity: 1 !important;
    cursor: not-allowed !important;
    background-color: #eee !important;
    color: #aaa !important;
    clip-path: none !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
}

@media (max-width: 768px) {
    .creatus-modal-container {
        padding: 25px;
        width: 90%;
    }

    #plz-input-container input {
        font-size: 24px;
        padding: 10px;
    }

    /* Mobile Font Adjustments */
    .creatus-arrow-btn {
        font-size: 24px;
        height: 60px;
        padding: 0 40px 0 20px;
    }

    .creatus-checkout-title {
        font-size: 16px;
        /* Smaller on mobile */
        margin-bottom: 10px;
    }

    .creatus-checkout-btn {
        font-size: 14px;
        padding: 10px;
        font-family: inherit;
    }
}

/* Time Slot UI */
#ui-datepicker-div {
    display: none;
}

.lzm-row {
    display: flex;
    gap: 15px;
    /* Reduced gap */
}

.lzm-col {
    flex: 1;
}

/* Responsive Time Slot Box */
/* Responsive Time Slot Box - SYNC WITH BUTTONS @ 768px */
@media (max-width: 768px) {
    .lzm-row {
        flex-direction: column;
        gap: 10px;
    }

    #lzm-delivery-box {
        margin-left: 13px !important;
        margin-right: 13px !important;
    }

    #lzm-delivery-box h4 {
        font-size: 16px !important;
    }
}

#lzm-delivery-box {
    margin-left: 16px !important;
    margin-right: 16px !important;
    padding: 0 !important;
    box-sizing: border-box;
}

#lzm-delivery-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px !important;
    /* Smaller heading */
    font-weight: 600;
    /* Less bold */
    text-align: center;
    color: #222;
    /* Dark grey */
}

.lzm-input-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
    color: #444;
    text-align: left;
}

#lzm_date,
#lzm_time {
    width: 100%;
    height: 52px !important;
    /* Match Button Height */
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 0 10px;
    font-size: 15px;
    /* Smaller font */
    cursor: pointer;
    color: #000;
    background: #fff;
    box-sizing: border-box !important;
    /* CRITICAL FOR ALIGNMENT */
}

#lzm_date:focus,
#lzm_time:focus {
    border-color: #000;
    outline: none;
}

/* Datepicker Customization (Scoped) */
.creatus-datepicker-widget.ui-datepicker {
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 15px !important;
    width: 300px !important;
    z-index: 99999 !important;
    font-family: inherit !important;
    border: 1px solid #ddd !important;
}

.creatus-datepicker-widget .ui-datepicker-header {
    background: transparent !important;
    border: none !important;
    padding: 0 0 15px 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.creatus-datepicker-widget .ui-datepicker-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    order: 2;
    margin: 0 !important;
}

.creatus-datepicker-widget .ui-datepicker-prev,
.creatus-datepicker-widget .ui-datepicker-next {
    cursor: pointer !important;
    position: static !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent !important;
}

.creatus-datepicker-widget .ui-datepicker-prev:hover,
.creatus-datepicker-widget .ui-datepicker-next:hover {
    background: #f5f5f5 !important;
}

.creatus-datepicker-widget .ui-datepicker-prev span,
.creatus-datepicker-widget .ui-datepicker-next span {
    display: none !important;
}

.creatus-datepicker-widget .ui-datepicker-prev::after {
    content: "‹";
    font-size: 24px;
    color: #333;
    line-height: 1;
}

.creatus-datepicker-widget .ui-datepicker-next::after {
    content: "›";
    font-size: 24px;
    color: #333;
    line-height: 1;
}

.creatus-datepicker-widget .ui-datepicker-calendar th {
    font-weight: 500 !important;
    color: #888 !important;
    font-size: 0.85rem !important;
    padding: 10px 0 !important;
}

.creatus-datepicker-widget .ui-datepicker-calendar td {
    padding: 2px !important;
}

.creatus-datepicker-widget .ui-datepicker-calendar td a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    margin: 0 auto !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    font-size: 0.95rem !important;
    border: 1px solid transparent !important;
    transition: all 0.2s;
}

.creatus-datepicker-widget .ui-datepicker-calendar td a:hover {
    background-color: #f0f0f0 !important;
}

.creatus-datepicker-widget .ui-datepicker-current-day a {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    font-weight: 600 !important;
}

.creatus-datepicker-widget .ui-datepicker-today a {
    color: #000 !important;
    font-weight: 600 !important;
}

.creatus-datepicker-widget .ui-datepicker-unselectable span {
    color: #e0e0e0 !important;
    text-align: center;
    display: block;
    padding: 8px;
}

/* Countdown & Closed Msg */
#lzm-countdown-wrap {
    display: none;
    background-color: transparent;
    /* No black box */
    color: #000;
    padding: 0;
    border-radius: 0;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: none;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.lzm-alert {
    display: none;
    margin-bottom: 20px;
    background-color: #000;
    color: #fff;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.lzm-cd-title {
    font-size: 1rem;
    /* Larger */
    opacity: 1;
    /* Fully visible */
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    /* Black */
    font-weight: 700;
    /* Bold */
}

.lzm-cd-timer {
    font-size: 1.2rem;
    /* Much smaller */
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums;
    color: #000;
}

.lzm-cd-timer span {
    margin: 0 2px;
}

.lzm-cd-timer small {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.6;
    margin-left: 2px;
}

.lzm-cd-subtext {
    font-size: 1rem;
    /* Larger */
    color: #2e7d32;
    /* Darker green */
    font-weight: 800;
    /* Extra Bold */
    border-top: none;
    padding-top: 0;
    margin-top: 5px;
}

/* --- Returning User Modal Summary Styles --- */

.creatus-modal-summary {
    display: none;
    text-align: left; /* Match Dieci alignment */
    padding: 0 10px;
}

.creatus-modal-summary.active {
    display: block;
}

.creatus-summary-header {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
}

.creatus-summary-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 15px;
}

.creatus-summary-col {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.creatus-summary-label {
    font-size: 14px;
    color: #000;
    margin-bottom: 5px;
}

.creatus-summary-value {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.creatus-summary-actions {
    margin-bottom: 25px;
}

.creatus-change-btn {
    background: transparent;
    border: none;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    transition: opacity 0.2s;
}

.creatus-change-btn:hover {
    opacity: 0.7;
}

.creatus-icon-back {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #000;
    border-radius: 50%;
    position: relative;
    margin-right: 10px;
}

.creatus-icon-back::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 45%;
    width: 8px;
    height: 8px;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: translate(-50%, -50%) rotate(45deg);
}

.creatus-icon-back::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    width: 12px;
    height: 2px;
    background-color: #000;
    transform: translate(-50%, -50%);
}