.abrr-shell {
    --abrr-ink: #171717;
    --abrr-muted: #626262;
    --abrr-line: #dedede;
    --abrr-soft: #f7f8fa;
    --abrr-info: #eef5ff;
    --abrr-danger: #9f1d20;
    width: 100%;
    max-width: 1040px;
    margin-inline: auto;
    padding: clamp(12px, 2.5vw, 26px) clamp(12px, 3vw, 24px) 48px;
    color: var(--abrr-ink);
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.abrr-shell,
.abrr-shell * {
    box-sizing: border-box;
}

.abrr-shell :where(img, svg, video) {
    max-width: 100%;
}

.abrr-shell :where(input, select, textarea, button) {
    max-width: 100%;
    font: inherit;
}

.abrr-shell :where(h2, h3, p, dl, ol, ul) {
    min-width: 0;
}

.abrr-shell h2,
.abrr-shell h3 {
    margin-top: 0;
    color: var(--abrr-ink);
    line-height: 1.2;
}

.abrr-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 22px;
    padding: 5px;
    border-radius: 14px;
    background: #f1f2f4;
}

.abrr-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #333 !important;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
}

.abrr-tab.is-active {
    background: #fff;
    color: #111 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.abrr-hero {
    padding: clamp(16px, 3vw, 26px) 4px 18px;
}

.abrr-hero h2 {
    margin-bottom: 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.abrr-hero > p {
    max-width: 830px;
    margin-top: 0;
    color: #353535;
    font-size: clamp(16px, 1.7vw, 17px);
    line-height: 1.65;
}

.abrr-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #555;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.abrr-card {
    width: 100%;
    min-width: 0;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--abrr-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 30px rgba(0, 0, 0, 0.045);
}

.abrr-empty-state {
    text-align: left;
}

.abrr-empty-state p {
    max-width: 760px;
}

.abrr-alert {
    width: 100%;
    margin: 14px 0;
    padding: 13px 15px;
    border-radius: 10px;
    line-height: 1.5;
}

.abrr-alert--info {
    border: 1px solid #cfe0f7;
    background: var(--abrr-info);
}

.abrr-alert--neutral {
    border: 1px solid #e3e3e3;
    background: #f6f6f6;
}

.abrr-alert--error {
    border: 1px solid #f0b9b9;
    background: #fff0f0;
    color: #7f1417;
}

.abrr-grid {
    display: grid;
    min-width: 0;
    gap: 16px;
}

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

.abrr-field {
    display: block;
    min-width: 0;
    margin: 0 0 16px;
}

.abrr-field > span {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.abrr-field small {
    color: var(--abrr-muted);
    font-weight: 400;
}

.abrr-field input[type="text"],
.abrr-field input[type="email"],
.abrr-field input[type="number"],
.abrr-field select,
.abrr-field textarea,
.abrr-request-form > section select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #bfc3c8;
    border-radius: 9px;
    background: #fff;
    color: #171717;
    line-height: 1.35;
}

.abrr-field textarea {
    min-height: 120px;
    resize: vertical;
}

.abrr-field input:focus-visible,
.abrr-field select:focus-visible,
.abrr-field textarea:focus-visible,
.abrr-request-form select:focus-visible,
.abrr-button:focus-visible,
.abrr-tab:focus-visible,
.abrr-choice:focus-within,
.abrr-file-button:focus-within {
    outline: 2px solid #222;
    outline-offset: 2px;
}

.abrr-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid #171717;
    border-radius: 9px;
    background: #fff;
    color: #171717 !important;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.abrr-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.abrr-button--primary {
    background: #171717;
    color: #fff !important;
}

.abrr-button--danger {
    border-color: var(--abrr-danger);
    background: var(--abrr-danger);
    color: #fff !important;
}

.abrr-button--ghost {
    margin-left: 8px;
    background: #fff;
}

.abrr-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
    margin-bottom: 22px;
    padding: 4px 0 26px;
    border-bottom: 1px solid #ebebeb;
}

.abrr-step:last-of-type {
    border-bottom: 0;
}

