.ai-try-on-page .account-dashboard {
    min-height: calc(100vh - 106px);
}

.ai-try-on-page .account-dashboard.is-loading .ai-try-on-workspace,
.ai-try-on-page .account-dashboard.is-loading .ai-try-on-upload,
.ai-try-on-page .account-dashboard.is-loading .ai-try-on-review {
    display: none;
}

.ai-try-on-page .account-dashboard.is-loading .account-view-loader {
    display: flex;
}

.ai-try-on-workspace {
    width: min(100% - 88px, 1810px);
    margin: 38px auto 0;
    padding-bottom: 112px;
    font-family: 'Lato', sans-serif;
}

.ai-try-on-color-row,
.ai-try-on-filter-row {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ai-try-on-color-row::-webkit-scrollbar,
.ai-try-on-filter-row::-webkit-scrollbar {
    display: none;
}

.ai-try-on-color-row {
    gap: 42px;
    min-height: 76px;
    padding: 0 8px 14px 0;
    border-bottom: 1px solid #ede7dd;
}

.ai-try-on-color-btn {
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 15px 0 17px;
    font: inherit;
    font-size: 17px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.ai-try-on-color-btn.is-active {
    color: #6f24d7;
    border-bottom-color: #8b3fe1;
}

.ai-try-on-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 11px rgba(24, 18, 12, 0.12);
    background: var(--swatch);
    flex: 0 0 auto;
}

.ai-try-on-filter-row {
    gap: 20px;
    padding: 20px 0 22px;
}

.ai-try-on-filter-pill {
    position: relative;
    border: 1px solid #d8aeea;
    background: #f7e8f2;
    color: #171717;
    border-radius: 999px;
    min-height: 34px;
    padding: 5px 18px 5px 9px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(112, 57, 146, 0.06);
}

.ai-try-on-filter-pill::before {
    content: "";
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(135, 84, 164, 0.08);
}

.ai-try-on-filter-pill.is-active {
    color: #6f24d7;
    border-color: #a956e6;
    background: #f3ddf4;
    font-weight: 700;
}

.ai-try-on-filter-pill.is-active::before {
    background: #7c3bd7;
}

.ai-try-on-filter-pill.is-active::after {
    content: "";
    position: absolute;
    left: 19.5px;
    top: 50%;
    width: 10px;
    height: 4.5px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: translate(-50%, -62%) rotate(-39deg);
    z-index: 1;
}

.ai-try-on-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 26px 22px;
}

.ai-try-on-card,
.ai-try-on-inspiration-card {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    min-width: 0;
}

.ai-try-on-card-image,
.ai-try-on-inspiration-card {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
}

.ai-try-on-card-image {
    display: block;
    position: relative;
    background: #f2eee8;
}

.ai-try-on-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.ai-try-on-card:hover img {
    transform: scale(1.025);
}

.ai-try-on-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 15px;
    line-height: 1;
}

.ai-try-on-check i {
    display: block;
    line-height: 1;
    opacity: 0;
    transform: translateY(0.5px);
}

.ai-try-on-card.is-selected .ai-try-on-check {
    background: #7c3bd7;
    color: #fff;
}

.ai-try-on-card.is-selected .ai-try-on-check i {
    opacity: 1;
}

.ai-try-on-card-title {
    display: none;
}

.ai-try-on-inspiration-card {
    border: 1px dashed #a850e8;
    background: #fbf7ff;
    color: #9843df;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.18;
    padding: 18px 12px;
}

.ai-try-on-inspiration-card i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #9843df;
    color: #fff;
    font-size: 20px;
}

.ai-try-on-loading,
.ai-try-on-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 70px 20px;
}

.ai-try-on-selection-bar {
    position: fixed;
    right: clamp(18px, 3.5vw, 68px);
    bottom: 24px;
    z-index: 50;
    display: grid;
    grid-template-columns: 224px 142px;
    height: 58px;
    border: 1px solid #dfe3ea;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22, 25, 33, 0.13);
}

