.tryon-widget-wrap {
    max-width: 680px;
    margin: 30px auto;
}

.tryon-widget-wrap-wide {
    max-width: 1100px;
}

.tryon-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
}

.tryon-title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.tryon-subtitle {
    margin: 0 0 24px;
    color: #6b7280;
}

.tryon-section-title {
    margin: 20px 0 12px;
    font-size: 20px;
}

.tryon-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tryon-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.tryon-field input,
.tryon-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    box-sizing: border-box;
    background: #fff;
}

.tryon-button {
    display: inline-block;
    text-decoration: none;
    border: 0;
    border-radius: 10px;
    padding: 14px 18px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.tryon-button:hover {
    opacity: 0.92;
    color: #fff;
}

.tryon-button-secondary {
    background: #f3f4f6;
    color: #111827;
}

.tryon-button-small {
    padding: 10px 12px;
    font-size: 14px;
}

.tryon-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}

.tryon-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.tryon-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.tryon-preview-wrap {
    margin-bottom: 20px;
}

.tryon-preview-label {
    font-weight: 600;
    margin-bottom: 10px;
}

.tryon-preview-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

.tryon-inline-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.tryon-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 600;
    font-size: 13px;
}

.tryon-badge-dark {
    background: #111827;
    color: #fff;
}

.tryon-actions-row {
    margin-top: 16px;
}

.tryon-history {
    margin-top: 28px;
}

.tryon-history-grid,
.tryon-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.tryon-history-item,
.tryon-product-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.tryon-history-item img,
.tryon-profile-summary-photo img {
    width: 100%;
    display: block;
    height: auto;
}

.tryon-history-meta {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.tryon-profile-summary {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    margin-bottom: 24px;
    align-items: start;
}

.tryon-profile-summary-photo img {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

.tryon-help {
    color: #6b7280;
}

.tryon-product-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.tryon-product-title {
    font-size: 18px;
    margin: 14px 14px 8px;
}

.tryon-product-title a {
    text-decoration: none;
}

.tryon-product-price {
    margin: 0 14px 12px;
    font-weight: 700;
}

.tryon-product-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 14px 14px;
}

@media (max-width: 767px) {
    .tryon-card {
        padding: 20px;
    }

    .tryon-profile-summary {
        grid-template-columns: 1fr;
    }
}
