/* Customer account and authentication pages — scoped to the 2027 storefront. */

.r27-user-breadcrumb {
    border-bottom: 1px solid var(--r27-line);
    background: #f7f7f5;
}

.r27-user-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 52px;
    margin: 0;
    padding: 11px 0;
}

.r27-user-breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--r27-muted);
    font-size: .75rem;
    line-height: 1.55;
}

.r27-user-breadcrumb li + li::before {
    content: '';
    width: 5px;
    height: 5px;
    margin: 0 12px;
    border-top: 1px solid #a8a49d;
    border-right: 1px solid #a8a49d;
    transform: rotate(45deg);
}

.r27-user-breadcrumb a:hover {
    color: var(--r27-gold-dark);
}

.r27-user-breadcrumb li:last-child {
    color: var(--r27-ink);
    font-weight: 500;
}

.r27-user-page {
    display: block;
    min-height: 480px;
    padding: 52px 0 78px;
    background:
        radial-gradient(circle at 85% 8%, rgba(176,151,109,.1), transparent 27%),
        var(--r27-soft);
}

.r27-user-shell {
    width: min(100%, 760px);
    margin: 0 auto;
}

.r27-user-shell--wide {
    width: min(100%, 1040px);
}

.r27-user-heading {
    margin-bottom: 26px;
    text-align: center;
}

.r27-user-eyebrow {
    margin: 0 0 8px;
    color: var(--r27-gold-dark);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.r27-user-heading h1 {
    margin: 0;
    color: var(--r27-ink);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.25;
    text-transform: none;
}

.r27-user-heading > p:last-child {
    max-width: 590px;
    margin: 12px auto 0;
    color: var(--r27-muted);
    font-size: .82rem;
    line-height: 1.7;
}

.r27-user-card {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--r27-line);
    border-radius: var(--r27-radius);
    background: #fff;
    box-shadow: 0 16px 42px rgba(35,34,31,.06);
}

.r27-user-card--compact {
    max-width: 560px;
    margin: 0 auto;
}

.r27-user-form {
    display: grid;
    gap: 18px;
}

.r27-user-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.r27-user-field {
    min-width: 0;
}

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

.r27-user-field label {
    display: block;
    margin-bottom: 7px;
    color: #3d3b37;
    font-size: .75rem;
    font-weight: 600;
}

.r27-user-required {
    color: #a6473e;
}

.r27-user-field input,
.r27-user-field select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #dcd8d0;
    border-radius: 3px;
    outline: 0;
    background: #fff;
    color: var(--r27-ink);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: .78rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.r27-user-field input:focus,
.r27-user-field select:focus {
    border-color: var(--r27-gold);
    box-shadow: 0 0 0 3px rgba(176,151,109,.14);
}

.r27-user-field input:disabled {
    background: #f3f2ef;
    color: #77736c;
}

.r27-user-help {
    display: block;
    margin-top: 6px;
    color: var(--r27-muted);
    font-size: .66rem;
    line-height: 1.5;
}

.r27-user-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 3px;
}

.r27-user-actions--end {
    justify-content: flex-end;
}

.r27-user-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 24px;
    border: 1px solid var(--r27-gold);
    border-radius: 3px;
    background: var(--r27-gold);
    color: #fff;
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.r27-user-button:hover {
    border-color: var(--r27-gold-dark);
    background: var(--r27-gold-dark);
    color: #fff;
}

.r27-user-link {
    color: var(--r27-gold-dark);
    font-size: .74rem;
    font-weight: 500;
}

.r27-user-link:hover {
    color: var(--r27-ink);
}

.r27-user-switch {
    margin: 0 0 24px;
    color: var(--r27-muted);
    font-size: .76rem;
    line-height: 1.6;
    text-align: center;
}

.r27-user-switch a {
    color: var(--r27-gold-dark);
    font-weight: 600;
}