.ai-try-on-selection-count {
    background: #fff;
    border-right: 1px solid #e5e7ee;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #6b7280;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 20px;
    padding-top: 2px;
    box-sizing: border-box;
}

.ai-try-on-selection-count strong {
    font-size: 20px;
    line-height: 20px;
    color: #334155;
    transform: none;
}

.ai-try-on-selection-count span {
    line-height: 20px;
    transform: none;
}

.ai-try-on-selection-bar button {
    border: 0;
    background: #d4d7df;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: background 0.18s ease, color 0.18s ease;
}

.ai-try-on-selection-bar button.is-ready {
    background: #8b3fe1;
    cursor: pointer;
}

.ai-try-on-upload {
    width: min(100% - 28px, 1174px);
    margin: 10px auto 0;
    min-height: calc(100vh - 185px);
    position: relative;
    padding-bottom: 40px;
}

.ai-try-on-upload-layout {
    display: grid;
    grid-template-columns: 322px 360px;
    gap: 22px;
    align-items: start;
}

.ai-try-on-selfie-guide {
    min-height: 276px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 22px 26px 18px;
    text-align: center;
}

.ai-try-on-selfie-guide h2 {
    margin: 0 0 4px;
    color: #070707;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.15;
}

.ai-try-on-selfie-guide p {
    margin: 0 0 16px;
    color: #050505;
    font-size: 14px;
    line-height: 1.25;
}

.ai-try-on-guide-photo {
    width: 162px;
    height: 162px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #ece7df;
}

.ai-try-on-guide-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-try-on-face-ring {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 86px;
    height: 118px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ai-try-on-guide-check {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #bd991d;
    color: #fff;
    font-size: 18px;
}

.ai-try-on-upload-actions {
    padding-top: 42px;
}

.ai-try-on-camera-btn,
.ai-try-on-gallery-btn {
    width: 206px;
    min-height: 44px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.ai-try-on-camera-btn {
    border: 0;
    background: #bd991d;
    color: #fff;
    margin-bottom: 14px;
}

.ai-try-on-gallery-btn {
    border: 1px solid #bd991d;
    background: #fff;
    color: #a87f04;
}

.ai-try-on-upload-progress {
    width: 362px;
    min-height: 54px;
    margin-top: 18px;
    border: 1px solid #e2e2e2;
    border-radius: 7px;
    background: #fff;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 6px 9px;
}

.ai-try-on-upload-progress[hidden] {
    display: none;
}

.ai-try-on-upload-progress img {
    width: 50px;
    height: 42px;
    border-radius: 2px;
    object-fit: cover;
    background: #f2eee8;
}

.ai-try-on-upload-progress-body {
    min-width: 0;
}

.ai-try-on-upload-progress-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 8px;
    align-items: center;
}

.ai-try-on-upload-progress-top strong {
    min-width: 0;
    overflow: hidden;
    color: #070707;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-try-on-upload-progress-top button {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #151515;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 12px;
}

.ai-try-on-upload-track {
    height: 4px;
    margin: 6px 0 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #ece7f3;
}

.ai-try-on-upload-track span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #7c2bd9;
    transform-origin: left center;
    animation: tryOnUploadFill 0.65s ease-out both;
}

.ai-try-on-upload-progress small {
    display: block;
    color: #2d3440;
    font-size: 10px;
    line-height: 1;
}

@keyframes tryOnUploadFill {
    from {
        transform: scaleX(0.18);
    }

    to {
        transform: scaleX(1);
    }
}

.ai-try-on-upload-actions h3 {
    margin: 18px 0 18px;
    color: #070707;
    font-size: 16px;
    font-weight: 700;
}

.ai-try-on-previous-uploads {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ai-try-on-previous-card {
    width: 146px;
    height: 154px;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #f2eee8;
    position: relative;
    cursor: pointer;
}

.ai-try-on-previous-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #f2eee8;
}

.ai-try-on-previous-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: #fff;
    color: transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ai-try-on-previous-card.is-selected .ai-try-on-previous-check {
    background: #bd991d;
    color: #fff;
}

