#vyhledejte_pobocku_balikovna {
    font-size: 12px;
}

#find_balikovna_zip_city {
    padding: 10px;
}

#result_balikovna_zip_city {
    padding-top: 10px;
    padding-bottom: 10px;
}

#vypis_balikovna .vypis_balikovna_td {
    margin: 5px;
    padding: 5px;
    word-break: break-word;
}

#vypis_balikovna .vypis_balikovna_td_nadpis {
    font-weight: bold;
    margin: 5px;
    padding: 5px;
}

.text_vyhledejte, .text_vyhledejte_balikovna {
    font-size: 12px;
    font-weight: bold;
}

/* onepagecheckout modul roztazeni tabulky */
#opc_checkout table#vypis_balikovna {
    width: 100%;
}

#find_balikovna_zip_city.error {
    border: 1px solid red;
}

.balikovna_tr_line {
    border-top: 1px #e3e3e3 solid;
}

@media (max-width: 768px) {
    #find_balikovna_zip_city {
        width: 100%;
    }

    /* specificky styl pro PS 1.6 */
    #order .delivery_option table.resume tr td.vypis_balikovna_td:nth-child(3) {
        width: 25%;
    }
}


/* ==========================================================
   LaHome PS 1.6 + Supercheckout: native Balikovna popup
   The module already provides the official Ceska posta iframe;
   this layer only presents it as a real modal on PS 1.6.
   ========================================================== */
body.shaim-balikovna-modal-open {
    overflow: hidden !important;
}

.modal.fade.balikovna.psmoduly_balikovy_modul {
    display: none;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    overflow: auto !important;
    background: rgba(32, 28, 24, .52) !important;
    opacity: 1 !important;
    z-index: 2147483645 !important;
}

.modal.fade.balikovna.psmoduly_balikovy_modul.in,
.modal.fade.balikovna.psmoduly_balikovy_modul.shaim-balikovna-modal-visible {
    display: block !important;
    opacity: 1 !important;
}

.modal.fade.balikovna.psmoduly_balikovy_modul .modal-dialog {
    position: relative !important;
    width: 100% !important;
    max-width: 1120px !important;
    height: calc(100vh - 24px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important;
}

.modal.fade.balikovna.psmoduly_balikovy_modul .modal-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.28) !important;
}

.modal.fade.balikovna.psmoduly_balikovy_modul .modal-header {
    position: relative !important;
    flex: 0 0 auto !important;
    min-height: 54px !important;
    padding: 15px 58px 13px 18px !important;
    background: #fbf8f5 !important;
    border: 0 !important;
    border-bottom: 1px solid #ece5de !important;
}

.modal.fade.balikovna.psmoduly_balikovy_modul .modal-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #2f2a26 !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

.modal.fade.balikovna.psmoduly_balikovy_modul .close {
    position: absolute !important;
    top: 9px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #e9e4df !important;
    color: #514940 !important;
    font: 400 26px/34px Arial, sans-serif !important;
    text-align: center !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

.modal.fade.balikovna.psmoduly_balikovy_modul .close:hover {
    background: #ddd5ce !important;
    color: #2c2723 !important;
}

.modal.fade.balikovna.psmoduly_balikovy_modul .modal-body {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.modal.fade.balikovna.psmoduly_balikovy_modul .modal-body #find_balikovna_zip_city.mapa_iframe {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 520px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

#vyhledejte_pobocku_balikovna > .open-branch-button_balikovna {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    margin: 8px 0 !important;
    padding: 8px 16px !important;
    border: 1px solid #d8c8ba !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #68472d !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

#vyhledejte_pobocku_balikovna > .open-branch-button_balikovna:hover {
    background: #f8f3ee !important;
}

@media (max-width: 820px) {
    .modal.fade.balikovna.psmoduly_balikovy_modul {
        padding: 6px !important;
    }
    .modal.fade.balikovna.psmoduly_balikovy_modul .modal-dialog {
        height: calc(100vh - 12px) !important;
    }
    .modal.fade.balikovna.psmoduly_balikovy_modul .modal-content {
        border-radius: 8px !important;
    }
    .modal.fade.balikovna.psmoduly_balikovy_modul .modal-header {
        min-height: 50px !important;
        padding: 13px 52px 11px 13px !important;
    }
    .modal.fade.balikovna.psmoduly_balikovy_modul .modal-title {
        font-size: 15px !important;
    }
    .modal.fade.balikovna.psmoduly_balikovy_modul .close {
        top: 7px !important;
        right: 8px !important;
        width: 34px !important;
        height: 34px !important;
    }
    .modal.fade.balikovna.psmoduly_balikovy_modul .modal-body #find_balikovna_zip_city.mapa_iframe {
        min-height: 70vh !important;
    }
}

