/* webroot/css/storefront.css */

:root {
    --store-bg: #FBF9F5;
    --store-green: #124C24;
    --store-text: #5B5545;
    --store-accent: #E2925E;
}

body {
    background: var(--store-bg);
    color: var(--store-text);
}

.button,
button,
input[type="submit"] {
    background: var(--store-green);
    border-color: var(--store-green);
    color: #fff;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background: #0C3719;
    border-color: #0C3719;
}

.store-toolbar,
.cart-actions,
.checkout-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card,
.cart-row,
.receipt-card,
.checkout-card,
.checkout-section,
.signup-card,
.empty-cart {
    background: #fff;
    border: 1px solid #e8e1d8;
    border-radius: 12px;
    padding: 1.5rem;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.price-tag {
    color: var(--store-green);
    font-weight: 700;
    font-size: 1.25rem;
}

.cart-summary,
.receipt-summary {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
}

.install-box {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #fff6ef;
    border: 1px solid #f1d7c7;
}

.store-search {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.receipt-table,
.cart-table {
    width: 100%;
    margin-bottom: 1.5rem;
}

.receipt-table th,
.receipt-table td,
.cart-table th,
.cart-table td {
    padding: .75rem;
}

.receipt-page {
    width: min(100%, 104rem);
    margin: 3rem auto;
}

.receipt-page .receipt-card {
    padding: clamp(2rem, 5vw, 5rem);
    border-color: #d8e3d5;
    border-radius: 2rem;
    background: linear-gradient(145deg, #ffffff 0%, #f7faf4 100%);
    box-shadow: 0 2rem 5rem rgba(31, 70, 39, 0.1);
}

.receipt-header {
    max-width: 68rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.receipt-confirmation-mark {
    display: grid;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.4rem;
    place-items: center;
    border-radius: 50%;
    background: #365c35;
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.receipt-eyebrow,
.receipt-section-kicker {
    margin: 0 0 0.5rem;
    color: #568b4e;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.receipt-header h1 {
    margin-bottom: 0.8rem;
    color: #173d25;
}

.receipt-lead {
    margin: 0;
    color: #68776b;
    font-size: 1.7rem;
}

.receipt-order-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #d7e3d4;
    border-radius: 1.2rem;
    background: #ffffff;
}

.receipt-order-overview > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.6rem 1.8rem;
}

.receipt-order-overview > div + div {
    border-left: 1px solid #e3e9df;
}

.receipt-order-overview span,
.receipt-customer-grid dt {
    color: #777166;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.receipt-order-overview strong {
    overflow-wrap: anywhere;
    color: #294b35;
    font-size: 1.6rem;
}

.receipt-status {
    width: fit-content;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #eaf0e5;
}

.receipt-section {
    margin-top: 2rem;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    border: 1px solid #e1e7dd;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.88);
}

.receipt-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.receipt-section-heading h2 {
    margin: 0;
    color: #173d25;
    font-size: 2.4rem;
}

.receipt-section-heading > span {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #f1ede4;
    color: #5b5545;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
}

.receipt-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 2.4rem;
    margin: 0;
}

.receipt-customer-grid > div {
    min-width: 0;
}

.receipt-customer-grid dt {
    margin-bottom: 0.35rem;
}

.receipt-customer-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #3f3a2f;
    font-size: 1.5rem;
    font-weight: 600;
}

.receipt-address {
    grid-column: 1 / -1;
}

.receipt-table-wrap {
    overflow-x: auto;
    border: 1px solid #e3e8df;
    border-radius: 1rem;
    background: #ffffff;
}

.receipt-page .receipt-table {
    min-width: 62rem;
    margin: 0;
}

.receipt-page .receipt-table th {
    background: #f2f6ef;
    color: #365c35;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.receipt-page .receipt-table th,
.receipt-page .receipt-table td {
    padding: 1.3rem 1.5rem;
    border-bottom-color: #e3e8df;
}

.receipt-page .receipt-table th:not(:first-child),
.receipt-page .receipt-table td:not(:first-child) {
    text-align: right;
}

.receipt-page .receipt-table tbody tr:last-child td {
    border-bottom: 0;
}

.receipt-page .receipt-summary {
    width: min(100%, 38rem);
    margin: 1.8rem 0 0 auto;
    padding: 0;
    background: transparent;
}

.receipt-page .receipt-summary p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 0;
    padding: 0.9rem 0;
}

.receipt-page .receipt-summary strong {
    color: #294b35;
    font-size: 1.7rem;
}

.receipt-page .receipt-summary .receipt-grand-total {
    margin-top: 0.4rem;
    padding-top: 1.3rem;
    border-top: 2px solid #d5dfd1;
    color: #173d25;
    font-size: 1.8rem;
    font-weight: 700;
}

.receipt-page .receipt-summary .receipt-grand-total strong {
    font-size: 2.2rem;
}

.receipt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2.4rem;
}

.receipt-footer p {
    max-width: 58rem;
    margin: 0;
    color: #68776b;
}

.receipt-continue-button {
    flex: 0 0 auto;
    margin: 0;
    border-radius: 999px;
}