.ai-try-on-photo-preview {
    margin-top: 18px;
    width: 146px;
    height: 154px;
    border-radius: 8px;
    overflow: hidden;
    background: #f2eee8;
}

.ai-try-on-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f2eee8;
    display: block;
}

.ai-try-on-upload-nav {
    position: absolute;
    right: 0;
    top: 392px;
    display: flex;
    gap: 10px;
    z-index: 48;
}

.ai-try-on-upload-nav button {
    width: 126px;
    height: 52px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.ai-try-on-upload-back {
    border: 1px solid #bd991d;
    background: #fff;
    color: #a87f04;
}

.ai-try-on-upload-next {
    border: 0;
    background: #cfd2da;
    color: #fff;
    cursor: not-allowed;
}

.ai-try-on-upload-next.is-ready {
    background: #bd991d;
    cursor: pointer;
}

.ai-try-on-upload.is-camera-open .ai-try-on-upload-layout,
.ai-try-on-upload.is-camera-open .ai-try-on-upload-nav {
    display: none;
}

.ai-try-on-live-camera {
    width: min(100%, 520px);
    margin: 18px auto 0;
}

.ai-try-on-camera-heading {
    text-align: center;
    margin-bottom: 20px;
}

.ai-try-on-camera-heading h2 {
    margin: 0;
    color: #1a2b3c;
    font-family: 'Lato', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.ai-try-on-camera-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    min-height: 480px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

#tryOnLiveCameraFeed {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: block;
    object-fit: cover;
    transform: scaleX(-1);
}

.ai-try-on-camera-oval {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 320px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ai-try-on-camera-actions {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.ai-try-on-camera-cancel {
    border: 0;
    border-radius: 30px;
    padding: 12px 24px;
    background: #6b7280;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ai-try-on-camera-cancel:hover {
    background: #4b5563;
}

.ai-try-on-camera-capture {
    width: 64px;
    height: 64px;
    border: 2px solid #8b5cf6;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
    transition: transform 0.1s ease;
}

.ai-try-on-camera-capture:active {
    transform: scale(0.95);
}

.ai-try-on-review {
    width: min(100% - 64px, 1180px);
    margin: 34px auto 0;
    padding-bottom: 112px;
    font-family: 'Lato', sans-serif;
}

.ai-try-on-review-shell {
    max-width: 1040px;
}

.ai-try-on-review-heading {
    margin-bottom: 24px;
}

.ai-try-on-review-heading h2 {
    margin: 0 0 7px;
    color: #0f2740;
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    line-height: 1.15;
}

.ai-try-on-review-heading p {
    margin: 0;
    color: #667085;
    font-size: 16px;
}

.ai-try-on-review-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: stretch;
}

.ai-try-on-review-card {
    border: 1px solid #eee3d3;
    border-radius: 8px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.ai-try-on-review-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ai-try-on-review-card-head span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ai-try-on-review-card-head button {
    border: 0;
    background: transparent;
    color: #a87f04;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.ai-try-on-review-photo {
    height: 255px;
    border-radius: 8px;
    overflow: hidden;
    background: #f2eee8;
}

.ai-try-on-review-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.ai-try-on-review-style-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 12px;
    max-height: 255px;
    overflow: auto;
    padding-right: 2px;
}

.ai-try-on-review-style {
    min-width: 0;
}

.ai-try-on-review-style img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    border-radius: 7px;
    background: #f2eee8;
}

.ai-try-on-review-style span {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    color: #182230;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-try-on-credit-summary {
    display: grid;
    gap: 12px;
}

.ai-try-on-credit-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0eadf;
    padding-bottom: 12px;
}

.ai-try-on-credit-summary span {
    color: #667085;
    font-size: 14px;
    font-weight: 700;
}

.ai-try-on-credit-summary strong {
    color: #0f2740;
    font-size: 28px;
    line-height: 1;
}

.ai-try-on-review-credits p {
    min-height: 38px;
    margin: 18px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.35;
}