.r27-user-alert {
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid #e3b9b4;
    border-radius: 3px;
    background: #fff4f2;
    color: #8b342c;
    font-size: .72rem;
    line-height: 1.6;
}

.r27-user-alert ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.r27-user-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.r27-user-nav a {
    padding: 9px 15px;
    border: 1px solid var(--r27-line);
    border-radius: 999px;
    background: #fff;
    color: #55524c;
    font-size: .7rem;
    font-weight: 500;
}

.r27-user-nav a:hover,
.r27-user-nav a.active {
    border-color: var(--r27-gold);
    background: #f5f1e9;
    color: var(--r27-gold-dark);
}

.r27-user-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.r27-user-panel-title {
    position: relative;
    margin: 0 0 25px;
    padding: 0 0 15px 13px;
    border-bottom: 1px solid var(--r27-line);
    color: var(--r27-ink);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    text-transform: none;
}

.r27-user-panel-title::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    width: 3px;
    height: 18px;
    background: var(--r27-gold);
}

.r27-points-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 18px 22px;
    border: 1px solid var(--r27-line);
    border-radius: var(--r27-radius);
    background: #fff;
}

.r27-points-card span {
    color: var(--r27-muted);
    font-size: .74rem;
}

.r27-points-card strong {
    color: var(--r27-gold-dark);
    font-size: 1.35rem;
    font-weight: 600;
}

.r27-order-list {
    display: grid;
    gap: 16px;
}

.r27-order-card {
    overflow: hidden;
    border: 1px solid var(--r27-line);
    border-radius: var(--r27-radius);
    background: #fff;
}

.r27-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--r27-line);
    background: #faf9f6;
}

.r27-order-code {
    color: var(--r27-ink);
    font-size: .8rem;
    font-weight: 600;
}

.r27-order-date {
    color: var(--r27-muted);
    font-size: .68rem;
}

.r27-order-body {
    padding: 18px 20px 20px;
}

.r27-order-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 25px;
    margin-bottom: 16px;
    color: #55524d;
    font-size: .73rem;
    line-height: 1.6;
}

.r27-order-total {
    white-space: nowrap;
    color: var(--r27-gold-dark);
    font-weight: 600;
}

.r27-order-products {
    border-top: 1px solid var(--r27-line);
}

.r27-order-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: start;
    padding: 12px 0;
    color: #55524d;
    font-size: .69rem;
    line-height: 1.55;
}

.r27-order-product + .r27-order-product {
    border-top: 1px solid #f0eee9;
}

.r27-order-product strong {
    color: var(--r27-ink);
    font-weight: 500;
}

.r27-user-empty {
    padding: 42px 24px;
    border: 1px dashed #d8d3ca;
    border-radius: var(--r27-radius);
    background: #fff;
    color: var(--r27-muted);
    font-size: .78rem;
    text-align: center;
}

.r27-user-success {
    max-width: 620px;
    margin: 0 auto;
    padding: clamp(34px, 6vw, 60px);
    border: 1px solid var(--r27-line);
    border-radius: var(--r27-radius);
    background: #fff;
    box-shadow: 0 16px 42px rgba(35,34,31,.06);
    text-align: center;
}

.r27-user-success-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #f1ece2;
    color: var(--r27-gold-dark);
    font-size: 1.5rem;
}

.r27-user-success h1 {
    margin: 0 0 12px;
    color: var(--r27-ink);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
}

.r27-user-success p {
    margin: 0 0 25px;
    color: var(--r27-muted);
    font-size: .78rem;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .r27-user-page {
        padding: 32px 0 58px;
    }

    .r27-user-form-grid,
    .r27-user-panels {
        grid-template-columns: 1fr;
    }

    .r27-user-field--full {
        grid-column: auto;
    }

    .r27-user-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .r27-user-actions--end {
        flex-direction: column;
    }

    .r27-user-button {
        width: 100%;
    }

    .r27-order-meta,
    .r27-order-product {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .r27-order-total {
        white-space: normal;
    }
}