.cart-item-label {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.empty-cart {
    text-align: center;
}

.out-of-stock {
    color: #b91c1c;
    font-weight: 700;
}

.error {
    color: #b91c1c;
    font-weight: 600;
    margin-bottom: .5rem;
}

.checkout-card {
    max-width: 900px;
    margin: 2.5rem auto;
    padding: clamp(1.25rem, 4vw, 3rem);
    background: linear-gradient(145deg, #ffffff 0%, #f4fbf3 100%);
    border: 1px solid #d7e8d5;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(35, 75, 42, .10);
}

.checkout-intro {
    margin-bottom: 2rem;
}

.checkout-eyebrow,
.checkout-step-kicker {
    margin: 0 0 .45rem;
    color: #568b4e;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.checkout-intro h1 {
    margin-bottom: .45rem;
    color: #173d25;
}

.checkout-lead {
    margin: 0;
    color: #68776b;
}

.checkout-progress {
    margin: 2.4rem 0;
}

.checkout-progress-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkout-progress-steps li {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0 0.8rem;
}

.checkout-progress-steps li:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 1.5rem;
    left: calc(50% + 1.5rem);
    width: calc(100% - 3rem);
    height: 2px;
    background: #d9d5cb;
    content: '';
}

.checkout-progress-steps li.is-complete:not(:last-child)::after {
    background: #47704b;
}

.checkout-progress-step {
    display: flex;
    position: relative;
    z-index: 1;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    height: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #858075;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.25;
    text-align: center;
    text-transform: none;
    white-space: normal;
}

.checkout-progress-step:not([aria-disabled="true"]) {
    cursor: pointer;
}

.checkout-progress-step:hover,
.checkout-progress-step:focus {
    border: 0;
    background: transparent;
    color: #858075;
    outline: 0;
}

.checkout-progress-step.is-active:hover,
.checkout-progress-step.is-active:focus,
.checkout-progress-step.is-complete:hover,
.checkout-progress-step.is-complete:focus {
    color: #294b35;
}

.checkout-progress-step:focus-visible .checkout-progress-number {
    outline: 2px solid #365c35;
    outline-offset: 3px;
}

.checkout-progress-number {
    display: grid;
    position: relative;
    z-index: 1;
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
    box-sizing: border-box;
    place-items: center;
    border: 2px solid #c9c4b8;
    border-radius: 50%;
    background: #fffdf9;
    color: #777166;
    font-size: 1.2rem;
    font-weight: 700;
}

.checkout-progress-step.is-active,
.checkout-progress-step.is-complete {
    color: #294b35;
}

.checkout-progress-step.is-complete .checkout-progress-number {
    border-color: #365c35;
    background: #365c35;
    color: #ffffff;
}

.checkout-progress-step.is-active .checkout-progress-number {
    border-color: #365c35;
    background: #fffdf9;
    box-shadow: 0 0 0 5px #eaf0e5;
    color: #365c35;
}

.checkout-progress-step.is-complete .checkout-progress-number::before {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.checkout-progress-step.is-complete .checkout-progress-number {
    font-size: 0;
}

.checkout-progress-step.is-complete .checkout-progress-number::before {
    font-size: .9rem;
}

.checkout-section {
    margin: 0;
    padding: clamp(1.1rem, 3vw, 2rem);
    border-color: #d7e8d5;
    box-shadow: 0 8px 24px rgba(35, 75, 42, .06);
}

.checkout-section h2 {
    margin-top: 0;
    margin-bottom: 0;
    color: #173d25;
}

.checkout-card input[type="email"],
.checkout-card input[type="tel"],
.checkout-card input[type="text"],
.checkout-card select,
.checkout-card textarea {
    border-color: #c9c4b8;
}

.checkout-card input[type="email"]:focus,
.checkout-card input[type="tel"]:focus,
.checkout-card input[type="text"]:focus,
.checkout-card select:focus,
.checkout-card textarea:focus {
    border-color: #365c35;
    box-shadow: 0 0 0 3px rgba(54, 92, 53, 0.12);
    outline: 0;
}

.checkout-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checkout-status {
    padding: .55rem .9rem;
    border-radius: 999px;
    background: #e6f3e4;
    color: #47764a;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
}

.checkout-total-row {
    display: flex-end;
    gap: 1rem;
    padding-top: .5rem;
    border-top: 1px solid #e0e9df;
}

.checkout-total-row p {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-bottom: 0;
}

.checkout-total-row strong {
    color: #173d25;
    font-size: 1.25rem;
}

.checkout-grand-total {
    text-align: right;
}

.checkout-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.checkout-step-actions-end {
    justify-content: flex-end;
}

.checkout-back {
    border: 1px solid #b9cdbb;
    background: transparent;
    color: #315f39;
}

.checkout-back:hover,
.checkout-back:focus-visible {
    border-color: #4f8c52;
    background: #eff8ee;
    color: #173d25;
}

.checkout-note {
    background: #f6f9fb;
    border-left: 4px solid var(--store-green);
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 760px) {
    .receipt-table,
    .cart-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .receipt-page {
        margin: 1.5rem auto;
    }

    .receipt-page .receipt-card {
        padding: 1.6rem;
        border-radius: 1.4rem;
    }

    .receipt-header h1 {
        font-size: 3rem;
    }

    .receipt-order-overview,
    .receipt-customer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .receipt-order-overview > div + div {
        border-top: 1px solid #e3e9df;
        border-left: 0;
    }

    .receipt-address {
        grid-column: auto;
    }

    .receipt-section-heading,
    .receipt-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .receipt-page .receipt-table {
        display: table;
        overflow: visible;
    }

    .receipt-page .receipt-summary {
        width: 100%;
    }

    .receipt-continue-button {
        width: 100%;
        text-align: center;
    }

    .checkout-section {
        padding: 1.15rem;
    }

    .checkout-card {
        margin: 1.25rem auto;
        padding: 1rem;
        border-radius: 12px;
    }

    .checkout-progress-label {
        font-size: 1.05rem;
    }

    .checkout-progress-steps li {
        padding: 0 0.3rem;
    }

    .checkout-section-heading {
        flex-direction: column;
        gap: .75rem;
    }

    .checkout-status {
        white-space: normal;
    }

    .checkout-total-row,
    .checkout-step-actions {
        flex-direction: column;
    }

    .checkout-grand-total {
        text-align: left;
    }

    .checkout-section h2 {
        font-size: 1.4rem;
    }

    .checkout-card .button,
    .checkout-actions .button,
    .cart-actions .button,
    .store-toolbar .button,
    .checkout-card button[type="submit"] {
        width: 100%;
        text-align: center;
    }

    .checkout-step-actions button {
        width: 100%;
    }

    .signup-card {
        margin: 1.5rem auto;
        padding: 1.4rem;
    }

    .signup-card button,
    .signup-card .button {
        width: 100%;
    }
}

.signup-card {
    max-width: 560px;
    width: 100%;
    margin: 3rem auto;
    padding: 2.4rem;
}

.install-box label {
    display: block;
    white-space: normal;
}

.cart-actions .button,
.empty-cart .button {
    text-decoration: none;
}

.account-edit-card {
    max-width: 68rem;
    margin: 2.4rem auto;
    padding: 2.4rem;
    border: 1px solid #e8e1d8;
    border-radius: 12px;
    background: #fffdf9;
}

.account-edit-card input {
    background: #fff;
}

.account-edit-card form {
    margin-bottom: 0;
}

.account-edit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
}

.account-edit-actions button {
    margin: 0;
}

.user-directory {
    margin: 2.4rem auto;
    padding: 2.4rem;
    border: 1px solid #e8e1d8;
    border-radius: 12px;
    background: #fffdf9;
}

.user-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.user-page-header h1,
.user-page-header .button {
    margin: 0;
}

.user-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.user-actions {
    display: flex;
    gap: 0.8rem;
    white-space: nowrap;
}

.user-actions a {
    display: inline-flex;
    min-height: 4.4rem;
    align-items: center;
    color: var(--store-green);
}

.user-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

.user-details dt {
    font-weight: 700;
}

.user-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.account-page {
    width: calc(100% - 12rem);
    max-width: 118rem;
    margin: 3.2rem auto 6rem;
    color: #3f3a2f;
}

.account-details-view-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.account-details-view-grid .account-card {
    height: 100%;
    margin-bottom: 0;
}

.account-details-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem;
    border: 1px solid #d9dfd4;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffdf9 0%, #eef3e9 100%);
}