.ai-try-on-review-message {
    display: none;
    min-height: 0 !important;
    margin-top: 12px !important;
    border: 1px solid #fecdca;
    border-radius: 8px;
    background: #fff5f5;
    padding: 11px 12px;
    color: #b42318 !important;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1.35;
}

.ai-try-on-review-message.is-visible {
    display: block;
}

.ai-try-on-review-message.is-info {
    border-color: #d9d6fe;
    background: #f7f5ff;
    color: #5925dc !important;
}

.ai-try-on-review-message.is-warning {
    border-color: #fedf89;
    background: #fffaeb;
    color: #93370d !important;
}

.ai-try-on-review-message.is-error {
    border-color: #fecdca;
    background: #fff5f5;
    color: #b42318 !important;
}

.ai-try-on-review-actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ai-try-on-review-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    border: 1px solid #e5d8c5;
    border-radius: 8px;
    background: #fffcf7;
    padding: 14px 16px;
    color: #44515a;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.ai-try-on-review-consent input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: #7c2bd9;
}

.ai-try-on-review-consent a,
.try-on-plan-guarantee a {
    color: #6f22bc;
    font-weight: 700;
}

.ai-try-on-review-actions button,
.ai-try-on-review-actions a {
    min-width: 148px;
    height: 52px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ai-try-on-review-back {
    border: 1px solid #bd991d;
    background: #fff;
    color: #a87f04;
    cursor: pointer;
}

.ai-try-on-review-purchase {
    border: 0;
    background: #7c2bd9;
    color: #fff;
}

.ai-try-on-review-generate {
    min-width: 190px;
    border: 0;
    background: #bd991d;
    color: #fff;
    cursor: pointer;
}

.ai-try-on-review-generate:disabled {
    background: #cfd2da;
    cursor: not-allowed;
}

.ai-try-on-generating-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(14, 18, 24, 0.42);
    backdrop-filter: blur(6px);
}

.ai-try-on-generating-modal.is-open {
    display: flex;
}

.ai-try-on-generating-card {
    width: min(100%, 430px);
    border-radius: 14px;
    background: #fff;
    padding: 34px 34px 30px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

.ai-try-on-generating-modal.is-complete .ai-try-on-generating-card {
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.ai-try-on-generating-visual {
    height: 92px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ai-try-on-generating-tile,
.ai-try-on-generating-visual span {
    width: 62px;
    height: 78px;
    border-radius: 10px;
    background: linear-gradient(160deg, #f8f2ff, #efe4d3);
    box-shadow: 0 10px 26px rgba(39, 31, 18, 0.14);
    overflow: hidden;
    position: relative;
    animation: generatingCardFloat 1.4s ease-in-out infinite;
}

.ai-try-on-generating-tile:nth-child(2),
.ai-try-on-generating-visual span:nth-child(2) {
    width: 72px;
    height: 88px;
    background: linear-gradient(160deg, #efe6d8, #f8f9fa);
    animation-delay: 0.16s;
}

.ai-try-on-generating-tile:nth-child(3),
.ai-try-on-generating-visual span:nth-child(3) {
    animation-delay: 0.32s;
}

.ai-try-on-generating-tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ai-try-on-generating-tile.is-selfie img {
    object-fit: cover;
}

.ai-try-on-generating-tile.is-result {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f9f5ff, #f3eee4);
}

.ai-try-on-generating-tile.is-result::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-90%);
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.72) 50%, transparent 80%);
    animation: generatingTileShimmer 1.35s ease-in-out infinite;
}

.ai-try-on-generating-tile.is-result i {
    position: relative;
    z-index: 1;
    color: #7c2bd9;
    font-size: 24px;
}

.ai-try-on-generating-modal.is-complete .ai-try-on-generating-tile {
    animation: none;
    opacity: 1;
}

.ai-try-on-generating-modal.is-complete .ai-try-on-generating-tile.is-result {
    background: #f7f1df;
}

.ai-try-on-generating-modal.is-complete .ai-try-on-generating-tile.is-result::before {
    display: none;
}

.ai-try-on-generating-modal.is-complete .ai-try-on-generating-tile.is-result i {
    color: #bd991d;
}

.ai-try-on-generating-tile-label {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    padding: 3px 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    color: #fff;
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
}

.ai-try-on-generating-card h2 {
    margin: 0 0 8px;
    color: #0f2740;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    line-height: 1.15;
}

.ai-try-on-generating-card p {
    min-height: 22px;
    margin: 0 0 22px;
    color: #667085;
    font-size: 15px;
}

.ai-try-on-generating-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #eee7f8;
}

