/* Dopytové produkty: množstvo sa vyberá až v dopytovom formulári. */
body.lhs-inquiry-product form.cart > .single_variation_wrap .quantity,
body.lhs-inquiry-product form.cart .woocommerce-variation-add-to-cart > .quantity,
body.lhs-inquiry-product form.cart > .quantity {
    display: none !important;
}

.lhs-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    font-size: 14px;
    line-height: 1.34;
}

.lhs-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.lhs-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(1px);
}

.lhs-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    background: #fff;
    padding: 22px 24px 23px;
    border-radius: 10px;
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.26);
}

.lhs-modal__dialog h2,
body .lhs-modal__dialog h2 {
    margin: 0 38px 24px 0 !important;
    padding: 0 !important;
    font-size: clamp(24px, 3vw, 32px) !important;
    line-height: 1.06 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

.lhs-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #222;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.lhs-modal__close:hover,
.lhs-modal__close:focus-visible {
    background: rgba(0, 0, 0, 0.06);
}

.lhs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.lhs-field {
    margin: 0 !important;
    min-width: 0;
}

.lhs-field--full {
    grid-column: 1 / -1;
}

.lhs-field label,
.lhs-field__label,
body .lhs-modal .lhs-field label,
body .lhs-modal .lhs-field__label {
    display: block;
    margin: 0 0 7px !important;
    color: #2f2f2f;
    font-size: 13px !important;
    line-height: 1.25;
    font-weight: 650 !important;
}

.lhs-field input:not([type="checkbox"]):not([type="radio"]),
.lhs-field textarea,
body .lhs-modal .lhs-field input:not([type="checkbox"]):not([type="radio"]),
body .lhs-modal .lhs-field textarea {
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    border: 1px solid #cfcfcf !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #222 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.28 !important;
    box-shadow: none !important;
    outline: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.lhs-field input:not([type="checkbox"]):not([type="radio"]),
body .lhs-modal .lhs-field input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 42px !important;
    height: 42px !important;
    padding: 8px 11px !important;
}

.lhs-field textarea,
body .lhs-modal .lhs-field textarea {
    min-height: 64px !important;
    height: 64px !important;
    padding: 8px 11px !important;
    resize: vertical;
}

.lhs-field input:not([type="checkbox"]):not([type="radio"]):focus,
.lhs-field textarea:focus,
body .lhs-modal .lhs-field input:not([type="checkbox"]):not([type="radio"]):focus,
body .lhs-modal .lhs-field textarea:focus {
    border-color: #245a4d !important;
    box-shadow: 0 0 0 2px rgba(36, 90, 77, 0.12) !important;
}

.lhs-field--product input[readonly],
body .lhs-modal .lhs-field--product input[readonly] {
    background: #f6f7f6 !important;
    color: #333 !important;
    font-weight: 600;
    cursor: default;
}

.lhs-field--quantity {
    margin-top: 2px !important;
}

.lhs-quantity {
    display: inline-grid;
    grid-template-columns: 38px 58px 38px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #cfcfcf;
    border-radius: 7px;
    background: #fff;
}

.lhs-quantity:focus-within {
    border-color: #245a4d;
    box-shadow: 0 0 0 2px rgba(36, 90, 77, 0.12);
}

.lhs-quantity .lhs-qty-btn,
body .lhs-modal .lhs-quantity .lhs-qty-btn {
    width: 38px;
    min-width: 38px;
    height: 42px;
    min-height: 42px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f5f5f3 !important;
    color: #252525 !important;
    font-family: inherit;
    font-size: 19px !important;
    font-weight: 500;
    line-height: 1 !important;
    cursor: pointer;
    box-shadow: none !important;
}

.lhs-quantity .lhs-qty-btn:hover:not(:disabled),
body .lhs-modal .lhs-quantity .lhs-qty-btn:hover:not(:disabled) {
    background: #ececea !important;
}

.lhs-quantity .lhs-qty-btn:disabled {
    opacity: 0.38;
    cursor: default;
}

.lhs-quantity #lhs_quantity,
body .lhs-modal .lhs-quantity #lhs_quantity {
    width: 58px !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 5px !important;
    border: 0 !important;
    border-left: 1px solid #cfcfcf !important;
    border-right: 1px solid #cfcfcf !important;
    border-radius: 0 !important;
    text-align: center;
    font-weight: 600;
    box-shadow: none !important;
    -moz-appearance: textfield;
}