.account-details-hero > div {
    min-width: 0;
}

.account-details-hero .account-back-link {
    margin-bottom: 1.8rem;
}

.account-details-hero h1 {
    margin-top: 0.5rem;
}

.account-details-hero > div > p:last-child {
    margin-bottom: 0;
    color: #706c60;
}

.account-details-hero .account-button {
    flex: 0 0 auto;
}

.account-detail-card {
    position: relative;
    padding: clamp(2.2rem, 3vw, 3rem);
    border-top: 4px solid #47704b;
    background: linear-gradient(180deg, #fffdf9 0%, #fbfaf5 100%);
}

.account-detail-card .account-details > div {
    padding: 1.2rem 0;
    border-bottom: 1px solid #e5e2d8;
}

.account-detail-card .account-details > div:last-child {
    border-bottom: 0;
}

.account-detail-card .account-details dd {
    color: #294b35;
    font-size: 1.65rem;
}

.account-details-single {
    grid-template-columns: minmax(0, 1fr);
}

.account-heading {
    margin-bottom: 2.4rem;
}

.account-heading .account-eyebrow {
    margin-top: 2rem;
}

.account-heading h1 {
    margin: 1rem 0 1.2rem;
    color: #244733;
    font-size: clamp(3rem, 4vw, 4.2rem);
    line-height: 1.2;
}

.account-heading > p:last-child,
.account-muted {
    color: #706c60;
}

.account-eyebrow {
    margin: 0;
    color: #446647;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

.account-card {
    min-width: 0;
    margin-bottom: 2rem;
    padding: 2.6rem;
    border: 1px solid #e2dfd5;
    border-radius: 12px;
    background: #fffdf9;
    box-shadow: 0 0.4rem 1.6rem rgba(38, 55, 40, 0.035);
    overflow-wrap: anywhere;
}

.account-orders-card,
.account-items-card {
    border-color: #d8e3d5;
    background: linear-gradient(145deg, #fffdf9 0%, #f5f8f1 100%);
    box-shadow: 0 1.2rem 3rem rgba(31, 70, 39, 0.07);
}

.account-orders-card {
    padding: clamp(1.2rem, 3vw, 2.6rem);
}

.account-orders-card .account-table-wrap {
    overflow: visible;
}

.account-orders-card .account-table {
    border-collapse: separate;
    border-spacing: 0 0.8rem;
}

.account-orders-card .account-table thead th {
    padding-top: 0;
    padding-bottom: 0.4rem;
    color: #647466;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-orders-card .account-table tbody tr {
    background: #ffffff;
    box-shadow: 0 0.4rem 1.2rem rgba(38, 55, 40, 0.05);
}

.account-orders-card .account-table tbody td {
    border-top: 1px solid #e2e9df;
    border-bottom: 1px solid #e2e9df;
}

.account-orders-card .account-table tbody td:first-child {
    border-left: 1px solid #e2e9df;
    border-radius: 0.9rem 0 0 0.9rem;
}

.account-orders-card .account-table tbody td:last-child {
    border-right: 1px solid #e2e9df;
    border-radius: 0 0.9rem 0.9rem 0;
}

.account-order-reference,
.account-order-caption {
    display: block;
}

.account-order-reference {
    color: #214d2d;
    font-size: 1.65rem;
}

.account-order-caption {
    margin-top: 0.3rem;
    color: #7a8378;
    font-size: 1.2rem;
}

.account-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.account-section-heading h2 {
    margin-bottom: 0;
}

.account-card-kicker {
    margin: 0 0 0.45rem;
    color: #568b4e;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-item-count {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #eaf0e5;
    color: #365c35;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
}

.account-items-card .account-table-wrap {
    border: 1px solid #e1e8de;
    border-radius: 0.9rem;
    background: #ffffff;
}

.account-items-card .account-table {
    min-width: 58rem;
}

.account-items-card .account-table th {
    background: #f1f6ee;
    color: #647466;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.account-items-card .account-table th,
.account-items-card .account-table td {
    padding: 1.35rem 1.5rem;
}

.account-items-card .account-table th:not(:first-child),
.account-items-card .account-table td:not(:first-child) {
    text-align: right;
}

.account-order-total {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    width: min(100%, 32rem);
    margin: 1.6rem 0 0 auto;
    padding-top: 1.4rem;
    border-top: 2px solid #d8e3d5;
    color: #244733;
    font-size: 1.55rem;
}

.account-order-total strong {
    font-size: 2rem;
}

.account-info-card {
    background: linear-gradient(180deg, #fffdf9 0%, #f7f8f2 100%);
}

.account-info-card h2 {
    margin-bottom: 1.6rem;
}

.account-info-card .account-amount {
    margin-bottom: 1.5rem;
    color: #214d2d;
    font-size: 3.2rem;
}

.account-detail-line {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0;
    padding: 1rem 0;
    border-top: 1px solid #e3e8df;
}

.account-detail-line span {
    color: #777166;
}

.account-detail-line strong {
    color: #294b35;
    text-align: right;
}

.account-address {
    margin-bottom: 1.5rem;
    color: #3f3a2f;
    font-size: 1.6rem;
    font-weight: 600;
}

.account-card h2 {
    margin: 0 0 2rem;
    color: #294b35;
    font-size: 2.1rem;
    font-weight: 600;
}

.account-card p:last-child {
    margin-bottom: 0;
}

.service-request-page {
    max-width: 104rem;
}

.service-request-card {
    padding: clamp(2rem, 4vw, 3.6rem);
}

.service-request-form {
    margin: 0;
}

.service-request-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.service-request-form .input {
    margin-bottom: 2rem;
}

.service-request-form label {
    display: block;
    margin-bottom: 0.7rem;
    color: #294b35;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-request-form input,
.service-request-form select,
.service-request-form textarea {
    width: 100%;
    margin: 0;
    border: 1px solid #cfcabf;
    border-radius: 8px;
    background: #fff;
    color: #3f3a2f;
}

.service-request-form input,
.service-request-form select {
    min-height: 4.8rem;
}

.service-product-origin fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.service-product-origin legend {
    width: 100%;
    margin-bottom: 0.7rem;
    color: #294b35;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-product-origin fieldset label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
}

.service-product-origin input[type="radio"] {
    width: auto;
    min-height: 0;
    margin: 0;
    accent-color: #294b35;
}

.service-request-form textarea {
    min-height: 15rem;
    padding: 1.2rem;
    resize: vertical;
}

.service-request-form input:focus,
.service-request-form select:focus,
.service-request-form textarea:focus {
    border-color: #446647;
    box-shadow: 0 0 0 3px rgba(68, 102, 71, 0.12);
}

.service-request-contact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin: 0.4rem 0 1rem;
    padding: 1.8rem;
    border-radius: 10px;
    background: #f5f2ea;
}

.service-request-contact span,
.service-request-contact strong {
    display: block;
}

.service-request-contact span {
    margin-bottom: 0.5rem;
    color: #777166;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.service-request-contact strong {
    color: #294b35;
    font-size: 1.45rem;
    overflow-wrap: anywhere;
}

.service-request-note {
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.account-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem 3rem;
    margin: 0;
}

.account-details dt {
    margin-bottom: 0.6rem;
    color: #777166;
    font-size: 1.3rem;
    font-weight: 500;
}

.account-details dd {
    margin: 0;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.account-actions,
.account-order-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: last baseline; 
    gap: 1.2rem;
}

.account-button {
    display: inline-flex;
    min-height: 4.6rem;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2rem;
    border: 1px solid #124c24;
    border-radius: 6px;
    background: #124c24;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    text-align: center;
}

.account-button:hover,
.account-button:focus-visible {
    background: #0c3719;
    color: #fff;
}

.account-button-secondary {
    background: transparent;
    color: #124c24;
}

.account-back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #315d3c;
    font-size: 1.4rem;
    text-decoration: underline;
}

.account-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.account-table {
    width: 100%;
    margin: 0;
    font-size: 1.65rem;
}

.account-table th,
.account-table td {
    padding: 1.4rem 1.2rem;
    vertical-align: middle;
}

.account-table th {
    color: #716b5f;
    font-size: 1.4rem;
    font-weight: 600;
}

.account-table a {
    color: #124c24;
    font-weight: 600;
    text-decoration: underline;
}

.account-table tbody tr:last-child td {
    border-bottom: 0;
}

.account-order-row {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    transform-origin: center;
}

.account-order-row:hover {
    position: relative;
    z-index: 2;
    transform: scale(1.005);
    box-shadow: 0 4px 12px rgba(24, 55, 40, 0.12);
}

.account-order-row:focus-visible {
    outline: 0.2rem solid #315d3c;
    outline-offset: -0.2rem;
}

.account-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: #eaf0e5;
    color: #365c35;
    font-size: 1.4rem;
    font-weight: 600;
    white-space: nowrap;
}

.account-status-pending {
    background: #fff1d8;
    color: #8a5a16;
}

.account-status-cancelled {
    background: #f9e5e3;
    color: #a34235;
}

.account-status-completed,
.account-status-delivered {
    background: #e3f1e1;
    color: #315f39;
}

.account-order-meta {
    color: #777166;
    font-size: 1.65rem;
}

.account-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.account-amount {
    margin: 0 0 1rem;
    color: #124c24;
    font-size: 2.8rem;
    font-weight: 600;
}

.service-estimate-breakdown {
    display: grid;
    gap: 0.8rem;
    margin: 1.4rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    background: #f5f2ea;
}

.service-estimate-breakdown > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.service-estimate-breakdown > div:last-child {
    padding-top: 0.8rem;
    border-top: 1px solid #d8d3c7;
    color: #294b35;
}

.account-empty-state {
    padding: 2rem 0;
    text-align: center;
}

.store-empty-state {
    width: min(100% - 3rem, 72rem);
    margin: 2rem auto;
    padding: clamp(3rem, 6vw, 5.5rem) 2rem;
    border: 1px solid #d9dfd4;
    border-radius: 18px;
    background:
        radial-gradient(circle at 85% 12%, rgba(181, 198, 166, .3) 0, rgba(181, 198, 166, 0) 28%),
        linear-gradient(135deg, #fffdf9 0%, #eef3e9 100%);
    box-shadow: 0 1.2rem 3.6rem rgba(38, 55, 40, .08);
    text-align: center;
}

.store-empty-state-kicker {
    display: block;
    margin-bottom: .8rem;
    color: #6f795f;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .14rem;
    text-transform: uppercase;
}

.store-empty-state h2 {
    margin-bottom: 1rem;
    color: #244733;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 600;
}

.store-empty-state p {
    max-width: 48rem;
    margin: 0 auto 2rem;
    color: #706c60;
}

.store-empty-state .account-button {
    width: auto;
    min-width: 20rem;
}

.account-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.account-hub-page {
    max-width: 124rem;
}

.account-hub-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2.4rem;
    padding: clamp(2.6rem, 5vw, 4.8rem);
    border: 1px solid #d9dfd4;
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 18%, rgba(181, 198, 166, 0.34) 0, rgba(181, 198, 166, 0) 24%),
        linear-gradient(135deg, #fffdf9 0%, #eef3e9 100%);
    box-shadow: 0 1.2rem 3.6rem rgba(38, 55, 40, 0.08);
}

.account-hub-hero h1 {
    margin: 0.7rem 0 1rem;
    color: #244733;
    font-size: clamp(3.2rem, 5vw, 5rem);
    line-height: 1.08;
}

.account-hub-hero > div:first-child > p:last-child {
    max-width: 62rem;
    margin: 0;
    color: #625e54;
    font-size: 1.55rem;
    line-height: 1.7;
}

.account-hub-identity {
    display: flex;
    min-width: 28rem;
    align-items: center;
    gap: 1.4rem;
    padding: 1.6rem;
    border: 1px solid rgba(54, 92, 53, 0.18);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.78);
}

.account-hub-identity > span {
    display: grid;
    width: 5.2rem;
    height: 5.2rem;
    flex: 0 0 5.2rem;
    place-items: center;
    border-radius: 50%;
    background: #294b35;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.account-hub-identity small,
.account-hub-identity strong,
.account-hub-identity p {
    display: block;
}

.account-hub-identity small {
    color: #777166;
    font-size: 1.15rem;
    text-transform: uppercase;
}

.account-hub-identity strong {
    margin: 0.2rem 0;
    color: #294b35;
}

.account-hub-identity p {
    margin: 0;
    color: #706c60;
    font-size: 1.25rem;
    overflow-wrap: anywhere;
}

.account-hub-card {
    position: relative;
    display: flex;
    min-height: 25rem;
    flex-direction: column;
    padding-top: 3.2rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.account-hub-card-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.account-hub-card-link:visited {
    color: inherit;
}

.account-hub-card-link:focus-visible {
    border-color: #244733;
    outline: 3px solid rgba(36, 71, 51, 0.3);
    outline-offset: 3px;
    transform: translateY(-0.4rem);
    box-shadow: 0 1.4rem 3rem rgba(38, 55, 40, 0.1);
}

.account-hub-card:hover {
    border-color: #244733;
    transform: translateY(-0.4rem);
    box-shadow: 0 1.4rem 3rem rgba(38, 55, 40, 0.1);
}

.account-hub-card-mark {
    position: absolute;
    top: 1.7rem;
    right: 1.6rem;
    color: #dfe8da;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.09rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.account-hub-card h2 {
    position: relative;
    max-width: 80%;
}


.account-hub-card p:not(.account-card-kicker) {
    color: #706c60;
    line-height: 1.7;
}

.account-card-kicker {
    margin: 0 0 1.2rem;
    color: #446647;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.account-text-link {
    display: inline-flex;
    margin-top: auto;
    color: #124c24;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

.account-hub-card .account-text-link {
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.account-hub-card .account-text-link::after {
    content: '→';
    transition: transform 0.18s ease;
}

.account-hub-card:hover .account-text-link::after {
    transform: translateX(0.35rem);
}

.account-hub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.6rem;
    margin-top: auto;
}

.account-hub-links .account-text-link {
    margin-top: 0;
}

.service-history-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.service-history-heading > div {
    min-width: 0;
}

.service-history-grid,
.service-quotation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.service-history-card,
.service-quotation-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

.service-history-card-heading,
.service-quotation-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.6rem;
}

.service-history-card-heading h2,
.service-quotation-heading h2 {
    margin-bottom: 1rem;
}

.service-history-address {
    margin-bottom: 0.6rem;
    color: #3f3a2f;
    font-weight: 600;
}

.service-history-quotes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.6rem 0 2rem;
}

.service-history-quotes > div {
    padding: 1.2rem;
    border-radius: 8px;
    background: #f5f2ea;
}

.service-history-quotes span,
.service-history-quotes strong,
.service-history-quotes small {
    display: block;
}

.service-history-quotes span,
.service-history-quotes small {
    color: #777166;
    font-size: 1.2rem;
}

.service-history-quotes strong {
    margin: 0.35rem 0;
    color: #124c24;
    font-size: 1.7rem;
}

.service-history-card > .account-text-link {
    margin-top: auto;
}

.service-progress {
    margin-bottom: 2rem;
}

.service-progress-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.6rem;
}

.service-progress-heading h2 {
    margin-bottom: 0;
}

.service-progress-heading > strong {
    color: #365c35;
    font-size: 1.35rem;
}

.service-progress-steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 2.4rem 0;
    padding: 0;
    list-style: none;
}

.service-progress-steps li {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    padding: 0 0.8rem;
    color: #858075;
    text-align: center;
}

.service-progress-steps li:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 1.5rem;
    left: calc(50% + 1.5rem);
    width: calc(100% - 3rem);
    height: 2px;
    background: #d9d5cb;
    content: '';
}