.ai-try-on-generating-bar span {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c2bd9, #bd991d);
    animation: generatingBarSlide 1.15s ease-in-out infinite;
}

.ai-try-on-generating-modal.is-complete .ai-try-on-generating-bar span {
    width: 100%;
    transform: none;
    background: linear-gradient(90deg, #bd991d, #7c2bd9);
    animation: none;
}

.ai-try-on-generating-card button {
    min-width: 120px;
    height: 42px;
    margin-top: 24px;
    border: 0;
    border-radius: 7px;
    background: #bd991d;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

@keyframes generatingCardFloat {
    0%,
    100% {
        transform: translateY(6px) scale(0.96);
        opacity: 0.72;
    }

    50% {
        transform: translateY(-6px) scale(1);
        opacity: 1;
    }
}

@keyframes generatingBarSlide {
    0% {
        transform: translateX(-105%);
    }

    100% {
        transform: translateX(265%);
    }
}

@keyframes generatingTileShimmer {
    0% {
        transform: translateX(-90%);
    }

    100% {
        transform: translateX(120%);
    }
}

@media (max-width: 768px) {
    .ai-try-on-workspace,
    .ai-try-on-upload {
        width: calc(100% - 24px);
        margin-top: 18px;
    }

    .ai-try-on-color-row {
        gap: 28px;
        min-height: 66px;
        padding-bottom: 12px;
    }

    .ai-try-on-color-btn {
        gap: 10px;
        font-size: 15px;
        padding: 12px 0 14px;
    }

    .ai-try-on-swatch {
        width: 30px;
        height: 30px;
    }

    .ai-try-on-filter-row {
        gap: 12px;
        padding: 14px 0 18px;
    }

    .ai-try-on-filter-pill {
        min-height: 31px;
        padding-right: 15px;
        font-size: 14px;
    }

    .ai-try-on-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px 10px;
    }

    .ai-try-on-selection-bar {
        left: 12px;
        right: 12px;
        bottom: 14px;
        grid-template-columns: minmax(0, 1fr) 118px;
        height: 58px;
    }

    .ai-try-on-upload {
        min-height: calc(100vh - 170px);
        padding-bottom: 104px;
    }

    .ai-try-on-upload-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ai-try-on-selfie-guide {
        width: min(322px, 100%);
        margin: 0 auto;
    }

    .ai-try-on-upload-actions {
        padding-top: 0;
        width: min(322px, 100%);
        margin: 0 auto;
    }

    .ai-try-on-camera-btn,
    .ai-try-on-gallery-btn {
        width: 100%;
    }

    .ai-try-on-upload-progress {
        width: 100%;
    }

    .ai-try-on-upload-nav {
        left: 12px;
        right: 12px;
        bottom: 14px;
    }

    .ai-try-on-upload-nav button {
        width: auto;
        flex: 1;
    }

    .ai-try-on-review {
        width: calc(100% - 24px);
        margin-top: 18px;
        padding-bottom: 90px;
    }

    .ai-try-on-review-heading h2 {
        font-size: 28px;
    }

    .ai-try-on-review-grid {
        grid-template-columns: 1fr;
    }

    .ai-try-on-review-photo {
        height: 260px;
    }

    .ai-try-on-review-actions {
        position: sticky;
        bottom: 14px;
        justify-content: stretch;
    }

    .ai-try-on-review-actions button,
    .ai-try-on-review-actions a {
        min-width: 0;
        flex: 1;
    }

    .ai-try-on-live-camera {
        margin-top: 6px;
    }

    .ai-try-on-camera-heading h2 {
        font-size: 22px;
    }

    .ai-try-on-camera-wrapper,
    #tryOnLiveCameraFeed {
        min-height: 420px;
    }

    .ai-try-on-camera-oval {
        width: 180px;
        height: 270px;
    }
}