/* ==========================================================
   LaHome FIX30: Supercheckout Balikovna final carrier state UI
   ========================================================== */

/* The block may remain in DOM after Supercheckout AJAX. It is hidden unless the
   currently checked carrier is Balikovna and JS marks its row as selected. */
#module-supercheckout-supercheckout #vyhledejte_pobocku_balikovna {
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    flex: 0 0 100% !important;
    order: 999 !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    margin: 9px 0 0 !important;
    padding: 9px 0 0 !important;
    border-top: 1px solid #eadfd5 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

#module-supercheckout-supercheckout li.shaim-balikovna-selected-row {
    flex-wrap: wrap !important;
    align-items: center !important;
}

#module-supercheckout-supercheckout li.shaim-balikovna-selected-row > #vyhledejte_pobocku_balikovna.shaim-balikovna-active {
    display: flex !important;
}

/* Selected branch: clear but restrained highlight. */
#module-supercheckout-supercheckout #vyhledejte_pobocku_balikovna > .chosen_branch_balikovna {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 8px !important;
    padding: 10px 12px 10px 14px !important;
    background: #f7efe7 !important;
    border: 1px solid #d7bda7 !important;
    border-left: 4px solid #8a5b2f !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    color: #2f2925 !important;
    box-sizing: border-box !important;
}

#module-supercheckout-supercheckout .chosen_branch_balikovna_copy {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    align-items: baseline !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

#module-supercheckout-supercheckout .chosen_branch_balikovna_label {
    font-weight: 700 !important;
    color: #68472d !important;
    white-space: nowrap !important;
}

#module-supercheckout-supercheckout .chosen_branch_balikovna_value {
    font-weight: 600 !important;
    color: #2f2a26 !important;
    overflow-wrap: anywhere !important;
}

/* Google Maps is deliberately just a small text link. */
#module-supercheckout-supercheckout .chosen_branch_balikovna_map,
#module-supercheckout-supercheckout .chosen_branch_balikovna_map:visited {
    display: inline !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #806a59 !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    white-space: nowrap !important;
}

#module-supercheckout-supercheckout .chosen_branch_balikovna_map:hover,
#module-supercheckout-supercheckout .chosen_branch_balikovna_map:focus {
    background: transparent !important;
    color: #4f351f !important;
    text-decoration: underline !important;
}

/* Choose/change button comes after the selected branch. */
#module-supercheckout-supercheckout #vyhledejte_pobocku_balikovna > .open-branch-button_balikovna {
    order: 2 !important;
    align-self: flex-start !important;
    margin: 0 !important;
}

@media (max-width: 820px) {
    #module-supercheckout-supercheckout #vyhledejte_pobocku_balikovna {
        margin-top: 8px !important;
        padding-top: 8px !important;
    }

    #module-supercheckout-supercheckout #vyhledejte_pobocku_balikovna > .chosen_branch_balikovna {
        align-items: flex-start !important;
        gap: 7px !important;
        padding: 9px 10px 9px 12px !important;
    }

    #module-supercheckout-supercheckout .chosen_branch_balikovna_copy {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    #module-supercheckout-supercheckout #vyhledejte_pobocku_balikovna > .open-branch-button_balikovna {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 40px !important;
        justify-content: center !important;
    }
}

@media (max-width: 430px) {
    #module-supercheckout-supercheckout #vyhledejte_pobocku_balikovna > .chosen_branch_balikovna {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #module-supercheckout-supercheckout .chosen_branch_balikovna_map {
        align-self: flex-start !important;
        margin-top: 3px !important;
        font-size: 10px !important;
    }
}
