/* Get Best Price enquiry popup — Inter, exact layout */

.gbp {
    --gbp-teal: #0b5d57;
    --gbp-dark: #073b37;
    --gbp-amber: #f2a900;
    --gbp-fill: #eef4f3;
    --gbp-border: #c9d3cf;
    --gbp-ink: #1c2528;
    --gbp-muted: #445654;
    --gbp-muted2: #5b6b6f;
    --gbp-side-sub: #cfe8e5;
    --gbp-online: #3ddc84;
    --gbp-err: #b42318;

    font-family: Inter, system-ui, sans-serif;
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

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

.gbp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.gbp-dialog {
    position: relative;
    z-index: 1;
    width: 900px;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gbp-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--gbp-ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}

.gbp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.gbp-form-col {
    min-width: 0;
    overflow-y: auto;
    max-height: calc(100vh - 48px);
}

.gbp-form {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gbp-title {
    margin: 0;
    padding-right: 36px;
    font-size: 22px;
    font-weight: 700;
    color: var(--gbp-ink);
    line-height: 1.25;
}

.gbp-sub {
    margin: -4px 0 0;
    font-size: 13px;
    color: var(--gbp-muted);
    line-height: 1.4;
}

.gbp-mobile-steps {
    display: none;
    margin: 0;
    font-size: 12px;
    color: var(--gbp-muted2);
    line-height: 1.35;
}

.gbp-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gbp-products {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(3 * 60px + 16px);
    overflow-y: auto;
}

.gbp-product {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gbp-fill);
    border-radius: 8px;
    padding: 10px 12px;
}

.gbp-product-thumb {
    flex: 0 0 46px;
    width: 46px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background: #d5dddb;
    display: block;
}

.gbp-product-ph {
    flex: 0 0 46px;
    width: 46px;
    height: 40px;
    border-radius: 4px;
    background: #d5dddb;
}

.gbp-product-info {
    flex: 1 1 auto;
    min-width: 0;
}

.gbp-product-name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--gbp-ink);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gbp-product-meta {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--gbp-muted2);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gbp-product-change,
.gbp-product-remove {
    flex: 0 0 auto;
    border: 0;
    background: none;
    color: var(--gbp-teal);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 2px;
    line-height: 1;
}

.gbp-product-remove {
    font-size: 18px;
    font-weight: 400;
    color: var(--gbp-muted2);
    width: 28px;
    height: 28px;
}

.gbp-product-remove:hover {
    color: var(--gbp-err);
}

.gbp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
    row-gap: 12px;
}

.gbp-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.gbp-location,
.gbp-req-block {
    margin-top: 12px;
}

.gbp-location[hidden] {
    display: none !important;
}

.gbp-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gbp-field-full {
    grid-column: 1 / -1;
}

.gbp-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gbp-ink);
}

.gbp-req {
    color: var(--gbp-err);
    font-weight: 700;
    margin-left: 1px;
}

.gbp-input,
.gbp-textarea {
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    border: 1px solid var(--gbp-border);
    border-radius: 6px;
    padding: 0 11px;
    font-family: inherit;
    font-size: 14px;
    color: var(--gbp-ink);
    background: #fff;
}

.gbp-textarea {
    height: 62px;
    padding: 10px 11px;
    resize: vertical;
}

.gbp-textarea-lg {
    height: 88px;
    min-height: 88px;
}

.gbp-input:focus,
.gbp-textarea:focus {
    outline: 2px solid rgba(11, 93, 87, 0.25);
    border-color: var(--gbp-teal);
}

.gbp-field.is-invalid .gbp-input,
.gbp-field.is-invalid .gbp-textarea {
    border-color: var(--gbp-err);
}

.gbp-error {
    margin: 0;
    font-size: 12px;
    color: var(--gbp-err);
    min-height: 0;
    display: none;
}

.gbp-field.is-invalid .gbp-error {
    display: block;
}

.gbp-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gbp-ink);
    cursor: pointer;
    user-select: none;
}

.gbp-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--gbp-teal);
    flex-shrink: 0;
}

.gbp-form-error {
    margin: 0;
    font-size: 13px;
    color: var(--gbp-err);
}

.gbp-submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 6px;
    background: var(--gbp-teal);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.gbp-submit:hover {
    background: var(--gbp-dark);
}

.gbp-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.gbp-privacy {
    margin: 0;
    font-size: 12px;
    color: var(--gbp-muted2);
    text-align: center;
    line-height: 1.35;
}

/* Success */
.gbp-success {
    padding: 48px 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 360px;
    justify-content: center;
}

.gbp-success-tick {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e3f6ec;
    color: #11643a;
    display: grid;
    place-items: center;
}

.gbp-success-tick svg {
    width: 28px;
    height: 28px;
}

.gbp-success-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--gbp-ink);
    line-height: 1.35;
}

.gbp-success-sub {
    margin: 0;
    font-size: 14px;
    color: var(--gbp-muted);
}

.gbp-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}

.gbp-btn-browse,
.gbp-btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.gbp-btn-browse {
    border: 1.5px solid var(--gbp-teal);
    background: #fff;
    color: var(--gbp-teal);
}

.gbp-btn-wa {
    border: 0;
    background: #25d366;
    color: #fff;
}

/* Side panel */
.gbp-side {
    background: var(--gbp-dark);
    color: #fff;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
}

.gbp-side-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.gbp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gbp-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.gbp-step-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gbp-amber);
    color: var(--gbp-dark);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gbp-step-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.gbp-step-desc {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--gbp-side-sub);
    line-height: 1.35;
}

.gbp-side-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gbp-online {
    margin: 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.gbp-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gbp-online);
    flex-shrink: 0;
}

.gbp-chat-btn {
    height: 40px;
    border: 1.5px solid #fff;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.gbp-chat-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.gbp-call {
    margin: 0;
    font-size: 13px;
    color: var(--gbp-side-sub);
}

body.gbp-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .gbp {
        padding: 0;
        align-items: stretch;
    }

    .gbp-dialog {
        width: 100%;
        max-width: none;
        max-height: none;
        height: 100%;
        border-radius: 0;
    }

    .gbp-layout {
        grid-template-columns: 1fr;
        height: 100%;
    }

    .gbp-side {
        display: none;
    }

    .gbp-form-col {
        max-height: none;
        height: 100%;
        display: flex;
        flex-direction: column;
        padding-bottom: 72px;
    }

    .gbp-form {
        padding: 20px 16px 16px;
        flex: 1 1 auto;
    }

    .gbp-mobile-steps {
        display: block;
    }

    .gbp-grid,
    .gbp-grid-3 {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .gbp-submit {
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 12px;
        z-index: 4;
        width: auto;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .gbp-privacy {
        margin-bottom: 8px;
    }

    .gbp-success {
        min-height: 100%;
        padding: 32px 16px;
    }
}
