/**
 * Dresium Main Modal Styles
 *
 * Sidebar navigation modal matching screenshot design
 *
 * @package Dresium
 * @version 2.0.1
 */

/* ============================================================
   Main Modal Container
   ============================================================ */

.dresium-main-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    max-width: none;
    max-height: none;
    width: 100vw;
    height: 100vh;
}

.dresium-main-modal[open] {
    display: flex;
}

.dresium-main-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.dresium-main-modal__container {
    display: flex;
    width: 90vw;
    max-width: 640px; /* RG-WEBDEV 2025-11-24: Reduced from 1100px for compact design */
    height: 85vh;
    max-height: 640px; /* RG-WEBDEV 2025-11-24: Reduced from 700px for compact design */
    background: #ffffff;
    border-radius: 10px; /* RG-WEBDEV: BK -> 24px; */
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   Sidebar Navigation
   ============================================================ */

.dresium-main-modal__sidebar {
    display: flex;
    flex-direction: column;
    width: 200px; /* RG-WEBDEV 2025-11-24: Reduced from 280px for compact design */
    background: #F4F5F9; /* RG-WEBDEV: #F8F9FA; */
    border-right: 1px solid #E9ECEF;
    /* padding: 32px 0; RG-WEBDEV */
}

.dresium-main-modal__sidebar-header {
    padding: 24px 24px 24px 24px; /* 0 24px 32px; RG-WEBDEV */
}

.dresium-main-modal__logo {
    display: flex;
    align-items: center;
}

/* RG-WEBDEV 2025-01-17: Logo as image instead of styled text */
.dresium-logo {
    width: 100px;
    height: auto;
    display: block;
}

/* Navigation */
.dresium-main-modal__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0; /* RG-WEBDEV 2025-11-24: Removed 16px horizontal padding for cleaner layout */
}

/* RG-WEBDEV 2025-11-24: Add ID selector for maximum specificity to override base resets */
#dresium-main-modal .dresium-main-modal__nav-item,
.dresium-main-modal__nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 24px !important; /* RG-WEBDEV 2025-11-24: Adjusted from 14px 16px for better spacing */
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: #495057 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-align: left !important;
    width: 100% !important;
    margin: 0 !important;
    text-decoration: none !important;
    user-select: none !important;
    white-space: nowrap !important;
}

#dresium-main-modal .dresium-main-modal__nav-item:hover,
.dresium-main-modal__nav-item:hover {
    background: #E7E7E7 !important;
    color: #111 !important;
}

#dresium-main-modal .dresium-main-modal__nav-item--active,
.dresium-main-modal__nav-item--active {
    background: #E7E7E7 !important;
    color: #111 !important;
}

.dresium-main-modal__nav-icon {
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dresium-main-modal__nav-text {
    flex: 1;
    /* RG-WEBDEV */
    font-family: "Inter", Sans-serif;
    font-weight: 500;
    color: #000000;
    /*************/
}

/* Sidebar Footer */
/* RG-WEBDEV 2025-01-17: Added background color and bolder text */
.dresium-main-modal__sidebar-footer {
    padding: 24px 24px 24px 24px;
    margin-top: auto;
    background: #f4f5f9;
}

.dresium-main-modal__credits {
    padding: 0; /* RG-WEBDEV 2025-11-24: Removed padding, simplified design */
    background: none; /* RG-WEBDEV 2025-11-24: Transparent background */
    border-radius: 0; /* RG-WEBDEV 2025-11-24: No border radius */
    text-align: center;
    font-family: "Inter", Sans-serif; /* RG-WEBDEV 2025-11-24: Explicit font family */
    font-size: 14px;
    font-weight: 600; /* RG-WEBDEV 2025-01-17: Slightly bolder */
    color: #000; /* RG-WEBDEV 2025-11-24: Pure black instead of #495057 */
    border: none; /* RG-WEBDEV 2025-11-24: No border */
}

/* RG-WEBDEV 2025-01-18: Mobile footer - hidden on desktop, visible on mobile */
.dresium-main-modal__mobile-footer {
    display: none;
}

/* ============================================================
   Content Area
   ============================================================ */

.dresium-main-modal__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* RG-WEBDEV 2025-01-17: Close button - black X, no background, no scale on hover */
.dresium-main-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #000000;
    z-index: 100;
}

