.hb-punktove-lock { overflow: hidden !important; }

/* =========================================================
   HappyBebe – Пунктове
   Front-end popup styling
   ========================================================= */

.hb-punktove-modal {
    --hb-blue: #2f6f91;
    --hb-blue-dark: #1f536f;
    --hb-blue-soft: #eef7fb;
    --hb-gold: #e4bd58;
    --hb-gold-soft: #fff9ea;
    --hb-text: #2b3942;
    --hb-muted: #6b7780;
    --hb-border: #e5e9ec;
    --hb-danger-bg: #fff6f2;
    --hb-danger-border: #f2c9bf;
    --hb-success-bg: #f4fbf5;
    --hb-success-border: #c8e4ce;

    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    box-sizing: border-box;
    font-family: inherit;
}

.hb-punktove-modal.is-open { display: flex; }

.hb-punktove-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(42, 53, 60, .50);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.hb-punktove-dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(860px, calc(100vh - 44px));
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(228, 189, 88, .28);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(28, 41, 48, .28);
    padding: 30px 30px 28px;
    color: var(--hb-text);
    animation: hbPunktoveIn .2s ease-out;
    scrollbar-width: thin;
    scrollbar-color: #c6cdd1 transparent;
}

.hb-punktove-dialog::-webkit-scrollbar { width: 7px; }
.hb-punktove-dialog::-webkit-scrollbar-track { background: transparent; }
.hb-punktove-dialog::-webkit-scrollbar-thumb {
    background: #c6cdd1;
    border-radius: 20px;
}