.abrr-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #171717;
    color: #fff;
    font-weight: 800;
}

.abrr-step-content {
    min-width: 0;
}

.abrr-step-content h3 {
    margin: 5px 0 16px;
    font-size: 20px;
}

.abrr-order-summary {
    min-width: 0;
    margin-top: 12px;
}

.abrr-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.abrr-order-meta span {
    min-width: 0;
    padding: 6px 9px;
    border-radius: 8px;
    background: #f3f4f5;
    font-size: 13px;
}

.abrr-deadline-note {
    margin: 10px 0 0;
    color: #575757;
    font-size: 13px;
}

.abrr-choice-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.abrr-choice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #d6d6d6;
    border-radius: 11px;
    cursor: pointer;
}

.abrr-choice:has(input:checked) {
    border-color: #171717;
    box-shadow: 0 0 0 1px #171717;
}

.abrr-choice input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.abrr-choice span {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.abrr-choice small {
    color: var(--abrr-muted);
    line-height: 1.35;
}

.abrr-choice--stacked {
    margin-bottom: 10px;
}

.abrr-items {
    display: grid;
    min-width: 0;
    gap: 10px;
    margin-top: 12px;
}

.abrr-item-card {
    display: grid;
    grid-template-columns: 26px 64px minmax(0, 1fr) 105px;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #dedede;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}

.abrr-item-card:has(input[type="checkbox"]:checked) {
    border-color: #171717;
    background: #fbfbfb;
}

.abrr-item-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.abrr-item-check input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.abrr-item-card img {
    width: 64px;
    height: 64px;
    aspect-ratio: 1;
    border-radius: 8px;
    background: #f3f3f3;
    object-fit: cover;
}

.abrr-item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.abrr-item-main strong {
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.abrr-item-main small {
    color: var(--abrr-muted);
}

.abrr-item-qty {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    color: var(--abrr-muted);
    font-size: 12px;
}

.abrr-item-qty input {
    width: 100%;
    min-height: 40px;
    padding: 7px;
    border: 1px solid #bbb;
    border-radius: 8px;
    background: #fff;
}

.abrr-items.is-scope-whole .abrr-item-card {
    opacity: 0.88;
    cursor: default;
}

.abrr-contact-summary {
    min-width: 0;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 11px;
    background: var(--abrr-soft);
}

.abrr-contact-summary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.abrr-contact-summary dl > div {
    min-width: 0;
}

.abrr-contact-summary dt {
    color: var(--abrr-muted);
    font-size: 12px;
    font-weight: 700;
}

.abrr-contact-summary dd {
    margin: 3px 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.abrr-statement {
    margin: 0 0 18px;
    padding: 16px;
    border-left: 4px solid #171717;
    background: #f7f7f7;
}

.abrr-statement p:last-child {
    margin-bottom: 0;
}

.abrr-file-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.abrr-file-picker input[type="file"] {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.abrr-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #171717;
    border-radius: 9px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.abrr-file-picker span {
    min-width: 0;
    color: #444;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.abrr-review-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
}

.abrr-review-list > div {
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.abrr-review-list dt {
    color: var(--abrr-muted);
    font-size: 12px;
    font-weight: 700;
}

.abrr-review-list dd {
    margin: 3px 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.abrr-review-items {
    padding-left: 20px;
}

.abrr-confirm-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.abrr-confirm-form .abrr-button--ghost {
    margin: 0;
}

.abrr-success {
    padding-top: 42px;
    padding-bottom: 42px;
    text-align: center;
}

.abrr-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e4f6e9;
    color: #176b2d;
    font-size: 34px;
    font-weight: 900;
}

.abrr-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.abrr-timeline li {
    position: relative;
    padding: 0 0 20px 26px;
    border-left: 2px solid #d8d8d8;
}

.abrr-timeline li::before {
    position: absolute;
    top: 2px;
    left: -7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #171717;
    content: "";
}

.abrr-timeline time {
    display: block;
    margin-top: 3px;
    color: var(--abrr-muted);
    font-size: 12px;
}

.abrr-timeline p {
    margin: 7px 0 0;
}

.abrr-account-list {
    width: 100%;
    margin-top: 30px;
}

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

.abrr-table-wrap table {
    width: 100%;
}

.abrr-shell .woocommerce-error,
.abrr-shell .woocommerce-message,
.abrr-shell .woocommerce-info {
    margin-bottom: 18px !important;
}

@media (max-width: 760px) {
    .abrr-grid--2,
    .abrr-choice-row,
    .abrr-contact-summary dl,
    .abrr-review-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .abrr-step {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }

    .abrr-step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .abrr-item-card {
        grid-template-columns: 24px 52px minmax(0, 1fr);
        align-items: start;
    }

    .abrr-item-card img {
        width: 52px;
        height: 52px;
    }

    .abrr-item-qty {
        grid-column: 2 / 4;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 100px;
        align-items: center;
    }

    .abrr-card {
        border-radius: 12px;
    }
}

@media (max-width: 520px) {
    .abrr-shell {
        padding: 10px 12px 38px;
        font-size: 15px;
    }

    .abrr-tabs {
        gap: 5px;
        margin-bottom: 16px;
        padding: 4px;
        border-radius: 12px;
    }

    .abrr-tab {
        min-height: 44px;
        padding: 8px 7px;
        border-radius: 9px;
        font-size: 13px;
    }

    .abrr-hero {
        padding: 14px 2px 12px;
    }

    .abrr-hero h2 {
        font-size: clamp(26px, 9vw, 34px);
    }

    .abrr-card {
        padding: 16px;
    }

    .abrr-field input[type="text"],
    .abrr-field input[type="email"],
    .abrr-field input[type="number"],
    .abrr-field select,
    .abrr-field textarea,
    .abrr-request-form > section select {
        min-height: 48px;
        font-size: 16px;
    }

    .abrr-button {
        width: 100%;
    }

    .abrr-confirm-form {
        align-items: stretch;
        flex-direction: column;
    }

    .abrr-order-meta span {
        flex: 1 1 calc(50% - 8px);
    }

    .abrr-file-picker {
        align-items: stretch;
        flex-direction: column;
    }

    .abrr-file-button {
        width: 100%;
    }

    .abrr-item-card {
        gap: 9px;
        padding: 10px;
    }

    .abrr-item-qty {
        grid-template-columns: minmax(0, 1fr) 92px;
    }

    .abrr-table-wrap {
        overflow: visible;
    }

    .abrr-account-list table,
    .abrr-account-list tbody,
    .abrr-account-list tr,
    .abrr-account-list td {
        display: block;
        width: 100%;
    }

    .abrr-account-list thead {
        display: none;
    }

    .abrr-account-list tr {
        margin-bottom: 12px;
        padding: 10px 12px;
        border: 1px solid var(--abrr-line);
        border-radius: 10px;
        background: #fff;
    }

    .abrr-account-list td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 7px 0 !important;
        border: 0 !important;
        text-align: right;
    }

    .abrr-account-list td::before {
        flex: 0 0 40%;
        color: var(--abrr-muted);
        font-weight: 700;
        text-align: left;
        content: attr(data-title);
    }
}

@media (max-width: 380px) {
    .abrr-tabs {
        grid-template-columns: minmax(0, 1fr);
    }

    .abrr-step {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 8px;
    }

    .abrr-step-number {
        width: 28px;
        height: 28px;
    }

    .abrr-item-card {
        grid-template-columns: 22px 46px minmax(0, 1fr);
    }

    .abrr-item-card img {
        width: 46px;
        height: 46px;
    }

    .abrr-order-meta span {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .abrr-button {
        transition: none;
    }

    .abrr-button:hover {
        transform: none;
    }
}

@media print {
    .abrr-tabs,
    .abrr-button,
    .abrr-file-picker,
    .abrr-floating-withdrawal {
        display: none !important;
    }

    .abrr-shell,
    .abrr-card {
        max-width: none;
        padding: 0;
        border: 0;
        box-shadow: none;
    }
}