.dresium-main-modal__close:hover {
    background: transparent;
}

/* Sections */
.dresium-main-modal__section {
    display: none;
    flex-direction: column;
    height: 100%;
    padding: 25px; /* RG-WEBDEV 2025-11-24: Reduced from 48px 64px for compact design */
    overflow-y: auto;
}

.dresium-main-modal__section--active {
    display: flex;
}

.dresium-main-modal__section-header {
    margin-bottom: 32px;
}

.dresium-main-modal__title {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin: 0;
    letter-spacing: -0.5px;
    /* RG-WEBDEV 2025-01-18: Border-bottom as divider with 6px margin above and below */
    border-bottom: 1px solid #f4f5f9;
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.dresium-main-modal__subtitle {
    font-size: 15px;
    color: #7A7A7A;
    margin: 0;
    line-height: 1.6;
}

/* RG-WEBDEV 2025-01-18: Specific spacing for subtitle after title (6px below divider) */
h2.dresium-main-modal__title + p.dresium-main-modal__subtitle {
    margin-block-start: 6px !important;
    padding-top: 6px !important; /* RG-WEBDEV */
}

.dresium-main-modal__section-body {
    position: relative; /* RG-WEBDEV: Required for crop overlay positioning */
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   Upload Info Section
   ============================================================ */

/* RG-WEBDEV 2025-11-24: Upload info box styling */
/* RG-WEBDEV 2025-01-17: Hidden by default, shown via JS when no photos */
.dresium-upload-info {
    display: none;
    padding: 0.5rem !important; /* RG-WEBDEV 2025-11-24: Reduced padding from inline style */
}

.dresium-upload-info > p {
    color: #fff !important;
    font-size: 12px !important;
}

/* ============================================================
   Photo Preview Section
   ============================================================ */

.dresium-photo-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.dresium-photo-preview__container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    background: #F8F9FA;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dresium-photo-preview__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.dresium-photo-preview__image.loaded {
    display: block;
}

.dresium-photo-preview__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #ADB5BD;
}

.dresium-photo-preview__placeholder-icon {
    font-size: 64px;
}

.dresium-photo-preview__container:has(.dresium-photo-preview__image.loaded) .dresium-photo-preview__placeholder {
    display: none;
}

/* ============================================================
   Style Form Section
   ============================================================ */

/* RG-WEBDEV 2025-01-17: Two columns layout, single column on mobile */
.dresium-style-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .dresium-style-form {
        grid-template-columns: 1fr;
    }
}

/* RG-WEBDEV 2025-01-17: Buttons wrapper - full width, stacked */
.dresium-style-form__buttons {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

/* RG-WEBDEV 2025-01-17: Reset button style */
.dresium-btn--reset {
    background: #f4f5f9 !important;
    color: #000000 !important;
    font-weight: 500 !important;
    border-style: none !important;
    border-radius: 8px !important;
    padding: 16px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 8px !important;
}

.dresium-btn--reset svg {
    flex-shrink: 0;
}

.dresium-btn--reset:hover {
    background: #e8e9ed !important;
}

.dresium-field__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.dresium-field__select {
    width: 100%;
    padding: 5px 20px 5px 14px;
    font-size: 14px;
    color: #000000;
    background-color: #f4f5f9;
    border: 1px solid #DEE2E6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.dresium-field__select:hover {
    border-color: #ADB5BD;
}

.dresium-field__select:focus {
    outline: none;
    border-color: #4C6EF5;
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1);
}

.dresium-btn-link {
    background: none;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #4C6EF5;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dresium-btn-link--center {
    justify-content: center;
}