.service-progress-steps li.is-complete:not(:last-child)::after {
    background: #47704b;
}

.service-progress-dot {
    position: relative;
    z-index: 1;
    display: grid;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.9rem;
    place-items: center;
    border: 2px solid #c9c4b8;
    border-radius: 50%;
    background: #fffdf9;
    color: #777166;
    font-size: 1.2rem;
    font-weight: 700;
}

.service-progress-steps li.is-complete .service-progress-dot {
    border-color: #365c35;
    background: #365c35;
    color: #ffffff;
}

.service-progress-steps li.is-current .service-progress-dot {
    border-color: #365c35;
    box-shadow: 0 0 0 5px #eaf0e5;
    color: #365c35;
}

.service-progress-label {
    color: #575247;
    font-size: 1.3rem;
    font-weight: 700;
}

.service-progress-steps li.is-complete .service-progress-label,
.service-progress-steps li.is-current .service-progress-label {
    color: #294b35;
}

.service-progress-steps small {
    margin-top: 0.35rem;
    font-size: 1.1rem;
    line-height: 1.35;
}

.service-next-step {
    padding: 1.4rem 1.6rem;
    border-left: 4px solid #47704b;
    border-radius: 8px;
    background: #f5f2ea;
}

.service-next-step strong {
    color: #294b35;
}

