.wsdtf-account-head,
.wsdtf-account-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 28px;
    padding: 28px;
    border: 1px solid #e6e6e6;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff 0%, #fffdf3 100%);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .06);
}

.wsdtf-account-head h2,
.wsdtf-account-welcome h2 {
    margin: 6px 0 10px;
    color: #090909;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.wsdtf-account-head p,
.wsdtf-account-welcome p {
    max-width: 760px;
    margin: 0;
    color: #4d5562;
    font-size: 15px;
    line-height: 1.65;
}

.wsdtf-account-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffd400;
    color: #090909;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.wsdtf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 11px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.wsdtf-button:hover {
    transform: translateY(-1px);
}

.wsdtf-button-primary {
    border-color: #111;
    background: #111;
    color: #fff !important;
    box-shadow: 0 9px 22px rgba(0, 0, 0, .16);
}

.wsdtf-button-primary:hover {
    border-color: #ffd400;
    background: #ffd400;
    color: #090909 !important;
}

.wsdtf-button-ghost {
    border-color: #d9dce1;
    background: #fff;
    color: #111 !important;
}

.wsdtf-button-ghost:hover {
    border-color: #111;
}

.wsdtf-order-list {
    display: grid;
    gap: 22px;
}

.wsdtf-guest-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin: -8px 0 24px;
    padding: 19px 21px;
    border: 1px solid #ead172;
    border-radius: 16px;
    background: #fff9dc;
}

.wsdtf-guest-link strong {
    display: block;
    margin-bottom: 4px;
    color: #171300;
    font-size: 15px;
}

.wsdtf-guest-link p {
    max-width: 720px;
    margin: 0;
    color: #625820;
    font-size: 12px;
    line-height: 1.55;
}

.wsdtf-guest-link form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
}

.wsdtf-guest-link label span {
    display: block;
    margin-bottom: 5px;
    color: #4c4316;
    font-size: 11px;
    font-weight: 800;
}

.wsdtf-guest-link input[type="text"] {
    width: 170px;
    min-height: 42px;
    margin: 0;
    border: 1px solid #b8a64b;
    border-radius: 9px;
    background: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .18em;
    text-align: center;
}

.wsdtf-guest-resend {
    grid-column: 2;
    justify-content: flex-end;
    margin-top: -12px !important;
}

.wsdtf-guest-resend button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #554a11;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    text-decoration: underline;
}

.wsdtf-order-card {
    overflow: hidden;
    border: 1px solid #dfe2e6;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(17, 24, 39, .07);
}

.wsdtf-order-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid #eceef1;
    background: #fafafa;
}

.wsdtf-order-number {
    display: block;
    margin-bottom: 7px;
    color: #090909;
    font-size: 19px;
    font-weight: 900;
}

.wsdtf-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.wsdtf-order-meta span {
    padding: 4px 8px;
    border-radius: 7px;
    background: #fff;
    color: #525b69;
    font-size: 12px;
    font-weight: 700;
}

.wsdtf-order-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.wsdtf-position {
    padding: 22px 24px;
    border-bottom: 1px solid #eceef1;
}

.wsdtf-position:last-of-type {
    border-bottom: 0;
}

.wsdtf-position-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.wsdtf-position-summary strong,
.wsdtf-position-summary span {
    display: block;
}

.wsdtf-reorder-form {
    flex: 0 0 auto;
    margin: 0;
}

.wsdtf-position-summary strong {
    margin-bottom: 4px;
    color: #101114;
    font-size: 16px;
}

.wsdtf-position-summary span {
    color: #626b78;
    font-size: 13px;
}

.wsdtf-archive-missing {
    max-width: 240px;
    padding: 8px 11px;
    border: 1px solid #efc2c2;
    border-radius: 9px;
    background: #fff4f4;
    color: #9f1d1d !important;
    font-size: 12px !important;
    font-weight: 800;
}

.wsdtf-preview-details {
    margin-top: 16px;
    border: 1px solid #e3e5e8;
    border-radius: 14px;
    background: #f7f8f9;
}

.wsdtf-preview-details > summary {
    padding: 13px 15px;
    color: #15171a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
    list-style-position: inside;
}

.wsdtf-preview-details[open] > summary {
    border-bottom: 1px solid #e3e5e8;
    background: #fff;
}