.lhs-quantity #lhs_quantity::-webkit-outer-spin-button,
.lhs-quantity #lhs_quantity::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.lhs-store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lhs-store-card {
    position: relative;
    display: block !important;
    margin: 0 !important;
    cursor: pointer;
}

.lhs-store-card input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.lhs-store-card__body {
    display: flex;
    min-height: 102px;
    box-sizing: border-box;
    flex-direction: column;
    gap: 3px;
    padding: 10px 11px;
    border: 1px solid #d2d5d3;
    border-radius: 8px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.lhs-store-card:hover .lhs-store-card__body {
    border-color: #8ca79f;
}

.lhs-store-card input[type="radio"]:focus-visible + .lhs-store-card__body {
    border-color: #245a4d;
    box-shadow: 0 0 0 2px rgba(36, 90, 77, 0.12);
}

.lhs-store-card input[type="radio"]:checked + .lhs-store-card__body,
.lhs-store-card.is-selected .lhs-store-card__body {
    border-color: #245a4d;
    background: #f3f8f6;
    box-shadow: inset 0 0 0 1px #245a4d;
}

.lhs-store-card__name {
    margin-bottom: 4px;
    color: #1f4f43;
    font-size: 15px;
    line-height: 1.15;
}

.lhs-store-card__address,
.lhs-store-card__city,
.lhs-store-card__phone {
    display: block;
    color: #454545;
    font-size: 12px;
    line-height: 1.24;
}

.lhs-store-card__phone {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 600;
}

.lhs-store-empty {
    margin: 0 !important;
    padding: 8px 10px;
    border: 1px solid #d6d6d6;
    border-radius: 7px;
    background: #f7f7f7;
}

.lhs-consent {
    margin: 18px 0 17px !important;
    color: #333;
    font-size: 12px;
    line-height: 1.32;
}

.lhs-consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.lhs-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 1px 0 0 !important;
}

.lhs-consent a {
    display: inline-block;
    margin: 5px 0 0 21px;
}

.lhs-submit,
body .lhs-modal .lhs-submit {
    min-height: 42px;
    padding: 8px 18px !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
}

.lhs-explanation {
    margin-top: 20px;
    padding: 0 0 0 11px;
    border-left: 3px solid #e0e2e1;
    color: #2f2f2f;
    font-size: 12px;
    line-height: 1.38;
}

.lhs-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.lhs-message {
    margin: 0 0 12px;
}

.lhs-message.is-error,
.lhs-message.is-success {
    padding: 8px 10px;
    border-radius: 6px;
}

.lhs-message.is-error {
    border-left: 4px solid #b32d2e;
    background: #fcf0f1;
}

.lhs-message.is-success {
    border-left: 4px solid #008a20;
    background: #edfaef;
}

body.lhs-modal-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .lhs-store-grid {
        grid-template-columns: 1fr;
    }

    .lhs-store-card__body {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .lhs-modal.is-open {
        padding: 7px;
        align-items: flex-start;
    }

    .lhs-modal__dialog {
        padding: 18px 14px 19px;
        max-height: calc(100vh - 14px);
        border-radius: 9px;
    }

    .lhs-modal__dialog h2,
    body .lhs-modal__dialog h2 {
        margin-right: 36px !important;
        margin-bottom: 20px !important;
        font-size: 24px !important;
    }

    .lhs-modal__close {
        top: 8px;
        right: 8px;
    }

    .lhs-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .lhs-field--full {
        grid-column: auto;
    }

    .lhs-field input:not([type="checkbox"]):not([type="radio"]),
    body .lhs-modal .lhs-field input:not([type="checkbox"]):not([type="radio"]) {
        min-height: 41px !important;
        height: 41px !important;
    }

    .lhs-quantity .lhs-qty-btn,
    body .lhs-modal .lhs-quantity .lhs-qty-btn,
    .lhs-quantity #lhs_quantity,
    body .lhs-modal .lhs-quantity #lhs_quantity {
        height: 41px !important;
        min-height: 41px !important;
    }
}