.service-next-step p {
    margin: 0.45rem 0 0;
}

.service-progress-compact {
    margin: 1.6rem 0 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid #e2dfd5;
}

.service-progress-compact .service-progress-steps {
    margin: 1.4rem 0 0;
}

.service-progress-compact .service-progress-label {
    font-size: 1rem;
}

.service-detail-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.service-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(24rem, 0.7fr);
    gap: 2rem;
    margin-bottom: 2rem;
    padding: clamp(2.6rem, 5vw, 4.6rem);
    border: 1px solid #d9dfd4;
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 12%, rgba(181, 198, 166, 0.38) 0, rgba(181, 198, 166, 0) 26%),
        linear-gradient(135deg, #fffdf9 0%, #eef3e9 100%);
    box-shadow: 0 1.2rem 3.6rem rgba(38, 55, 40, 0.08);
}

.service-detail-hero-main h1 {
    margin: 0.7rem 0 1rem;
    color: #244733;
    font-size: clamp(3.8rem, 7vw, 6.4rem);
    line-height: 1;
    letter-spacing: -0.12rem;
}

.service-detail-hero-copy {
    max-width: 62rem;
    color: #625e54;
    font-size: 1.55rem;
    line-height: 1.7;
}

.service-detail-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.4rem;
    margin-top: 2rem;
}

