/* =========================================================
   Citytech Delivery Slot — Hyvä Compatible Styling
========================================================= */

[x-cloak] {
    display: none !important;
}

/* =========================================================
   Wrapper
========================================================= */

#pds-widget-wrapper,
#pds-widget,
.pds-wrap,
.pds-input-row {
    position: relative;
    overflow: visible !important;
}

.pds-wrap {
    width: 100%;
    margin-top: 14px;
    margin-bottom: 14px;
	padding: 0 40px;
}

/* =========================================================
   Title
========================================================= */

.pds-title {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;

    color: #1f2937;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.pds-title span {
    font-size: 1.2rem;
    line-height: 1;
}

/* =========================================================
   Input Row
========================================================= */

.pds-input-row {
    margin-bottom: 14px;
}

/* =========================================================
   Date Input Box
========================================================= */

.pds-input-box {
    display: flex;
    align-items: center;

    width: 100%;
    max-width: 320px;
    min-height: 42px;

    background: #fff;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    cursor: pointer;

    transition: border-color .15s ease;
}

.pds-input-box:hover {
    border-color: #2563eb;
}

/* =========================================================
   Calendar Icon
========================================================= */

.pds-cal-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    min-width: 40px;

    color: #6b7280;

    font-size: 1rem;
}

/* =========================================================
   Date Input
========================================================= */

.pds-date-input {
    width: 100% !important;

    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;

    padding-right: 10px !important;

    color: #111827;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
}

.pds-date-input::placeholder {
    color: #9ca3af;
}

/* =========================================================
   Calendar Popup
========================================================= */

.pds-popup {
    position: absolute;

    bottom: calc(100% + 8px);
    left: 0;

    z-index: 99999;

    width: 280px;
    min-width: 280px;

    padding: 14px;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    box-shadow:
        0 10px 25px rgba(0,0,0,.08);
}

/* =========================================================
   Popup Header
========================================================= */

.pds-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}

.pds-month-lbl {
    color: #111827;

    font-size: 15px;
    font-weight: 600;
}

/* =========================================================
   Navigation Buttons
========================================================= */

.pds-nav-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;

    padding: 0 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    border-radius: 6px;
    border: 1px solid #d1d5db;

    background: #fff;

    color: #374151;

    font-size: 14px;

    cursor: pointer;

    transition: all .15s ease;
}

.pds-nav-btn:hover:not(:disabled) {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
}

.pds-nav-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* =========================================================
   Calendar Grid
========================================================= */

.pds-cal-grid {
    display: grid !important;

    grid-template-columns: repeat(7, 1fr) !important;

    gap: 4px;

    width: 100%;
}

/* =========================================================
   Weekdays
========================================================= */

.pds-dow {
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #6b7280;

    font-size: 11px;
    font-weight: 600;
}

/* =========================================================
   Day Button
========================================================= */

.pds-day {
    width: 32px !important;
    height: 32px !important;

    min-width: 32px !important;
    min-height: 32px !important;

    max-width: 32px !important;
    max-height: 32px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    border-radius: 6px;
    border: 1px solid transparent;

    background: #fff;

    color: #111827;

    font-size: 13px;
    font-weight: 500;

    line-height: 1;

    cursor: pointer;

    transition: all .15s ease;
}

/* Available */

.pds-day.pds-av:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

/* Disabled */

.pds-day.pds-un,
.pds-day:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* Selected */

.pds-day.pds-sel {
    background: #2563eb;
    border-color: #2563eb;

    color: #fff;

    font-weight: 600;
}

/* =========================================================
   Slots Header
========================================================= */

.pds-slots-hd {
    margin-top: 14px;
    margin-bottom: 10px;

    color: #1f2937;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* =========================================================
   No Slots
========================================================= */

.pds-no-slots {
    margin-bottom: 12px;

    color: #6b7280;

    font-size: 13px;
}

/* =========================================================
   Slots Grid
========================================================= */

.pds-slots-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(180px, 1fr));

    gap: 10px;
}

/* =========================================================
   Slot Button
========================================================= */

.pds-slot {
    min-height: 46px;

    padding: 10px 12px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    border: 1px solid #d1d5db;

    background: #fff;

    color: #111827;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;

    cursor: pointer;

    transition: all .15s ease;
}

/* Available */

.pds-slot.s-av:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

/* Disabled */

.pds-slot.s-un,
.pds-slot:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* Selected */

.pds-slot.s-sel {
    background: #1b3358;
    border-color: #1b3358;

    color: #fff;

    font-weight: 600;

    box-shadow: 0 0 0 1px #1b3358;
}

/* =========================================================
   Selected Checkmark
========================================================= */

.pds-slot-check {
    margin-right: 6px;

    font-weight: 700;
}
.pds-error {
    margin-top: 12px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}
/* =========================================================
   Mobile
========================================================= */

@media (max-width: 768px) {

    .pds-wrap {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .pds-title {
        font-size: 1.2rem;
    }

    .pds-title span {
        font-size: 1rem;
    }

    .pds-input-box {
        max-width: 100%;
    }

    .pds-popup {
        width: calc(100vw - 40px);
        min-width: auto;
        max-width: 300px;
    }

    .pds-slots-grid {
        grid-template-columns: 1fr;
    }

    .pds-slot {
        min-height: 42px;
        font-size: 13px;
    }

    .pds-slots-hd {
        font-size: 1rem;
    }
}