/* Quick order dialog. Loaded by product.php only, after product.css (product pages
   are the only place it appears). Relies on base.css/product.css tokens. */
.pf-btn--order {
    flex: 1 1 100%;
}

.pf-btn--secondary {
    background: #fff;
    color: var(--brand-teal);
    border-color: var(--brand-teal);
    flex: 1 1 160px;
}

.pf-btn--secondary:hover {
    background: var(--brand-teal);
    color: #fff;
}

@media (max-width: 560px) {
    .pf-btn--secondary {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 10px;
        white-space: nowrap;
    }
}

.qo {
    margin: auto;
    width: min(600px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: #0f1f1e;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    overflow: auto;
}

.qo::backdrop {
    background: rgba(11, 46, 44, 0.55);
}

.qo [hidden] {
    display: none !important;
}

.qo__form,
.qo__done {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
}

.qo__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.qo__title {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.qo__sub {
    margin: 4px 0 0;
    font-size: 14px;
    color: #55645f;
}

.qo__close {
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f0f4f3;
    font-size: 22px;
    cursor: pointer;
}

.qo__item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #f5f7f6;
}

.qo__thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #e6ecea;
    object-fit: contain;
}

.qo__itemtxt {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.qo__itemtxt span {
    font-size: 13px;
    color: #55645f;
}

.qo__qty {
    display: flex;
    align-items: center;
    height: 48px;
    border: 1px solid #c5d1ce;
    border-radius: 12px;
    background: #fff;
}

.qo__qty button {
    width: 44px;
    height: 46px;
    border: 0;
    background: none;
    font-size: 20px;
    cursor: pointer;
}

.qo__qty output {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
}

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

.qo__f {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
}

.qo__lbl {
    display: block;
}

.qo__opt {
    font-weight: 400;
    color: #55645f;
}

.qo__f input,
.qo__f select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid #c5d1ce;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    color: #0f1f1e;
}

.qo__f input:focus-visible,
.qo__f select:focus-visible,
.qo__seg input:focus-visible + span,
.qo button:focus-visible,
.qo a:focus-visible {
    outline: 3px solid #3ee6c1;
    outline-offset: 2px;
}

.qo__pay {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.qo__pay legend {
    padding: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
}

.qo__seg {
    flex: 1;
    position: relative;
}

.qo__seg input {
    position: absolute;
    opacity: 0;
    inset: 0;
}

.qo__seg span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border: 1.5px solid #d5dedb;
    border-radius: 12px;
    background: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.qo__seg input:checked + span {
    border-color: #0e6e66;
    background: #f2faf7;
    box-shadow: 0 0 0 3px #cdefe6;
}

.qo__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.qo__error {
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fdecea;
    color: #a12a1f;
    font-size: 14px;
}

.qo__row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #43524f;
}

.qo__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 4px;
}

.qo__total strong {
    font-size: 26px;
}

.qo__fine {
    margin: -8px 0 0;
    font-size: 12px;
    color: #55645f;
}

.qo__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border: 0;
    border-radius: 14px;
    background: #0e6e66;
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

.qo__submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.qo__alt {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: #55645f;
}

.qo__alt a {
    font-weight: 700;
    color: #13703b;
    text-decoration: none;
}

.qo__done {
    align-items: center;
    justify-content: center;
    min-height: 380px;
    text-align: center;
}

.qo__tick {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #e3f4f0;
    color: #0e6e66;
}

.qo__eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #0e6e66;
}

.qo__lead {
    max-width: 400px;
    margin: 0;
    color: #43524f;
    line-height: 1.6;
}

.qo__submit--link {
    padding: 0 26px;
}

@media (max-width: 560px) {
    .qo__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .qo__form,
    .qo__done {
        padding: 20px 16px;
    }

    .qo__item {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .qo__qty {
        grid-column: 1 / -1;
        justify-self: start;
    }
}