.service-detail-hero-meta span,
.service-detail-hero-meta small {
    display: block;
}

.service-detail-hero-meta span {
    color: #294b35;
    font-weight: 600;
}

.service-detail-hero-meta small {
    margin-bottom: 0.25rem;
    color: #777166;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.service-detail-status-panel {
    display: flex;
    min-height: 18rem;
    justify-content: center;
    flex-direction: column;
    padding: 2.4rem;
    border-radius: 14px;
    background: #294b35;
    color: #fff;
}

.service-detail-status-panel > span {
    margin-bottom: 1rem;
    color: #cbd9c5;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.service-detail-status-panel strong {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.25;
}

.service-detail-status-panel small {
    margin-top: 1.4rem;
    color: #dce5d8;
}

.service-detail-overview {
    padding: 0;
    overflow: hidden;
}

.service-detail-disclosure-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.2rem 2.6rem;
    cursor: pointer;
    list-style: none;
}

.service-detail-disclosure-summary::-webkit-details-marker {
    display: none;
}

.service-detail-disclosure-summary::marker {
    content: '';
}

.service-detail-disclosure-summary h2,
.service-detail-disclosure-summary p {
    margin-bottom: 0;
}

.service-detail-disclosure-summary:focus-visible {
    outline: 3px solid rgba(71, 112, 75, 0.35);
    outline-offset: -3px;
}