@media (max-width: 460px) {
    .ai-try-on-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Guest discovery and plan bridge */
body.modal-open {
    overflow: hidden;
}

.try-on-guest-modal {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.try-on-guest-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.try-on-guest-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(12, 25, 28, 0.58);
    backdrop-filter: blur(7px);
    cursor: default;
}

.try-on-guest-card {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 30px;
    border: 1px solid rgba(194, 154, 24, 0.22);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(6, 24, 26, 0.24);
    transform: translateY(18px) scale(0.98);
    transition: transform 220ms ease;
}

.try-on-guest-modal.is-open .try-on-guest-card {
    transform: translateY(0) scale(1);
}

.try-on-guest-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #718087;
    background: #f1f3f4;
    cursor: pointer;
}

.try-on-guest-handle {
    display: block;
    width: 42px;
    height: 3px;
    margin: -15px auto 16px;
    border-radius: 3px;
    background: #d9dde0;
}

.try-on-selfie-card h2 {
    max-width: 350px;
    margin: 0 auto 20px;
    padding: 0 20px;
    color: #152f31;
    font-family: "Playfair Display", serif;
    font-size: 27px;
    line-height: 1.16;
    text-align: center;
}

.try-on-selfie-steps {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.try-on-selfie-step {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 72px;
    align-items: center;
    min-height: 86px;
    overflow: hidden;
    border: 1px solid #edf0f1;
    border-radius: 8px;
    background: #f7f8f8;
}

.try-on-selfie-step > span {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    margin-left: 10px;
    border-radius: 50%;
    color: #fff;
    background: #7627c7;
    font-size: 13px;
    font-weight: 700;
}

.try-on-selfie-step div {
    padding: 12px 10px;
}

.try-on-selfie-step strong,
.try-on-selfie-step small {
    display: block;
}

.try-on-selfie-step strong {
    margin-bottom: 4px;
    color: #1f292b;
    font-family: "Playfair Display", serif;
    font-size: 17px;
}

.try-on-selfie-step small {
    color: #526269;
    font-size: 12px;
    line-height: 1.35;
}

.try-on-selfie-step img,
.try-on-selfie-step > i {
    width: 72px;
    height: 86px;
}

.try-on-selfie-step img {
    object-fit: cover;
}

.try-on-selfie-step > i {
    display: grid;
    place-items: center;
    color: #bf9919;
    background: #f3ead2;
    font-size: 28px;
}

.try-on-selfie-primary,
.try-on-selfie-secondary,
.try-on-plan-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.try-on-selfie-primary,
.try-on-plan-submit {
    border: 1px solid #c39a16;
    color: #fff;
    background: #c39a16;
}

.try-on-selfie-secondary {
    margin-top: 10px;
    border: 1px solid #c39a16;
    color: #a77e00;
    background: #fff;
}

.try-on-selfie-primary i,
.try-on-selfie-secondary i {
    margin-right: 7px;
}

.try-on-guest-proof,
.try-on-plan-guarantee {
    margin: 14px 0 0;
    color: #637278;
    font-size: 12px;
    text-align: center;
}

.try-on-plan-card {
    width: min(100%, 940px);
    padding: 0 30px 24px;
}

.try-on-plan-kicker {
    margin: 0 -30px 22px;
    padding: 12px 58px;
    color: #4d315c;
    background: #efe7f0;
    text-align: center;
}

.try-on-plan-kicker span,
.try-on-plan-kicker strong {
    display: block;
}

.try-on-plan-kicker span {
    margin-bottom: 4px;
    font-size: 13px;
}

.try-on-plan-kicker strong {
    color: #7023bd;
    font-size: 14px;
}

.try-on-plan-heading {
    text-align: center;
}

.try-on-plan-heading h2 {
    margin: 0 0 8px;
    color: #172e30;
    font-family: "Playfair Display", serif;
    font-size: 31px;
}

.try-on-plan-heading p {
    margin: 0;
    color: #53636a;
}

.try-on-plan-heading > div {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 13px;
    color: #263638;
    font-size: 13px;
}

.try-on-plan-heading i {
    margin-right: 5px;
    color: #24a21f;
}

.try-on-plan-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 18px;
}

