:root {
    --obq-bg: #fff;
    --obq-text: #1e1e1e;
    --obq-muted: #6f6f6f;
    --obq-line: #ececec;
    --obq-dark: #111;
    --obq-radius: 18px;
}

.obq-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .32);
    opacity: 0;
    pointer-events: none;
    transition: .24s ease;
    z-index: 99998
}

.obq-overlay.is-open {
    opacity: 1;
    pointer-events: auto
}

.obq-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(460px, 94vw);
    height: 100vh;
    background: var(--obq-bg);
    transform: translateX(105%);
    transition: transform .28s ease;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    color: var(--obq-text);
    font-family: inherit
}

.obq-drawer.is-open {
    transform: translateX(0)
}

.obq-drawer__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid var(--obq-line)
}

.obq-drawer-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800
}

.obq-eyebrow {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    color: var(--obq-muted)
}

.obq-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--obq-line);
    background: #fff;
    border-radius: 999px;
    font-size: 24px;
    cursor: pointer
}

.obq-drawer__body {
    padding: 18px 22px 28px;
    overflow: auto
}

.obq-floating-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99990;
}

.obq-floating-count {
    position: absolute;
    right: -4px;
    top: -4px;
    background: #f5c542;
    color: #111;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700
}

.obq-step {
    display: none
}

.obq-step.is-active {
    display: block
}

.obq-empty {
    padding: 22px;
    border: 1px dashed var(--obq-line);
    border-radius: var(--obq-radius);
    color: var(--obq-muted);
    text-align: center
}

.obq-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--obq-line)
}

.obq-thumb img,
.obq-thumb-placeholder {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 14px;
    background: #f2f2f2
}

.obq-item-main strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 4px
}

.obq-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: var(--obq-muted);
    font-size: 12px;
    margin-bottom: 10px
}

.obq-qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px
}

.obq-qty-row input {
    width: 74px;
    text-align: center;
    padding: 8px;
    border: 1px solid var(--obq-line);
    border-radius: 10px
}

.obq-qty-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--obq-line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1
}

.obq-remove {
    border: 0;
    background: transparent;
    color: #b00020;
    cursor: pointer;
    padding: 8px;
    margin-left: auto
}

.obq-quick-qty {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px
}

.obq-quick-qty button {
    border: 1px solid var(--obq-line);
    background: #fafafa;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px
}

.obq-item textarea {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--obq-line);
    border-radius: 12px;
    padding: 9px 10px;
    resize: vertical
}

.obq-note {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f7f7f7;
    color: #555;
    font-size: 13px;
    line-height: 1.45
}

.obq-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px
}

.obq-actions--stack {
    flex-direction: column
}

.obq-primary,
.obq-secondary,
.obq-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font: inherit
}

.obq-primary {
    border: 0;
    background: #111;
    color: #fff
}

.obq-secondary {
    border: 1px solid var(--obq-line);
    background: #fff;
    color: #222
}

.obq-whatsapp {
    border: 0;
    background: #25D366;
    color: #111
}

.obq-form {
    display: grid;
    gap: 12px
}

.obq-form-title,
.obq-success-title {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 800
}

.obq-form-intro {
    margin: 0;
    color: var(--obq-muted);
    font-size: 13px;
    line-height: 1.45
}

.obq-form label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: #444
}

.obq-form input,
.obq-form textarea {
    width: 100%;
    border: 1px solid var(--obq-line);
    border-radius: 12px;
    padding: 11px 12px;
    font: inherit
}

.obq-message {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 12px;
    display: none
}

.obq-message.is-info,
.obq-message.is-error,
.obq-message.is-success {
    display: block
}

.obq-message.is-info {
    background: #f2f2f2;
    color: #333
}

.obq-message.is-error {
    background: #fff1f1;
    color: #9b0000
}

.obq-message.is-success {
    background: #edf8ef;
    color: #176b2c
}

.obq-success {
    text-align: center;
    padding: 28px 4px
}

.obq-success-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: #edf8ef;
    color: #176b2c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800
}

.obq-success p {
    color: #555;
    line-height: 1.5
}

.obq-success-number {
    font-weight: 700;
    color: #111 !important
}

.obsekya-add-to-quote.is-loading {
    opacity: .6;
    pointer-events: none
}

body.admin-bar .obq-drawer {
    top: 32px;
    height: calc(100vh - 32px)
}

@media(max-width:782px) {
    body.admin-bar .obq-drawer {
        top: 46px;
        height: calc(100vh - 46px)
    }

    .obq-floating-button {
        right: 16px;
        bottom: 16px
    }

    .obq-actions {
        flex-direction: column
    }

    .obq-primary,
    .obq-secondary,
    .obq-whatsapp {
        width: 100%
    }
}