.service-detail-disclosure-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    background: #eaf0e5;
    color: #365c35;
    font-weight: 700;
    white-space: nowrap;
}

.service-detail-disclosure-hide {
    display: none;
}

.service-detail-disclosure-chevron {
    width: 0.8rem;
    height: 0.8rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.2rem) rotate(45deg);
    transition: transform 0.18s ease;
}

.service-detail-overview[open] .service-detail-disclosure-summary {
    border-bottom: 1px solid #e2dfd5;
}

.service-detail-overview[open] .service-detail-disclosure-view {
    display: none;
}

.service-detail-overview[open] .service-detail-disclosure-hide {
    display: inline;
}

.service-detail-overview[open] .service-detail-disclosure-chevron {
    transform: translateY(0.2rem) rotate(225deg);
}

.service-detail-overview .service-detail-summary {
    padding: 2.6rem;
}

.service-detail-fact {
    padding: 1.5rem;
    border: 1px solid #e5e2d8;
    border-radius: 10px;
    background: #fbfaf5;
}

.service-detail-summary span {
    display: block;
    margin-bottom: 0.6rem;
    color: #777166;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-detail-summary strong {
    color: #294b35;
    font-size: 1.65rem;
}

.service-detail-description {
    grid-column: 1 / -1;
    padding-top: 1.8rem;
    border-top: 1px solid #e2dfd5;
    padding: 2rem;
    border-radius: 10px;
    background: #f5f2ea;
}

.service-detail-legacy-fact {
    grid-column: 1 / -1;
}

.service-detail-description p {
    margin: 0;
}

.service-quotation-card .account-amount {
    margin-bottom: 0.5rem;
}

.service-quotation-card {
    border-top: 4px solid #47704b;
    box-shadow: 0 0.8rem 2.4rem rgba(38, 55, 40, 0.06);
}

.service-activity-card {
    border-top: 4px solid #b3c5a8;
}

.service-invoice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: auto 0 1.8rem;
    padding: 1.2rem 1.4rem;
    border-radius: 8px;
    background: #f5f2ea;
}

.service-invoice-row strong {
    color: #365c35;
}

.service-invoice-row span > strong {
    display: block;
    margin-bottom: 0.25rem;
}

.service-quotation-actions form,
.service-quotation-action {
    margin: 0;
}

.service-quotation-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.6rem;
    width: 100%;
}

.service-quotation-actions form,
.service-quotation-action,
.service-quotation-actions .account-button {
    width: 100%;
    min-width: 0;
}

.service-quotation-action {
    flex: 1 1 0;
    max-width: 24rem;
    min-width: 0;
}

.service-paid-message {
    margin: 0;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    background: #eaf0e5;
    color: #365c35;
    font-weight: 700;
    text-align: center;
}

.service-awaiting-invoice {
    margin: auto 0 0;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    background: #f5f2ea;
    color: #575247;
    font-weight: 600;
}

.service-awaiting-card {
    text-align: center;
}

.service-activity-card {
    margin-top: 2rem;
}

.service-activity-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-activity-list li {
    position: relative;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 1.2rem;
    padding-bottom: 1.8rem;
}

.service-activity-list li:not(:last-child)::before {
    position: absolute;
    top: 1rem;
    bottom: -0.1rem;
    left: 0.65rem;
    width: 2px;
    background: #d9d5cb;
    content: '';
}

.service-activity-marker {
    position: relative;
    z-index: 1;
    width: 1.4rem;
    height: 1.4rem;
    margin-top: 0.35rem;
    border: 3px solid #eaf0e5;
    border-radius: 50%;
    background: #365c35;
}

.service-activity-list strong {
    color: #294b35;
}

.service-activity-list p {
    margin: 0.25rem 0 0;
    color: #706c60;
}

.service-payment-layout {
    display: grid;
    grid-template-columns: minmax(26rem, 0.75fr) minmax(0, 1.25fr);
    gap: 2rem;
    align-items: start;
}

.service-payment-summary .account-amount {
    font-size: clamp(3.2rem, 5vw, 4.6rem);
}

.service-payment-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

.service-payment-field {
    min-width: 0;
}

.service-payment-form .error {
    margin-top: -0.9rem;
    margin-bottom: 1.4rem;
    font-size: 1.25rem;
}

.account-profile-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 0.4rem;
    border: 0;
    background: #294b35;
    color: #f8f5ed;
}

.account-profile-preview h2,
.account-profile-preview .account-card-kicker {
    color: #fff;
}

.account-profile-preview .account-button-secondary {
    border-color: #fff;
    color: #fff;
}

.account-profile-preview .account-button-secondary:hover,
.account-profile-preview .account-button-secondary:focus-visible {
    background: #fff;
    color: #294b35;
}

.account-profile-preview h2,
.account-profile-preview p {
    margin-bottom: 0.6rem;
}

.account-details-form input,
.account-details-form select {
    background: #fff;
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem 2.4rem;
}

.account-details-form .input {
    margin-bottom: 0;
}

.account-details-form .error-message {
    color: #a83232;
    font-size: 1.3rem;
    font-weight: 600;
}

.account-profile-field .error-message {
    margin: 0.6rem 0 0;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.main:has(.wishlist-page) .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.wishlist-page {
    width: 100%;
    max-width: none;
}

.wishlist-page .account-heading,
.wishlist-page > .wishlist-grid,
.wishlist-page > .account-card {
    width: calc(100% - 12rem);
    margin-right: auto;
    margin-left: auto;
}

.wishlist-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2dfd5;
    border-radius: 12px;
    background: #fffdf9;
}