.dresium-btn-link:hover {
    color: #3B5BDB;
}

.dresium-btn-link__icon {
    font-size: 16px;
}

/* ============================================================
   Outfit Gallery Section
   ============================================================ */

.dresium-outfit-gallery {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dresium-outfit-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.dresium-outfit-gallery__item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    background: #F8F9FA;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dresium-outfit-gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.dresium-outfit-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RG-WEBDEV 2025-01-18: Overlay bar at bottom - same style as photo grid delete wrapper */
.dresium-outfit-gallery__item-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2;
    border-radius: 0 0 13px 13px;
}

/* Desktop: hover shows overlay */
.dresium-outfit-gallery__item:hover .dresium-outfit-gallery__item-overlay {
    opacity: 1;
    pointer-events: auto;
    background-color: rgba(0, 0, 0, 0.24);
}

/* Mobile: active class shows overlay (two-tap system) */
.dresium-outfit-gallery__item.active .dresium-outfit-gallery__item-overlay {
    opacity: 1;
    pointer-events: auto;
    background-color: rgba(0, 0, 0, 0.24);
}

/* RG-WEBDEV 2025-01-18: Icon buttons - 20px icons, B/W colors */
.dresium-outfit-gallery__item-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
}

.dresium-outfit-gallery__item-btn svg {
    width: 20px;
    height: 20px;
    color: #FFFFFF;
    stroke: #FFFFFF;
}

.dresium-outfit-gallery__item-btn:hover svg {
    transform: scale(1.1);
}

/* Loading state */
.dresium-outfit-gallery__grid--loading {
    pointer-events: none;
    position: relative;
    min-height: 200px;
}

.dresium-outfit-gallery__grid--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B5CF6;
    border-radius: 50%;
    animation: dresium-spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes dresium-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Photo grid loading state - identical to gallery spinner */
.dresium-photo-grid--loading {
    pointer-events: none;
    position: relative;
    min-height: 300px;
}

/* Hide all children (photos) during loading */
.dresium-photo-grid--loading > * {
    opacity: 0;
    visibility: hidden;
}

.dresium-photo-grid--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B5CF6;
    border-radius: 50%;
    animation: dresium-spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.dresium-outfit-gallery__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ADB5BD;
}

.dresium-outfit-gallery__empty-icon {
    font-size: 64px;
}

.dresium-outfit-gallery__empty:not(:only-child) {
    display: none;
}

.dresium-outfit-gallery__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: auto;
}

.dresium-outfit-gallery__nav-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F9FA;
    border: 1px solid #DEE2E6;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #495057;
    transition: all 0.2s ease;
}

.dresium-outfit-gallery__nav-btn:hover:not(:disabled) {
    background: #E9ECEF;
    border-color: #ADB5BD;
}

.dresium-outfit-gallery__nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* RG-WEBDEV 2025-01-17: Page info display */
.dresium-outfit-gallery__page-info {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

/* ============================================================
   Pricing Section
   ============================================================ */

/* RG-WEBDEV 2025-01-17: Full width, single column layout with Stripe buttons */
.dresium-pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
}

/* RG-WEBDEV 2025-01-18: Expandable card - click to show Stripe button */
.dresium-pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #E9ECEF;
    border-left: 4px solid #C4B5FD;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
    /* overflow: visible to allow badge to show outside */
}

.dresium-pricing-card:hover {
    background: #FAFAFF;
    border-color: #A78BFA;
    border-left-color: #A78BFA;
}

/* Expanded state - show the Stripe button */
.dresium-pricing-card--expanded {
    background: #F5F3FF;
    border-color: #8B5CF6;
    border-left-color: #8B5CF6;
}

/* Featured card (Piano Pro) */
.dresium-pricing-card--featured {
    border-left-color: #8B5CF6;
    border-left-width: 4px;
}

/* Badge for featured plan */
.dresium-pricing-card__badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 1;
}

/* Content wrapper for info - horizontal row */
.dresium-pricing-card__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 16px;
}