.try-on-plan-option {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 165px;
    padding: 20px 18px 16px;
    border: 1px solid #e3e5e7;
    border-radius: 8px;
    color: #1c292c;
    background: #f7f7f7;
    text-align: left;
    cursor: pointer;
}

.try-on-plan-option.is-selected {
    border-color: #8c34dc;
    background: #fff0ef;
    box-shadow: 0 0 0 1px rgba(140, 52, 220, 0.12);
}

.try-on-plan-radio {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border: 1px solid #8c34dc;
    border-radius: 50%;
    color: transparent;
    font-size: 12px;
}

.try-on-plan-option.is-selected .try-on-plan-radio {
    color: #fff;
    background: #8c34dc;
}

.try-on-plan-badge {
    position: absolute;
    top: -13px;
    left: 14px;
    padding: 5px 9px;
    border-radius: 8px;
    color: #fff;
    background: #251b10;
    font-size: 11px;
    font-weight: 700;
}

.try-on-plan-option strong {
    max-width: calc(100% - 26px);
    margin-bottom: 8px;
    font-family: "Playfair Display", serif;
    font-size: 19px;
}

.try-on-plan-option small {
    color: #57666b;
    line-height: 1.4;
}

.try-on-plan-price {
    margin-top: auto;
    padding-top: 14px;
    font-family: "Playfair Display", serif;
    font-size: 21px;
    font-weight: 700;
}

.try-on-plan-price em {
    font-family: "Lato", sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
}

.try-on-plan-email {
    display: block;
    width: min(100%, 520px);
    margin: 0 auto;
}

.try-on-plan-email span {
    display: block;
    margin-bottom: 6px;
    color: #354449;
    font-size: 12px;
    font-weight: 700;
}

.try-on-plan-email input {
    width: 100%;
    min-height: 45px;
    padding: 0 13px;
    border: 1px solid #d8dde0;
    border-radius: 8px;
    color: #203033;
    background: #fff;
    font: inherit;
}

.try-on-plan-email input:focus {
    border-color: #8c34dc;
    outline: 2px solid rgba(140, 52, 220, 0.14);
}

.try-on-plan-message {
    display: none;
    width: min(100%, 520px);
    margin: 8px auto 0;
    color: #b12626;
    font-size: 12px;
    text-align: center;
}

.try-on-plan-message.is-visible {
    display: block;
}

.try-on-plan-message.is-success {
    color: #237229;
}

.try-on-plan-submit {
    display: block;
    width: min(100%, 420px);
    margin: 14px auto 0;
}

.try-on-plan-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.try-on-plan-loading {
    grid-column: 1 / -1;
    padding: 36px;
    color: #66767c;
    text-align: center;
}

@media (max-width: 760px) {
    .try-on-guest-modal {
        align-items: end;
        padding: 12px;
    }

    .try-on-guest-card {
        max-height: calc(100dvh - 24px);
        padding: 24px 18px 20px;
    }

    .try-on-plan-card {
        padding-top: 0;
    }

    .try-on-plan-kicker {
        margin: 0 -18px 18px;
        padding: 11px 46px;
    }

    .try-on-plan-heading h2 {
        font-size: 26px;
    }

    .try-on-plan-heading > div {
        flex-direction: column;
        gap: 5px;
    }

    .try-on-plan-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .try-on-plan-option {
        min-height: 132px;
    }
}

@media (max-width: 430px) {
    .try-on-selfie-card h2 {
        padding: 0 12px;
        font-size: 24px;
    }

    .try-on-selfie-step {
        grid-template-columns: 28px minmax(0, 1fr) 64px;
    }

    .try-on-selfie-step img,
    .try-on-selfie-step > i {
        width: 64px;
    }
}
