.dbw-customer-shortcode,
.dbw-customer-profile {
    --dbw-ink: #1f2937;
    --dbw-accent: #0f766e;
    --dbw-accent-2: #f59e0b;
    --dbw-surface: #fffaf3;
    --dbw-line: #e7d7c1;
    --dbw-white: #ffffff;
    color: var(--dbw-ink);
    font-family: "Segoe UI", Arial, sans-serif;
}

.dbw-customer-shortcode * ,
.dbw-customer-profile * {
    box-sizing: border-box;
}

.dbw-customer-shortcode {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px;
}

.dbw-customer-shell {
    display: flex;
    justify-content: center;
}

.dbw-customer-panel,
.dbw-customer-profile {
    width: 100%;
    border-radius: 30px;
    border: 1px solid var(--dbw-line);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 32%),
        linear-gradient(135deg, #fff9f0, #fff);
    box-shadow: 0 24px 60px rgba(72, 42, 14, 0.12);
}

.dbw-customer-panel {
    max-width: 560px;
    padding: 28px;
}

.dbw-customer-profile {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
}

.dbw-customer-hero,
.dbw-profile-dashboard__hero,
.dbw-profile-editor__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.dbw-customer-hero {
    justify-content: center;
    margin-bottom: 18px;
}

.dbw-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9a6a22;
    font-weight: 700;
}

.dbw-customer-hero h2,
.dbw-profile-dashboard__hero h2,
.dbw-profile-editor__header h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.1;
}

.dbw-customer-brand {
    flex: 0 0 auto;
}

.dbw-customer-logo {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    background: var(--dbw-white);
    border: 1px solid var(--dbw-line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    font-weight: 700;
}

.dbw-customer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dbw-customer-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.dbw-customer-tab,
.dbw-btn,
.dbw-link-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
}

.dbw-customer-tab,
.dbw-btn {
    min-height: 48px;
    border-radius: 16px;
    font-weight: 700;
    transition: 0.2s ease;
}

.dbw-customer-tab {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--dbw-line);
}

.dbw-customer-tab.is-active,
.dbw-btn--primary {
    color: var(--dbw-white);
    background: linear-gradient(135deg, var(--dbw-accent), #0891b2);
}

.dbw-btn--ghost {
    background: #fff4e4;
    color: #7c4b0b;
    border: 1px solid #f2cf98;
}

.dbw-btn--full {
    width: 100%;
}

.dbw-customer-form {
    display: none;
    gap: 14px;
}

.dbw-customer-form.is-active,
.dbw-customer-profile__form.is-visible {
    display: flex;
    flex-direction: column;
}

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

.dbw-form__group,
.dbw-form__group--full {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dbw-form__group--full {
    grid-column: 1 / -1;
}

.dbw-form__group label {
    font-size: 14px;
    font-weight: 600;
}

.dbw-profile-upload-preview {
    min-height: 150px;
    border: 1px dashed #d8b78b;
    border-radius: 18px;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #8b5e22;
    text-align: center;
}

.dbw-profile-upload-preview.has-image {
    border-style: solid;
}

.dbw-profile-upload-preview img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 14px;
    object-fit: contain;
}

.dbw-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid #d4b58c;
    background: rgba(255, 255, 255, 0.92);
    font-size: 15px;
}

textarea.dbw-input {
    min-height: 110px;
    resize: vertical;
}

.dbw-input:focus {
    outline: 0;
    border-color: #0891b2;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.14);
}

.dbw-customer-feedback {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 16px;
}

.dbw-customer-feedback.is-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #166534;
}

.dbw-customer-feedback.is-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.dbw-profile-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dbw-profile-card {
    display: block;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--dbw-line);
    background: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    color: inherit;
}

.dbw-profile-card__status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.dbw-profile-card__status.is-complete {
    background: #dcfce7;
    color: #166534;
}

.dbw-profile-card__status.is-pending {
    background: #fff7ed;
    color: #9a3412;
}

.dbw-download-disabled {
    pointer-events: none;
    opacity: 0.6;
}

@media (max-width: 767px) {
    .dbw-customer-panel,
    .dbw-customer-profile {
        padding: 22px;
        border-radius: 24px;
    }

    .dbw-customer-hero,
    .dbw-profile-dashboard__hero,
    .dbw-profile-editor__header,
    .dbw-profile-cards,
    .dbw-form__grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .dbw-customer-tabs {
        grid-template-columns: 1fr;
    }
}