/* RG-WEBDEV 2025-01-17: Title and description */
.dresium-pricing-card__header {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.dresium-pricing-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 4px 0;
}

.dresium-pricing-card__description {
    font-size: 13px;
    color: #868E96;
    margin: 0;
    line-height: 1.4;
}

/* RG-WEBDEV 2025-01-17: Price */
.dresium-pricing-card__amount {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    letter-spacing: 0;
    white-space: nowrap;
}

.dresium-pricing-card__cents {
    font-size: 16px;
    font-weight: 600;
}

.dresium-pricing-card__info {
    font-size: 13px;
    color: #868E96;
    white-space: nowrap;
}

/* Stripe button action area - hidden by default, shown on expand */
.dresium-pricing-card__action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

/* Show action area when card is expanded */
.dresium-pricing-card--expanded .dresium-pricing-card__action {
    max-height: 100px;
    opacity: 1;
    margin-top: 16px;
}

/* RG-WEBDEV 2026-02-04: Style for custom Stripe checkout button */
.dresium-pricing-card__action .dresium-btn--stripe {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    background: linear-gradient(135deg, #635BFF 0%, #7C3AED 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.dresium-pricing-card__action .dresium-btn--stripe:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #635BFF 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}

.dresium-pricing-card__action .dresium-btn--stripe:active {
    transform: translateY(0);
}

.dresium-pricing-card__action .dresium-btn--stripe:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.dresium-pricing-card__action .dresium-btn--stripe.dresium-btn--loading {
    opacity: 0.8;
    cursor: wait;
}

.dresium-pricing-card__footer {
    display: none;
}

/* Subtitle link styling */
.dresium-main-modal__subtitle-link {
    color: #8B5CF6;
    text-decoration: underline;
}

.dresium-main-modal__subtitle-link:hover {
    color: #7C3AED;
}

/* Pricing footer with note */
.dresium-pricing-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.dresium-pricing-footer__note {
    text-align: center;
    font-size: 14px;
    color: #868E96;
    margin: 0;
}

/* Gradient button for purchase (kept for other uses) */
.dresium-btn--gradient {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dresium-btn--gradient:hover:not(:disabled) {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.dresium-btn--gradient:disabled {
    background: linear-gradient(135deg, #C4B5FD 0%, #A5B4FC 100%);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive: adjust content on small screens */
@media (max-width: 500px) {
    .dresium-pricing-card__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ============================================================
   Button Style Overrides for Main Modal
   RG-WEBDEV: Generic button styles moved to dresium-buttons.css
   Keep only modal-specific overrides here
   ============================================================ */

/* RG-WEBDEV: Override button base for main modal context */
.dresium-main-modal .dresium-btn {
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    font-family: inherit;
}

/* RG-WEBDEV: Override --lg size for main modal context */
.dresium-main-modal .dresium-btn--lg {
    /* padding: 14px 32px; RG-WEBDEV */
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
}

/* ============================================================
   Responsive Design
   ============================================================ */

@media (max-width: 968px) {
    
    .dresium-main-modal__container {
        width: 95vw;
        height: 80vh; /* RG-WEBDEB: BK -> 80vh */
        flex-direction: column;
        position: relative; /* RG-WEBDEV */
    }

    .dresium-main-modal__content {
        position: unset; /* RG-WEBDEV */
    }

    .dresium-main-modal__sidebar {
        width: 100%;
        flex-direction: column;
        padding: 16px;
        border-right: none;
        border-bottom: 1px solid #E9ECEF;
    }

    .dresium-main-modal__sidebar-header {
        padding: 0;
    }

    .dresium-main-modal__nav {
        flex-direction: row;
        justify-content: center; /* RG-WEBDEV */
        align-items: center; /* RG-WEBDEV */
        padding: 0;
        gap: 8px;
        overflow-x: auto;
        margin: 20px 0 10px 0; /* RG-WEBDEV */
    }

    .dresium-main-modal__nav-item {
        flex-direction: column;
        min-width: 70px;
        padding: 12px 8px;
        gap: 4px;
    }

    .dresium-main-modal__nav-text {
        display: none; /* RG-WEBDEV */
        /*font-size: 12px;
        text-align: center; RG-WEBDEV: BK */
    }

    /* RG-WEBDEV 2025-01-18: Hide sidebar footer on mobile (replaced by mobile footer) */
    .dresium-main-modal__sidebar-footer {
        display: none;
    }

    /* RG-WEBDEV 2025-01-18: Mobile footer with credits */
    .dresium-main-modal__mobile-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        background: #F4F5F9;
        border-top: 1px solid #E9ECEF;
        flex-shrink: 0;
    }

    .dresium-main-modal__mobile-credits {
        font-family: "Inter", Sans-serif;
        font-size: 13px;
        font-weight: 600;
        color: #000;
        text-align: center;
    }

    .dresium-main-modal__section {
        padding: 32px 24px;
    }

    .dresium-pricing-grid {
        flex-direction: column;
    }

    .dresium-outfit-gallery__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Photo Grid Section (Voce 1 - Foto Predefinita)
   ============================================================ */

/* RG-WEBDEV 2025-01-17: Uniformed with gallery - 3 columns, aspect-ratio 3/4 */
.dresium-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.dresium-photo-grid__item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 3px solid transparent;
    background: #e7e7e7;
}

/* RG-WEBDEV 2025-01-18: Same hover animation as gallery */
.dresium-photo-grid__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.dresium-photo-grid__item--selected {
    border-color: #4A90E2;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
}

.dresium-photo-grid__item--upload {
    border: 3px dashed #CED4DA;
    background: #F8F9FA;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dresium-photo-grid__item--upload:hover {
    border-color: #4A90E2;
    background: #EBF5FF;
}

/* RG-WEBDEV 2025-01-17: Upload icon SVG - centered in x and y */
.dresium-photo-grid__upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #868E96;
    transition: all 0.2s ease;
}

.dresium-photo-grid__upload-icon svg {
    display: block;
}

.dresium-photo-grid__item--upload:hover .dresium-photo-grid__upload-icon {
    color: #4A90E2;
    transform: scale(1.1);
}

.dresium-photo-grid__image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* RG-WEBDEV 2025-01-18: Delete button wrapper - hidden by default, shown on hover */
.dresium-photo-grid__delete-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.16);
    border-radius: 0 0 13px 13px;
    z-index: 2;
    cursor: default;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

/* Show delete wrapper on hover */
.dresium-photo-grid__item:hover .dresium-photo-grid__delete-wrapper {
    opacity: 1;
    pointer-events: auto;
    background-color: rgba(0, 0, 0, 0.24);
}

/* Delete button - transparent, cursor only on button */
.dresium-photo-grid__item .dresium-photo-grid__delete {
    background: transparent !important;
    border: none !important;
    padding: 4px 10px !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Trash icon - white */
.dresium-photo-grid__item .dresium-photo-grid__delete > span {
    color: #FFFFFF !important;
    font-size: 18px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* SVG icon size inside delete button - 20px, white */
.dresium-photo-grid__delete svg {
    width: 20px !important;
    height: 20px !important;
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

/* Empty State */
/* RG-WEBDEV 2025-01-17: Reduced padding, adjusted spacing */
.dresium-photo-grid__empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.dresium-photo-grid__empty--visible {
    display: flex;
}

.dresium-photo-grid__empty-icon {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.dresium-photo-grid__empty-text {
    font-size: 16px;
    color: #868E96;
    margin: 0 0 32px 0;
}

/* Footer with CTA */
.dresium-photo-grid__footer {
    margin-top: auto;
}

/* RG-WEBDEV 2025-01-17: Hide select photo button by default, shown via JS when photos exist */
#dresium-select-photo-btn {
    display: none;
}

/* Vibration animation for disabled button */
@keyframes vibrate {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.dresium-photo-grid__item--vibrate {
    animation: vibrate 0.3s ease;
}

/* RG-WEBDEV 2025-10-26: Share Modal */
.dresium-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dresium-share-modal--active {
    opacity: 1;
    visibility: visible;
}

.dresium-share-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.dresium-share-modal__content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.dresium-share-modal--active .dresium-share-modal__content {
    transform: scale(1);
}

.dresium-share-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dresium-share-modal__header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #212529;
}

.dresium-share-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F9FA;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #495057;
    transition: all 0.2s ease;
}

.dresium-share-modal__close:hover {
    background: #E9ECEF;
    transform: rotate(90deg);
}

.dresium-share-modal__body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dresium-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    background: #F8F9FA;
    border: 2px solid #DEE2E6;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

.dresium-share-btn:hover {
    border-color: #ADB5BD;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dresium-share-btn svg {
    flex-shrink: 0;
}

.dresium-share-btn--whatsapp:hover {
    border-color: #25D366;
    color: #25D366;
}

.dresium-share-btn--facebook:hover {
    border-color: #1877F2;
    color: #1877F2;
}

.dresium-share-btn--instagram:hover {
    border-color: #E4405F;
    color: #E4405F;
}

.dresium-share-btn--email:hover {
    border-color: #EA4335;
    color: #EA4335;
}

.dresium-share-btn--download:hover {
    border-color: #FF6B6B;
    color: #FF6B6B;
}

/* Responsive */
@media (max-width: 768px) {
    .dresium-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dresium-share-modal__content {
        padding: 24px;
    }

    .dresium-share-modal__body {
        grid-template-columns: 1fr;
    }

    .dresium-share-btn {
        padding: 14px 16px;
    }
}

/* RG-WEBDEV 2025-01-18: Inline Share Expansion - B/W icons, same style as overlay bar */
.dresium-share-expansion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.dresium-share-expansion--active {
    opacity: 1;
    pointer-events: all;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

/* RG-WEBDEV 2025-01-18: Share buttons - transparent, white icons */
.dresium-share-expansion__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
    color: #FFFFFF;
}

.dresium-share-expansion__btn:hover {
    transform: scale(1.1);
}

.dresium-share-expansion__btn:active {
    transform: scale(0.95);
}

.dresium-share-expansion__btn svg {
    width: 20px;
    height: 20px;
    fill: #FFFFFF;
}

/* Active state for share button when expanded */
.dresium-outfit-gallery__item-btn--active {
    background: rgba(0, 123, 255, 0.1) !important;
    border-color: rgba(0, 123, 255, 0.3) !important;
    transform: scale(1.05);
}

/* RG-WEBDEV 2025-10-31: Hide main buttons when share expansion is active */
.dresium-outfit-gallery__item-btn--hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .dresium-share-expansion {
        gap: 12px;
    }

    .dresium-share-expansion__btn svg {
        width: 18px;
        height: 18px;
    }
}

/* =============================================================================
   INSUFFICIENT CREDITS MODAL - RG-WEBDEV 2026-02-03
   Refactored to use dresium-main-modal layout structure
   ============================================================================= */

/**
 * Credits-Only Modal Variant
 * Uses the same base structure as dresium-main-modal but simplified:
 * - No sidebar navigation (just header with logo)
 * - Single section (credits/pricing only)
 * - Vertical layout (header on top, content below)
 */

/* Inherit backdrop from .dresium-main-modal */
#dresium-insufficient-credits-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Credits-only variant: vertical layout instead of horizontal sidebar */
.dresium-main-modal--credits-only .dresium-main-modal__container {
    flex-direction: column;
}

/* Sidebar becomes horizontal header in credits-only variant */
.dresium-main-modal--credits-only .dresium-main-modal__sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid #E9ECEF;
    padding: 0;
    position: relative;
}

.dresium-main-modal--credits-only .dresium-main-modal__sidebar-header {
    padding: 16px 24px;
}

/* Close button positioning for credits-only variant */
.dresium-main-modal--credits-only .dresium-main-modal__close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
}

/* Hide mobile footer in credits-only variant (no credits display needed) */
.dresium-main-modal--credits-only .dresium-main-modal__mobile-footer {
    display: none;
}

/* =============================================================================
   Credits-Only Variant: Typography & Layout Consistency
   Ensures same styling as main modal's "Acquista Crediti" section
   ============================================================================= */

/* Section padding - same as main modal */
.dresium-main-modal--credits-only .dresium-main-modal__section {
    padding: 25px;
}

/* Section header spacing */
.dresium-main-modal--credits-only .dresium-main-modal__section-header {
    margin-bottom: 24px;
}

/* Base reset for headings - same as #dresium-main-modal h1-h6 */
#dresium-insufficient-credits-modal h1,
#dresium-insufficient-credits-modal h2,
#dresium-insufficient-credits-modal h3,
#dresium-insufficient-credits-modal h4,
#dresium-insufficient-credits-modal h5,
#dresium-insufficient-credits-modal h6 {
    font-family: "Poppins", Sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    line-height: 1.5 !important;
    margin-block-end: 0 !important;
    margin-block-start: 0 !important;
}

/* Base reset for paragraphs - same as #dresium-main-modal p */
#dresium-insufficient-credits-modal p {
    font-family: "Inter", Sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin-block-end: 0 !important;
    margin-block-start: 0 !important;
}

/* Title override - inherits from .dresium-main-modal__title, only non-inherited props needed */
#dresium-insufficient-credits-modal .dresium-main-modal__title {
    /* font-size: 28px !important; - inherited from .dresium-main-modal__title */
    /* font-weight: 700 !important; - inherited from .dresium-main-modal__title */
    /* color: #212529 !important; - inherited from .dresium-main-modal__title */
    /* margin: 0; - inherited from .dresium-main-modal__title */
    /* letter-spacing: -0.5px; - inherited from .dresium-main-modal__title */
    /* border-bottom: 1px solid #f4f5f9; - inherited from .dresium-main-modal__title */
    /* padding-bottom: 6px; - inherited from .dresium-main-modal__title */
    /* margin-bottom: 6px; - inherited from .dresium-main-modal__title */
}

