.ghz-pb-smart {
    border: 1px solid #d8dee8;
    border-radius: 16px;
    padding: 18px;
    margin: 0 0 20px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(16, 24, 40, .05);
}

.ghz-pb-smart__intro {
    margin-bottom: 14px;
}

.ghz-pb-smart__intro h3 {
    margin: 4px 0 5px;
    font-size: 21px;
    line-height: 1.25;
}

.ghz-pb-smart__intro p {
    margin: 0;
    color: #667085;
    max-width: 760px;
}

.ghz-pb-smart__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #344054;
}

.ghz-pb-smart__fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ghz-pb-smart__fields label,
.ghz-pb-smart__advanced label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 700;
}

.ghz-pb-smart__fields label > span:first-child,
.ghz-pb-smart__advanced label > span:first-child {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.ghz-pb-smart__fields small {
    font-size: 11px;
    font-weight: 500;
    color: #667085;
}

.ghz-pb-smart input,
.ghz-pb-smart select {
    min-height: 44px;
    width: 100%;
    border: 1px solid #cfd7e3;
    border-radius: 10px;
    padding: 9px 11px;
    background: #fff;
    color: #101828;
}

.ghz-pb-smart__input {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border: 1px solid #cfd7e3;
    border-radius: 10px;
    overflow: hidden;
}

.ghz-pb-smart__input input {
    border: 0;
    border-radius: 0;
}

.ghz-pb-smart__input b {
    padding: 0 12px;
    color: #667085;
}

.ghz-pb-smart__advanced {
    margin-top: 12px;
    border-top: 1px solid #eaecf0;
    padding-top: 10px;
}

.ghz-pb-smart__advanced summary {
    cursor: pointer;
    font-weight: 750;
}

.ghz-pb-smart__advanced label {
    max-width: 360px;
    margin-top: 10px;
}

.ghz-pb-smart__actions,
.ghz-pb-smart__cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.ghz-pb-smart button {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    padding: 9px 14px;
    font-weight: 800;
    cursor: pointer;
}

.ghz-pb-smart__build,
.ghz-pb-smart__cart button {
    background: #111827;
    color: #fff;
}

.ghz-pb-smart button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.ghz-pb-smart__result {
    margin-top: 16px;
}

.ghz-pb-smart__result-head {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ghz-pb-smart__result-head > div {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 11px 13px;
}

.ghz-pb-smart__result-head small,
.ghz-pb-smart__result-head strong {
    display: block;
}

.ghz-pb-smart__result-head small {
    color: #667085;
    margin-bottom: 2px;
}

.ghz-pb-smart__result-head strong {
    font-size: 18px;
}

.ghz-pb-smart__warnings {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fffaeb;
    color: #7a2e0e;
}

.ghz-pb-smart__warnings p {
    margin: 3px 0;
    font-size: 13px;
}

.ghz-pb-smart__suggestion {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #abefc6;
    border-radius: 12px;
    background: #ecfdf3;
    margin: 12px 0;
}

.ghz-pb-smart__suggestion div {
    display: grid;
    gap: 2px;
}

.ghz-pb-smart__suggestion small,
.ghz-pb-smart__suggestion span,
.ghz-pb-smart__confirm-note {
    color: #475467;
}

.ghz-pb-smart__roles {
    display: grid;
    gap: 8px;
}

.ghz-pb-smart__role {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eaecf0;
    padding: 9px 0;
}

.ghz-pb-smart__role-main {
    display: grid;
    gap: 2px;
}

.ghz-pb-smart__role-main small {
    color: #667085;
    line-height: 1.35;
}

.ghz-pb-smart__find {
    background: #f2f4f7;
    color: #344054;
    white-space: nowrap;
}

.ghz-pb-smart__policy {
    margin: 12px 0 0;
    color: #667085;
    font-size: 12px;
}

.ghz-pb-smart__cart {
    justify-content: space-between;
    border-top: 1px solid #eaecf0;
    padding-top: 14px;
}

.ghz-pb-smart__cart > div {
    display: grid;
}

.ghz-pb-smart__cart small {
    color: #667085;
}

.ghz-pb-smart__cart a {
    font-weight: 800;
}

[dir="rtl"] .ghz-pb-smart__role-main,
[dir="rtl"] .ghz-pb-smart__suggestion div {
    text-align: right;
}

@media (max-width: 780px) {
    .ghz-pb-smart__fields,
    .ghz-pb-smart__result-head {
        grid-template-columns: 1fr;
    }

    .ghz-pb-smart__suggestion,
    .ghz-pb-smart__role {
        align-items: stretch;
        flex-direction: column;
    }

    .ghz-pb-smart__find,
    .ghz-pb-smart__suggestion button {
        width: 100%;
    }
}


.ghz-pb-smart__quote-box {
    margin-top: 16px;
    border-top: 1px solid #eaecf0;
    padding-top: 14px;
}

.ghz-pb-smart__notes {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    font-weight: 700;
}

.ghz-pb-smart__notes > span {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.ghz-pb-smart__notes small,
.ghz-pb-smart__quote-help {
    color: #667085;
    font-weight: 500;
}

.ghz-pb-smart__notes textarea {
    width: 100%;
    min-height: 82px;
    resize: vertical;
    border: 1px solid #cfd7e3;
    border-radius: 10px;
    padding: 10px 11px;
    background: #fff;
    color: #101828;
}

.ghz-pb-smart__share {
    display: grid;
    gap: 14px;
}

.ghz-pb-smart__share-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.ghz-pb-smart__share-head > div:first-child,
.ghz-pb-smart__selected-summary {
    display: grid;
    gap: 2px;
}

.ghz-pb-smart__share-head > div:first-child > strong {
    font-size: 18px;
}

.ghz-pb-smart__share-head small,
.ghz-pb-smart__selected-summary small {
    color: #667085;
}

.ghz-pb-smart__selected-summary {
    text-align: end;
}

.ghz-pb-smart__generate-pdf {
    min-height: 72px !important;
    width: 100%;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 12px 16px !important;
    text-align: start;
    background: #102a5e !important;
    color: #fff !important;
}

.ghz-pb-smart__generate-pdf span {
    font-size: 16px;
    font-weight: 850;
}

.ghz-pb-smart__generate-pdf small {
    color: rgba(255,255,255,.76);
    font-size: 11px;
    font-weight: 600;
}

.ghz-pb-smart__pdf-ready {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #abefc6;
    border-radius: 12px;
    background: #ecfdf3;
}

.ghz-pb-smart__pdf-ready[hidden] {
    display: none !important;
}

.ghz-pb-smart__pdf-ready-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ghz-pb-smart__pdf-ready-head > div {
    display: grid;
    gap: 2px;
}

.ghz-pb-smart__pdf-ready-head strong {
    color: #05603a;
}

.ghz-pb-smart__pdf-ready-head small {
    color: #475467;
}

.ghz-pb-smart__pdf-ready-head > span {
    display: grid;
    place-items: center;
    min-width: 48px;
    height: 34px;
    padding: 0 9px;
    border-radius: 8px;
    background: #d1fadf;
    color: #027a48;
    font-size: 11px;
    font-weight: 900;
}

.ghz-pb-smart__share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.ghz-pb-smart__share-button {
    min-height: 72px !important;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 11px 13px !important;
    text-align: start;
    border: 1px solid #d0d5dd !important;
    background: #fff;
    color: #101828;
}

.ghz-pb-smart__share-button span {
    font-size: 14px;
    font-weight: 850;
}

.ghz-pb-smart__share-button small {
    color: #667085;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
}

.ghz-pb-smart__share-button--native {
    border-color: #84adff !important;
    background: #eef4ff;
}

.ghz-pb-smart__share-button--download {
    background: #f9fafb;
}

.ghz-pb-smart__share-button--whatsapp {
    border-color: #abefc6 !important;
    background: #ecfdf3;
}

.ghz-pb-smart__share-button--email {
    background: #f5f8ff;
}

.ghz-pb-smart__share-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ghz-pb-smart__cart-secondary {
    background: #f2f4f7;
    color: #344054;
}

.ghz-pb-smart__quote-help {
    display: block;
    margin-top: 2px;
    line-height: 1.5;
}

@media (max-width: 780px) {
    .ghz-pb-smart__share-head {
        align-items: stretch;
        flex-direction: column;
    }

    .ghz-pb-smart__selected-summary {
        text-align: start;
    }

    .ghz-pb-smart__share-actions {
        grid-template-columns: 1fr;
    }

    .ghz-pb-smart__generate-pdf,
    .ghz-pb-smart__share-button {
        width: 100%;
    }
}

/* GHZ v0.6.8 branding styles */

/*
 * The real logo replaces the old GHZ square in the
 * full-screen builder header.
 */
.ghz-pb-fullscreen .ghz-pb-ux-mark {
    display: none !important;
}

.ghz-pb-modal-gahzly-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ghz-pb-modal-gahzly-logo img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.ghz-pb-ux-brand {
    gap: 10px;
}

/*
 * Old v0.6.7 HTML overlay badges are retired.
 * Branding now lives directly inside the preview SVG,
 * which makes it part of the PDF visualization too.
 */
.ghz-pb-brand-badge,
.ghz-pb-brand-lockup {
    display: none !important;
}

/* /GHZ v0.6.8 branding styles */
