/*
 * Společný řádek dvou pomocných boxů:
 *
 * vlevo:  Nenašli jste zboží?
 * vpravo: Našli jste lepší cenu?
 */
.pw-product-help-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    width: 100%;
    max-width: 100%;
    margin: 38px 0 18px;
}

/*
 * Původní box Našli jste lepší cenu? už má vlastní okraj.
 * Po vložení do společného řádku ho odstraníme.
 */
.pw-product-help-row > .pw-better-price-box {
    width: 100%;
    margin: 0;
}

/* Levý box */
.pw-missing-product-box {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.pw-missing-product-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    height: 100%;
    padding: 10px 14px;
    background: #fff;
    color: #111;
    text-align: left;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    cursor: pointer;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.pw-missing-product-trigger:hover {
    border-color: #aaa;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

.pw-missing-product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin-right: 12px;
    background: #f1f1f1;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.pw-missing-product-copy {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
}

.pw-missing-product-title {
    color: #111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.pw-missing-product-arrow {
    flex: 0 0 auto;
    margin-left: 10px;
    color: #777;
    font-size: 23px;
    line-height: 1;
}

/* Zákaz posouvání stránky při otevřeném okně */
.pw-missing-product-modal-open {
    overflow: hidden;
}

/* Modální okno */
.pw-missing-product-modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pw-missing-product-modal.is-visible {
    display: flex;
}

.pw-missing-product-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.pw-missing-product-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    padding: 32px;
    background: #fff;
    color: #111;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.pw-missing-product-dialog h2 {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.2;
}

.pw-missing-product-dialog p {
    margin: 0 0 16px;
    color: #555;
    font-size: 15px;
    line-height: 1.55;
}

.pw-missing-product-dialog .pw-missing-product-note {
    margin-bottom: 24px;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

.pw-missing-product-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    color: #111;
    border: 0;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.pw-missing-product-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pw-missing-product-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    text-decoration: none !important;
    cursor: pointer;
}

.pw-missing-product-email {
    background: #111;
    color: #fff !important;
}

.pw-missing-product-cancel {
    border: 0;
}

/*
 * Oba horní boxy musí mít stejnou výšku,
 * i když je levý text delší.
 */
.pw-product-help-row .pw-better-price-trigger,
.pw-product-help-row .pw-missing-product-trigger {
    height: 100%;
}

/* Tablet a mobil */
@media (max-width: 767px) {
    .pw-product-help-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 26px 0 16px;
    }

    .pw-product-help-row .pw-better-price-trigger,
    .pw-product-help-row .pw-missing-product-trigger {
        min-height: 64px;
        padding: 12px 14px;
    }

    .pw-product-help-row .pw-better-price-icon,
    .pw-product-help-row .pw-missing-product-icon {
        display: inline-flex;
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        margin-right: 12px;
        font-size: 17px;
    }

    .pw-product-help-row .pw-better-price-title,
    .pw-product-help-row .pw-missing-product-title {
        white-space: normal;
        font-size: 14px;
        line-height: 1.3;
    }

    .pw-product-help-row .pw-better-price-arrow,
    .pw-product-help-row .pw-missing-product-arrow {
        margin-left: auto;
        padding-left: 8px;
        font-size: 22px;
    }
}

@media (max-width: 380px) {
    .pw-missing-product-title {
        font-size: 12px;
    }
}

/*
 * Oba boxy budou stejně vysoké a podobně velké
 * jako Věrnostní program a Rychlý kontakt.
 */
.pw-product-help-row > .pw-better-price-box,
.pw-product-help-row > .pw-missing-product-box {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.pw-product-help-row .pw-better-price-trigger,
.pw-product-help-row .pw-missing-product-trigger {
    width: 100%;
    min-height: 112px;
    height: 100%;
    padding: 20px 28px;
}

.pw-product-help-row .pw-better-price-icon,
.pw-product-help-row .pw-missing-product-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    margin-right: 18px;
    font-size: 22px;
}

.pw-product-help-row .pw-better-price-title,
.pw-product-help-row .pw-missing-product-title {
    font-size: 18px;
    line-height: 1.3;
}

.pw-product-help-row .pw-better-price-arrow,
.pw-product-help-row .pw-missing-product-arrow {
    margin-left: auto;
    padding-left: 14px;
    font-size: 28px;
}

/*
 * Nový řádek je ve stejném rodiči jako
 * .detail-button-wrapper.
 */
.p-info-wrapper > .pw-product-help-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    width: 100%;
    margin: 30px 0 18px;
    padding: 0;
}

/*
 * Oba nové boxy bez vlastních vnějších okrajů.
 */
.p-info-wrapper > .pw-product-help-row
> .pw-missing-product-box,
.p-info-wrapper > .pw-product-help-row
> .pw-better-price-box {
    width: 100%;
    min-width: 0;
    margin: 0;
}

/*
 * Stejná velikost obou horních boxů.
 */
.p-info-wrapper .pw-product-help-row
.pw-missing-product-trigger,
.p-info-wrapper .pw-product-help-row
.pw-better-price-trigger {
    width: 100%;
    min-height: 96px;
    height: 100%;
    padding: 16px 20px;
}

/*
 * Text nesmí zbytečně zabírat několik řádků.
 */
.p-info-wrapper .pw-product-help-row
.pw-missing-product-title,
.p-info-wrapper .pw-product-help-row
.pw-better-price-title {
    white-space: normal;
    font-size: 16px;
    line-height: 1.3;
}

/*
 * Šipky zarovnané doprava.
 */
.p-info-wrapper .pw-product-help-row
.pw-missing-product-arrow,
.p-info-wrapper .pw-product-help-row
.pw-better-price-arrow {
    margin-left: auto;
    padding-left: 12px;
}

/*
 * Mobilní zobrazení pod sebou.
 */
@media (max-width: 767px) {
    .p-info-wrapper > .pw-product-help-row {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 22px 0 14px;
    }

    .p-info-wrapper .pw-product-help-row
    .pw-missing-product-trigger,
    .p-info-wrapper .pw-product-help-row
    .pw-better-price-trigger {
        min-height: 62px;
        padding: 11px 13px;
    }

    .p-info-wrapper .pw-product-help-row
    .pw-missing-product-title,
    .p-info-wrapper .pw-product-help-row
    .pw-better-price-title {
        font-size: 14px;
    }
}