/* 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 */
}

.creatus-checkout-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    /* Soft border */
    font-size: 17px !important;
    /* Slightly larger */
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease-in-out;
    background: #fff;
    color: #000;
    cursor: pointer;
    display: flex;
    /* Flex to center content */
    align-items: center;
    justify-content: center;
    border-radius: 6px !important;
    /* Rounded for all */
    /* Reset radius */
    width: 50%;
    height: 52px;
    /* Taller */
    /* Fixed height match */
    white-space: nowrap;
    /* Prevent wrap */
    margin-right: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Overlap borders */
}

/* Rounded corners for first and last buttons - RESET */
.creatus-checkout-btn:first-child {
    border-radius: 6px !important;
}

.creatus-checkout-btn:last-child {
    border-radius: 6px !important;
    margin-right: 0;
}

.creatus-plz-badge {
    font-weight: normal;
    font-size: 0.85em;
    margin-left: 6px;
    opacity: 0.7;
    display: inline-block;
}

.creatus-checkout-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
    z-index: 2;
    /* Bring active border to front */
    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: #f5f5f5;
    color: #000;
    border-color: #000;
}

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

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

    /* Stack buttons on mobile but keep full width */
    .creatus-checkout-button-group {
        flex-direction: row;
        /* Keep side-by-side on mobile too? No user said "useless", usually stacked is better for touch. Let's try side-by-side to be compact if font allows. */
        gap: 8px;
    }

    .creatus-checkout-btn {
        font-size: 14px !important;
        padding: 8px;
        height: 40px;
    }

    .creatus-checkout-title {
        font-size: 16px;
        /* Smaller on mobile */
        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 */
@media (max-width: 600px) {
    .lzm-row {
        flex-direction: column;
        gap: 10px;
    }

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

#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: 42px;
    /* Reduced height */
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 0 10px;
    font-size: 15px;
    /* Smaller font */
    cursor: pointer;
    color: #000;
    background: #fff;
}

#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;
}