/* Predajne v rozbaľovacom poli a stručný náhľad ďalších položiek v košíku. */
body .lhs-modal .lhs-field--stores select {
    display: block;
    width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 8px 36px 8px 11px;
    margin: 0;
    border: 1px solid #cfcfcf;
    border-radius: 7px;
    background-color: #fff;
    color: #222;
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
}
body .lhs-modal .lhs-field--stores select:focus-visible {
    outline: 2px solid rgba(36, 90, 77, 0.35);
    outline-offset: 1px;
    border-color: #245a4d;
}
.lhs-cart-items {
    max-height: 112px;
    overflow-y: auto;
    border: 1px solid #e0e2e0;
    border-radius: 7px;
    background: #f8f9f8;
    padding: 10px 12px;
    font-size: 13px;
    color: #454545;
    line-height: 1.4;
}
.lhs-cart-items ul { margin: 0; padding-left: 17px; }
.lhs-cart-items li + li { margin-top: 5px; }
.lhs-cart-help { display: block; margin-top: 5px; font-size: 11px; line-height: 1.35; color: #686868; }
@media (max-width: 600px) {
    body .lhs-modal .lhs-field--stores select { height: 41px; min-height: 41px; }
}


/* Full-width, accessible disclosure for stores. Unlike iOS native picker,
   addresses wrap normally and the list uses the full form width. */
body .lhs-modal .lhs-store-picker {
    position: relative;
    width: 100%;
    border: 1px solid #cfcfcf;
    border-radius: 7px;
    background: #fff;
    box-sizing: border-box;
}
body .lhs-modal .lhs-store-picker[open] {
    border-color: #245a4d;
    box-shadow: 0 0 0 2px rgba(36, 90, 77, .12);
}
body .lhs-modal .lhs-store-picker__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 9px 12px;
    gap: 12px;
    cursor: pointer;
    box-sizing: border-box;
    list-style: none;
    color: #25483f;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}
body .lhs-modal .lhs-store-picker__trigger::-webkit-details-marker { display: none; }
body .lhs-modal .lhs-store-picker__trigger::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}
body .lhs-modal .lhs-store-picker[open] .lhs-store-picker__trigger::after {
    transform: rotate(225deg) translateY(-2px);
}
body .lhs-modal .lhs-store-picker__trigger:focus-visible {
    outline: 2px solid #245a4d;
    outline-offset: 2px;
}
body .lhs-modal .lhs-store-picker__options {
    max-height: min(310px, 43vh);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 4px;
    border-top: 1px solid #e3e6e3;
}
body .lhs-modal .lhs-store-picker__option {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 11px 9px !important;
    margin: 0 !important;
    box-sizing: border-box;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    color: #252f2a;
    line-height: 1.35;
    font-size: 14px !important;
    text-align: left;
}
body .lhs-modal .lhs-store-picker__option + .lhs-store-picker__option { border-top: 1px solid #eee; }
body .lhs-modal .lhs-store-picker__option:hover,
body .lhs-modal .lhs-store-picker__option:focus-within,
body .lhs-modal .lhs-store-picker__option:has(input:checked) { background: #f1f7f3; }
body .lhs-modal .lhs-store-picker__option input[type="radio"] {
    display: block;
    position: static;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 2px 0 0 !important;
    accent-color: #245a4d;
}
body .lhs-modal .lhs-store-picker__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}
body .lhs-modal .lhs-store-picker__info strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #234b40;
}
body .lhs-modal .lhs-store-picker__info > span {
    font-size: 13px;
    font-weight: 450;
    line-height: 1.4;
    color: #4b5450;
}
@media(max-width:600px) {
    body .lhs-modal .lhs-store-picker__trigger { min-height: 41px; }
    body .lhs-modal .lhs-store-picker__options { max-height: min(285px, 37vh); }
}