.wishlist-card-image,
.wishlist-card-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.wishlist-card-image img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.wishlist-card-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 2.2rem;
}

.wishlist-card-content h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.wishlist-card-content h2 a {
    color: #294b35;
}

.wishlist-card-content > p:not(.account-card-kicker):not(.account-amount) {
    color: #706c60;
    font-size: 1.4rem;
    line-height: 1.6;
}

.wishlist-card-content .account-button {
    flex: 1;
    min-width: 0;
    padding-right: 1rem;
    padding-left: 1rem;
}

.wishlist-card-content .account-actions {
    margin-top: auto;
}

.wishlist-card-content form {
    margin: 0;
}

.account-summary-grid .account-card p {
    font-size: 1.55rem;
}

@media (max-width: 1000px) {
    .account-hub-hero,
    .service-detail-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-hub-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .account-hub-identity {
        min-width: 0;
    }

    .account-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .account-page {
        width: calc(100% - 3.2rem);
        margin-top: 2.4rem;
    }

    .account-card {
        padding: 1.8rem;
    }

    .account-hub-hero,
    .service-detail-hero {
        padding: 2.2rem;
        border-radius: 14px;
    }

    .service-detail-status-panel {
        min-height: 0;
        padding: 2rem;
    }

    .service-detail-disclosure-summary,
    .service-detail-overview .service-detail-summary {
        padding-right: 1.8rem;
        padding-left: 1.8rem;
    }

    .service-detail-disclosure-summary {
        align-items: flex-start;
    }

    .service-detail-disclosure-toggle {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }

    .account-details-hero {
        display: block;
        padding: 2.2rem;
    }

    .account-details-hero .account-button {
        width: 100%;
        margin-top: 1.4rem;
    }

    .wishlist-page .account-heading,
    .wishlist-page > .wishlist-grid,
    .wishlist-page > .account-card {
        width: calc(100% - 3.2rem);
    }

    .account-details,
    .account-details-view-grid,
    .account-summary-grid,
    .account-hub-grid,
    .account-form-grid,
    .service-request-fields,
    .service-request-contact,
    .wishlist-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-request-form .account-button {
        width: 100%;
    }

    .account-profile-preview {
        display: block;
    }

    .service-history-heading {
        display: block;
    }

    .service-history-heading .account-button {
        width: 100%;
        margin-top: 1rem;
    }

    .service-history-grid,
    .service-quotation-grid,
    .service-detail-summary,
    .service-payment-layout,
    .service-payment-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-detail-description,
    .service-detail-legacy-fact {
        grid-column: auto;
    }

    .service-progress-steps li {
        padding: 0 0.3rem;
    }

    .service-progress {
        overflow-x: auto;
    }

    .service-progress-heading,
    .service-next-step {
        position: sticky;
        left: 0;
    }

    .service-progress-steps {
        min-width: 58rem;
    }

    .service-progress-label {
        font-size: 1.05rem;
    }

    .service-progress-steps small {
        display: none;
    }

    .service-quotation-actions,
    .service-quotation-actions form,
    .service-quotation-actions .account-button,
    .service-payment-form .account-button {
        width: 100%;
    }

    .account-profile-preview .account-button {
        width: 100%;
        margin-top: 1.2rem;
    }

    .wishlist-card-image img {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .wishlist-card-content .account-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .wishlist-card-content .account-button,
    .wishlist-card-content form,
    .wishlist-card-content form .account-button {
        width: 100%;
    }

    .account-table {
        min-width: 66rem;
        font-size: 1.5rem;
    }

    .account-orders-card .account-table {
        display: block;
        min-width: 0;
        border-spacing: 0;
    }

    .account-orders-card .account-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .account-orders-card .account-table tbody,
    .account-orders-card .account-table tr,
    .account-orders-card .account-table td {
        display: block;
    }

    .account-orders-card .account-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e2e9df;
        border-radius: 0.9rem;
    }

    .account-orders-card .account-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        min-height: 4.8rem;
        padding: 1rem 1.2rem;
        border: 0;
        border-bottom: 1px solid #edf0e9;
        border-radius: 0;
    }

    .account-orders-card .account-table tbody td::before {
        color: #777166;
        content: attr(data-label);
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .account-orders-card .account-table tbody td:first-child {
        display: block;
        padding: 1.3rem 1.2rem;
        border-left: 0;
        border-radius: 0.9rem 0.9rem 0 0;
    }

    .account-orders-card .account-table tbody td:first-child::before {
        display: none;
    }

    .account-orders-card .account-table tbody td:last-child {
        border-right: 0;
        border-bottom: 0;
        border-radius: 0 0 0.9rem 0.9rem;
    }

    .account-section-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 0.8rem;
    }

    .account-item-count {
        align-self: flex-start;
    }

    .account-order-total {
        width: 100%;
    }

    .account-detail-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.3rem;
    }

    .account-detail-line strong {
        text-align: left;
    }

    .account-summary-grid {
        gap: 0;
    }

    .account-actions .account-button,
    .account-empty-state .account-button {
        width: 100%;
    }

    .account-edit-card {
        padding: 1.6rem;
    }

    .user-directory {
        padding: 1.6rem;
    }

    .user-page-header .button {
        width: 100%;
        height: auto;
        padding: 1.2rem;
        line-height: 1.4;
        white-space: normal;
    }

    .user-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-edit-actions button {
        width: 100%;
    }
}