@keyframes hbPunktoveIn {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hb-punktove-close {
    position: absolute !important;
    right: 15px !important;
    top: 15px !important;
    z-index: 3;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    border: 1px solid #f0dfad !important;
    border-radius: 50% !important;
    background: #fffdf8 !important;
    color: #6f7b82 !important;
    box-shadow: 0 5px 13px rgba(192, 158, 65, .24) !important;
    font: 400 27px/1 Arial, sans-serif !important;
    cursor: pointer !important;
    appearance: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.hb-punktove-close:hover {
    transform: translateY(-1px);
    background: var(--hb-gold-soft) !important;
    box-shadow: 0 7px 17px rgba(192, 158, 65, .30) !important;
}

.hb-punktove-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #f1f9fd 0%, #e9f5fb 100%);
    border: 1px solid #dfeff6;
    margin: 0 0 13px 0;
    font-size: 25px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.hb-punktove-dialog h3 {
    margin: 0 54px 18px 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: 24px !important;
    line-height: 1.28 !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--hb-blue-dark) !important;
}

.hb-punktove-body,
.hb-punktove-body * { box-sizing: border-box; }

.hb-punktove-body > p:first-child {
    margin: 0 0 17px !important;
    color: #3e4d56;
    font-size: 15px;
    line-height: 1.58;
}

.hb-punktove-body > p:first-child strong {
    color: #1d2e37;
    font-weight: 700;
}

.hb-punktove-period,
.hb-punktove-dates {
    border-radius: 13px;
    padding: 14px 15px;
    margin: 11px 0;
    line-height: 1.45;
    box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}

.hb-punktove-period {
    background: #f7f8fa;
    border: 1px solid #dfe4e8;
}

.hb-punktove-period > span,
.hb-punktove-dates > span {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.35;
    color: #687780;
}

.hb-punktove-period strong,
.hb-punktove-dates strong {
    display: block;
    color: #1f2e37;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
}

.hb-punktove-dates.hb-closed {
    background: var(--hb-danger-bg);
    border: 1px solid var(--hb-danger-border);
}

.hb-punktove-dates.hb-closed strong { color: #9c3f31; }

.hb-punktove-dates.hb-open {
    background: var(--hb-success-bg);
    border: 1px solid var(--hb-success-border);
}

.hb-punktove-dates.hb-open strong { color: #336e44; }

.hb-date-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}

.hb-date-line {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
    color: #1f2e37;
}

.hb-punktove-dates.hb-closed .hb-date-line {
    color: #9c3f31;
}

.hb-punktove-dates.hb-open .hb-date-line {
    color: #336e44;
}

.hb-reason {
    color: #6c7880;
    font-size: 13px;
    font-weight: 400;
}

.hb-punktove-question {
    margin: 21px 0 12px !important;
    color: #22343e;
    font-size: 15px;
    line-height: 1.45;
}

.hb-punktove-question strong { font-weight: 700; }

/* Choice cards */
.hb-punktove-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    align-items: stretch;
    margin: 0;
}

.hb-punktove-actions .hb-choice {
    all: unset;
    box-sizing: border-box;
    min-width: 0;
    min-height: 132px;
    width: 100%;
    padding: 16px 15px 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    border: 1px solid #e3e7e9;
    border-bottom: 3px solid #ead28d;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fffefa 100%);
    box-shadow: 0 5px 14px rgba(44, 62, 72, .08), 0 2px 0 rgba(224, 186, 83, .12);
    color: var(--hb-text);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.hb-punktove-actions .hb-choice:hover,
.hb-punktove-actions .hb-choice:focus-visible,
.hb-punktove-actions .hb-choice.is-selected {
    transform: translateY(-2px);
    border-color: #dcc06f;
    background: linear-gradient(180deg, #ffffff 0%, var(--hb-gold-soft) 100%);
    box-shadow: 0 9px 22px rgba(44, 62, 72, .12), 0 2px 0 rgba(224, 186, 83, .18);
    outline: none;
}

.hb-choice-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    margin: 0 0 10px 0;
    border-radius: 12px;
    background: var(--hb-blue-soft);
    font-size: 21px;
    line-height: 1;
}

.hb-choice-title {
    display: block;
    margin: 0 0 5px;
    color: #1f485f;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.hb-choice-subtitle {
    display: block;
    margin: 0;
    color: #748088;
    font-size: 12.5px;
    line-height: 1.38;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Alternate pickup block */
.hb-punktove-alt-wrap {
    margin-top: 15px;
    padding: 15px;
    border-radius: 14px;
    background: #f5fafc;
    border: 1px solid #d7e8f0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.hb-punktove-alt-wrap[hidden] { display: none !important; }

.hb-punktove-alt-wrap label {
    display: block;
    margin: 0 0 8px;
    color: var(--hb-blue-dark);
    font-size: 14px;
    line-height: 1.35;
}

.hb-punktove-alt-wrap select {
    width: 100%;
    min-height: 46px;
    height: auto;
    margin: 0 0 11px;
    padding: 9px 12px;
    border: 1px solid #cfdce3;
    border-radius: 10px;
    background: #fff;
    color: #2b3942;
    font: inherit;
    font-size: 14px;
    line-height: 1.35;
    box-shadow: none;
}

.hb-punktove-confirm-alt {
    appearance: none;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--hb-blue) !important;
    color: #fff !important;
    min-height: 42px !important;
    height: auto !important;
    padding: 10px 17px !important;
    font: 600 14px/1.3 inherit !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 11px rgba(47, 111, 145, .20) !important;
}

.hb-punktove-confirm-alt:hover { background: var(--hb-blue-dark) !important; }

.hb-punktove-warning {
    color: #835f12;
    line-height: 1.55;
    background: #fff9e9;
    border: 1px solid #efdcaa;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 13px;
}

.hb-error { outline: 2px solid #c94a39 !important; outline-offset: 1px; }

/* Confirmation below the pickup select */
.hb-punktove-summary {
    margin-top: 11px;
    padding: 12px 14px;
    border-radius: 11px;
    background: #f2faf4;
    border: 1px solid #c4e0cb;
    color: #315f3b;
    font-size: 13px;
    line-height: 1.48;
}

.hb-punktove-summary strong,
.hb-punktove-summary span { display: block; }

.hb-punktove-summary strong {
    margin-bottom: 3px;
    color: #2d6840;
}

.hb-punktove-summary button {
    all: unset;
    margin-top: 6px;
    color: var(--hb-blue);
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

/* Tablet */
@media (max-width: 760px) {
    .hb-punktove-modal { padding: 14px; }
    .hb-punktove-dialog {
        width: min(680px, 100%);
        max-height: calc(100vh - 28px);
        border-radius: 21px;
        padding: 25px 20px 22px;
    }

    .hb-punktove-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hb-punktove-actions .hb-choice {
        min-height: 82px;
        display: grid;
        grid-template-columns: 45px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 2px;
        align-items: center;
        padding: 13px 14px;
    }

    .hb-choice-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin: 0;
    }

    .hb-choice-title {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        margin: 0;
        font-size: 15px;
    }

    .hb-choice-subtitle {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        font-size: 12.5px;
    }
}

/* Mobile */
@media (max-width: 520px) {
    .hb-punktove-modal {
        padding: 8px;
        align-items: flex-end;
    }

    .hb-punktove-dialog {
        width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 20px 20px 14px 14px;
        padding: 22px 15px 17px;
    }

    .hb-punktove-close {
        right: 11px !important;
        top: 11px !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }

    .hb-punktove-icon {
        width: 47px;
        height: 47px;
        font-size: 22px;
        margin-bottom: 11px;
    }

    .hb-punktove-dialog h3 {
        margin-right: 42px !important;
        margin-bottom: 14px !important;
        font-size: 20px !important;
    }

    .hb-punktove-body > p:first-child {
        font-size: 14px;
        line-height: 1.5;
    }

    .hb-punktove-period,
    .hb-punktove-dates {
        border-radius: 11px;
        padding: 12px;
    }

    .hb-punktove-question {
        margin-top: 18px !important;
        font-size: 14px;
    }

    .hb-punktove-actions .hb-choice {
        min-height: 78px;
        border-radius: 14px;
        padding: 12px;
    }

    .hb-choice-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 19px;
    }

    .hb-punktove-alt-wrap { padding: 13px; }
}
