/* QuoteFlow's independent quote drawer. */

.brcode-qf-drawer[hidden] {
    display: none !important;
}

html.brcode-qf-drawer-open,
html.brcode-qf-drawer-open body {
    overflow: hidden;
}

.brcode-qf-drawer {
    position: fixed;
    z-index: 999998;
    inset: 0;
    /* Override block-theme constrained-content rules when the explicit
       shortcode is placed inside a layout container. */
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0;
    box-sizing: border-box;
    color: var(--brcode-qf-text, #111827);
    font-family: var(--brcode-qf-font, inherit);
}

.brcode-qf-drawer__overlay {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--brcode-qf-overlay, #111827) 48%, transparent) !important;
}

.brcode-qf-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(var(--brcode-qf-drawer-width, 480px), 100vw) !important;
    height: 100%;
    box-sizing: border-box;
    background: var(--brcode-qf-background, #ffffff) !important;
    border-left: 1px solid var(--brcode-qf-border, #e5e7eb) !important;
    box-shadow: -18px 0 48px rgb(17 24 39 / 0.16);
    outline: none;
}

.brcode-qf-drawer__header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--brcode-qf-border, #e5e7eb);
}

.brcode-qf-drawer__eyebrow {
    margin: 0 0 5px;
    color: var(--brcode-qf-muted, #6b7280);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brcode-qf-drawer__title,
.brcode-qf-drawer__empty-title,
.brcode-qf-drawer__success-title {
    margin: 0;
    color: inherit;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.brcode-qf-drawer__summary {
    margin: 6px 0 0;
    color: var(--brcode-qf-muted, #6b7280);
    font-size: 13px;
}

.brcode-qf-drawer__close,
.brcode-qf-drawer__close-secondary,
.brcode-qf-drawer__back,
.brcode-qf-drawer__continue,
.brcode-qf-drawer__clear,
.brcode-qf-drawer__request,
.brcode-qf-drawer-item__quantity-button,
.brcode-qf-drawer-item__remove {
    min-height: 44px;
    box-sizing: border-box;
    font: inherit;
    cursor: pointer;
}

.brcode-qf-drawer__continue,
.brcode-qf-drawer__clear,
.brcode-qf-drawer-item__remove {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.brcode-qf-drawer__button-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.brcode-qf-drawer__close {
    display: inline-flex;
    width: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--brcode-qf-border, #e5e7eb);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-size: 25px;
    line-height: 1;
}

.brcode-qf-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 24px 28px;
    scrollbar-width: thin;
}

.brcode-qf-drawer__feedback {
    min-height: 1.4em;
    margin: 0 0 10px;
    color: var(--brcode-qf-muted, #6b7280);
    font-size: 13px;
}

.brcode-qf-drawer__feedback[data-qf-feedback-type="error"] {
    color: #a12b2b;
}

.brcode-qf-drawer__feedback[data-qf-feedback-type="success"] {
    color: #176b43;
}

.brcode-qf-drawer__loading {
    margin: 0 0 12px;
    color: var(--brcode-qf-muted, #6b7280);
    font-size: 13px;
}

.brcode-qf-drawer__items {
    display: grid;
    gap: 14px;
}

.brcode-qf-drawer-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--brcode-qf-border, #e5e7eb);
}

.brcode-qf-drawer-item__media,
.brcode-qf-drawer-item__image,
.brcode-qf-drawer-item__placeholder {
    width: 76px;
    height: 76px;
    box-sizing: border-box;
    border-radius: var(--brcode-qf-radius, 8px);
}

.brcode-qf-drawer-item__image {
    display: block;
    object-fit: cover;
}

.brcode-qf-drawer-item__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: var(--brcode-qf-muted, #6b7280);
}

.brcode-qf-drawer-item__content {
    min-width: 0;
}

.brcode-qf-drawer-item__title {
    display: block;
    margin: 0 0 5px;
    overflow-wrap: anywhere;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.brcode-qf-drawer-item__meta,
.brcode-qf-drawer-item__attribute,
.brcode-qf-drawer-item__price {
    margin: 3px 0 0;
    color: var(--brcode-qf-muted, #6b7280);
    font-size: 12px;
    line-height: 1.35;
}

.brcode-qf-drawer-item__price {
    color: inherit;
    font-weight: 700;
}

.brcode-qf-drawer-item__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.brcode-qf-drawer-item__quantity {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid var(--brcode-qf-border, #e5e7eb);
    border-radius: var(--brcode-qf-radius, 8px);
}

.brcode-qf-drawer-item__quantity-button {
    width: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 20px;
}

.brcode-qf-drawer-item__quantity-value {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.brcode-qf-drawer-item__remove {
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: var(--brcode-qf-muted, #6b7280);
    font-size: 12px;
    text-decoration: underline;
}

.brcode-qf-drawer__empty {
    padding: 44px 12px 36px;
    color: var(--brcode-qf-muted, #6b7280);
    text-align: center;
}

.brcode-qf-drawer__empty p {
    margin: 9px 0 0;
    font-size: 13px;
}

.brcode-qf-drawer__continue,
.brcode-qf-drawer__back {
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--brcode-qf-primary, #1f2937);
    font-size: 13px;
    font-weight: 700;
}

.brcode-qf-drawer__continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 18px auto 0;
}

.brcode-qf-drawer__back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
}

.brcode-qf-drawer__footer {
    flex: 0 0 auto;
    padding: 16px 24px 22px;
    border-top: 1px solid var(--brcode-qf-border, #e5e7eb);
    background: var(--brcode-qf-background, #ffffff);
}

.brcode-qf-drawer__footer [hidden] {
    display: none !important;
}

.brcode-qf-drawer__footer [data-qf-drawer-items-actions] {
    display: grid;
    gap: 10px;
}

.brcode-qf-drawer__clear {
    justify-self: start;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--brcode-qf-muted, #6b7280);
    font-size: 12px;
    text-decoration: underline;
}

.brcode-qf-drawer__request {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--brcode-qf-primary, #1f2937);
    border-radius: var(--brcode-qf-radius, 8px) !important;
    background: var(--brcode-qf-primary, #1f2937) !important;
    color: var(--brcode-qf-primary-contrast, #ffffff) !important;
    font-size: 14px;
    font-weight: 700;
}

.brcode-qf-drawer__request:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.brcode-qf-drawer__request:hover,
.brcode-qf-drawer__request:focus-visible {
    background: var(--brcode-qf-primary-hover, #111827) !important;
    color: var(--brcode-qf-primary-hover-text, #ffffff) !important;
}

.brcode-qf-drawer__close-secondary {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--brcode-qf-border, #e5e7eb);
    border-radius: var(--brcode-qf-radius, 8px);
    background: transparent;
    color: inherit;
}

.brcode-qf-drawer__success {
    padding: 48px 12px;
    text-align: center;
}

.brcode-qf-drawer__success-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 999px;
    background: #e8f5ee;
    color: #176b43;
    font-size: 25px;
    font-weight: 700;
}

.brcode-qf-drawer__success p {
    color: var(--brcode-qf-muted, #6b7280);
    font-size: 13px;
    line-height: 1.5;
}

.brcode-qf-drawer__reference code {
    overflow-wrap: anywhere;
}

.brcode-qf-drawer__whatsapp {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid var(--brcode-qf-border, #e5e7eb);
    border-radius: var(--brcode-qf-radius, 8px);
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.brcode-qf-drawer__whatsapp-icon {
    display: inline-flex;
    width: 1.15em;
    height: 1.15em;
    margin-right: 0.4rem;
    vertical-align: -0.18em;
}

.brcode-qf-drawer__whatsapp-icon svg {
    width: 100%;
    height: 100%;
}

.brcode-qf-drawer :focus-visible,
.brcode-qf-quote-trigger:focus-visible {
    outline: 3px solid rgb(31 41 55 / 0.35);
    outline-offset: 3px;
}

.brcode-qf-quote-trigger {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 9px 14px !important;
    border: 1px solid var(--brcode-qf-trigger-border, #e5e7eb) !important;
    border-radius: var(--brcode-qf-trigger-radius, 8px) !important;
    background: var(--brcode-qf-trigger-background, #ffffff) !important;
    color: var(--brcode-qf-trigger-text, #111827) !important;
    font: inherit !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.brcode-qf-quote-trigger:hover,
.brcode-qf-quote-trigger:focus-visible {
    background: var(--brcode-qf-trigger-hover-background, #f3f4f6) !important;
    color: var(--brcode-qf-trigger-hover-text, #111827) !important;
}

.brcode-qf-quote-trigger__count {
    display: inline-flex;
    min-width: 22px;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--brcode-qf-primary, #1f2937);
    color: var(--brcode-qf-primary-contrast, #ffffff);
    font-size: 11px;
}

.brcode-qf-screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.brcode-qf-drawer .brcode-qf-request-form {
    margin: 0;
}

.brcode-qf-drawer .brcode-qf-section-heading__title {
    font-size: 19px;
}

@media (max-width: 560px) {
    .brcode-qf-drawer__panel {
        width: 100vw;
    }

    .brcode-qf-drawer__header,
    .brcode-qf-drawer__body,
    .brcode-qf-drawer__footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .brcode-qf-drawer-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .brcode-qf-drawer-item__media,
    .brcode-qf-drawer-item__image,
    .brcode-qf-drawer-item__placeholder {
        width: 64px;
        height: 64px;
    }
}