.wsdtf-preview-info {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 14px 14px 0;
}

.wsdtf-preview-info span {
    padding: 5px 8px;
    border-radius: 7px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.wsdtf-preview-strip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding: 14px;
    scroll-snap-type: x proximity;
}

.wsdtf-preview-segment {
    flex: 0 0 190px;
    margin: 0;
    scroll-snap-align: start;
}

.wsdtf-preview-segment figcaption {
    min-height: 30px;
    padding: 6px 8px;
    border: 1px solid #d9dce0;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: #fff;
    color: #3d4652;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.wsdtf-preview-segment svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 630px;
    border: 1px solid #d9dce0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.wsdtf-preview-note {
    margin: 0;
    padding: 0 14px 15px;
    color: #697382;
    font-size: 11px;
    line-height: 1.55;
}

.wsdtf-preview-unavailable {
    margin: 14px;
    padding: 15px;
    border: 1px solid #efc2c2;
    border-radius: 10px;
    background: #fff4f4;
    color: #7e2020;
}

.wsdtf-preview-unavailable p {
    margin: 5px 0 0;
}

.wsdtf-order-claim-state {
    padding: 13px 24px;
    background: #fff8d7;
    color: #49420e;
    font-size: 12px;
}

.wsdtf-empty-state {
    padding: 34px;
    border: 1px dashed #cdd1d7;
    border-radius: 18px;
    background: #fafafa;
    text-align: center;
}

.wsdtf-empty-state h3 {
    margin: 0 0 8px;
}

.wsdtf-empty-state p {
    max-width: 620px;
    margin: 0 auto 18px;
    color: #626b78;
}

.wsdtf-claim-history {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
}

.wsdtf-claim-history > h3 {
    margin: 0;
}

.wsdtf-claim-history > article {
    padding: 18px;
    border: 1px solid #dfe2e6;
    border-radius: 15px;
    background: #fff;
}

.wsdtf-claim-history > article > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wsdtf-claim-history > article > div:first-child strong {
    color: #111;
}

.wsdtf-claim-history > article > div:first-child span {
    color: #697382;
    font-size: 12px;
}

.wsdtf-claim-history article > p {
    margin: 12px 0 0;
    color: #303744;
}

.wsdtf-claim-response {
    margin-top: 14px;
    padding: 13px 14px;
    border-left: 4px solid #ffd400;
    border-radius: 8px;
    background: #fff9da;
}

.wsdtf-claim-response p {
    margin: 5px 0 0;
}

.wsdtf-claim-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 24px;
    border: 1px solid #dfe2e6;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(17, 24, 39, .06);
}

.wsdtf-claim-form label > span {
    display: block;
    margin-bottom: 7px;
    color: #17191c;
    font-size: 13px;
    font-weight: 850;
}

.wsdtf-claim-form select,
.wsdtf-claim-form textarea,
.wsdtf-claim-form input[type="file"] {
    width: 100%;
    margin: 0;
    border: 1px solid #cfd3d9;
    border-radius: 10px;
    background: #fff;
}

.wsdtf-claim-form select,
.wsdtf-claim-form textarea {
    padding: 11px 12px;
}

.wsdtf-claim-form textarea {
    resize: vertical;
}

.wsdtf-claim-form input[type="file"] {
    padding: 10px;
}

.wsdtf-claim-form small {
    display: block;
    margin-top: 6px;
    color: #697382;
    line-height: 1.5;
}

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

.wsdtf-claim-submit {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 760px) {
    .wsdtf-account-head,
    .wsdtf-account-welcome,
    .wsdtf-order-card-head,
    .wsdtf-position-summary,
    .wsdtf-guest-link {
        align-items: stretch;
        flex-direction: column;
    }

    .wsdtf-guest-link {
        display: flex;
    }

    .wsdtf-guest-link form {
        align-items: stretch;
        flex-direction: column;
    }

    .wsdtf-guest-link input[type="text"] {
        width: 100%;
    }

    .wsdtf-guest-resend {
        margin-top: 0 !important;
    }

    .wsdtf-order-actions {
        justify-content: flex-start;
    }

    .wsdtf-claim-form {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .wsdtf-field-full {
        grid-column: auto;
    }

    .wsdtf-preview-segment {
        flex-basis: 165px;
    }
}