/* Subtitle override - inherits from .dresium-main-modal__subtitle */
#dresium-insufficient-credits-modal .dresium-main-modal__subtitle {
    /* font-size: 15px !important; - inherited from .dresium-main-modal__subtitle */
    /* color: #7A7A7A !important; - inherited from .dresium-main-modal__subtitle */
    /* margin: 0; - inherited from .dresium-main-modal__subtitle */
    /* line-height: 1.6 !important; - inherited from .dresium-main-modal__subtitle */
}

/* Specific spacing for subtitle after title - inherits from h2 + p rule */
#dresium-insufficient-credits-modal h2.dresium-main-modal__title + p.dresium-main-modal__subtitle {
    /* margin-block-start: 6px !important; - inherited from h2 + p rule */
    /* padding-top: 6px !important; - inherited from h2 + p rule */
}

/* Section body - flex column for proper layout */
.dresium-main-modal--credits-only .dresium-main-modal__section-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
}

/* Pricing grid - same as main modal */
.dresium-main-modal--credits-only .dresium-pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Pricing card typography - ensure consistency */
.dresium-main-modal--credits-only .dresium-pricing-card__title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

.dresium-main-modal--credits-only .dresium-pricing-card__description {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: #868E96;
}

.dresium-main-modal--credits-only .dresium-pricing-card__amount {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #212529;
}

.dresium-main-modal--credits-only .dresium-pricing-card__info {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: #868E96;
}

/* Pricing footer - same as main modal */
.dresium-main-modal--credits-only .dresium-pricing-footer {
    margin-top: auto;
    padding-top: 16px;
}

.dresium-main-modal--credits-only .dresium-pricing-footer__note {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: #868E96;
    text-align: center;
    margin: 0;
}
