/**
 * Mobile Sticker Designer Styles
 * 
 * Touch-optimized interface for mobile devices (≤768px)
 * 
 * @package CustomStickerDesigner
 * @since 1.20.0
 */

/* ========================================
   Base Styles & Layout
   ======================================== */

.csd-mobile-designer {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    z-index: 99999;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   Canvas Area
   ======================================== */

.csd-mobile-canvas-area {
    flex: 1;
    min-height: 200px;
    max-height: 320px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.csd-mobile-canvas-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.csd-mobile-sticker-shape {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    /* Default size - will be updated by JS */
    width: 200px;
    height: 150px;
    border-radius: 8px;
}

/* Shape variations */
.csd-mobile-sticker-shape.shape-circle {
    border-radius: 50%;
}

.csd-mobile-sticker-shape.shape-square {
    border-radius: 8px;
}

.csd-mobile-sticker-shape.shape-oval {
    border-radius: 50%;
}

.csd-mobile-sticker-shape.shape-rectangle {
    border-radius: 8px;
}

/* Canvas layers */
.csd-mobile-image-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.csd-mobile-image-layer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    display: block;
}

.csd-mobile-image-layer.selected {
    outline: 3px solid #007AFF;
    outline-offset: 3px;
}

.csd-mobile-text-layer {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 6px 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    text-align: center;
    white-space: nowrap;
    z-index: 3;
}

.csd-mobile-text-layer.selected {
    outline: 3px solid #007AFF;
    outline-offset: 3px;
}

.csd-mobile-empty-state {
    color: #999;
    font-size: 15px;
    text-align: center;
    z-index: 1;
}

.csd-mobile-empty-state {
    color: #999;
    font-size: 15px;
    text-align: center;
}

.csd-mobile-empty-state p {
    margin: 0;
}

/* ========================================
   Preview Area
   ======================================== */

.csd-mobile-preview-area {
    flex: 1;
    min-height: 200px;
    max-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f5f5f5;
    transition: background 0.3s ease;
}

.csd-mobile-preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    transition: all 0.15s ease;
}

.csd-mobile-preview-nav:hover,
.csd-mobile-preview-nav:active {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.csd-mobile-preview-nav svg {
    color: #333;
    width: 24px;
    height: 24px;
}

.csd-mobile-preview-prev {
    left: 12px;
}

.csd-mobile-preview-next {
    right: 12px;
}

.csd-mobile-mockup-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.csd-mobile-mockup-wrapper {
    position: relative;
    display: inline-block;
}

.csd-mobile-mockup-image {
    display: block;
    max-width: 280px;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.csd-mobile-mockup-sticker {
    position: absolute;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.csd-mobile-mockup-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.csd-mobile-preview-dots {
    display: none;
}

.csd-mobile-preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    padding: 0;
}

.csd-mobile-preview-dot.active {
    background: #007AFF;
    width: 20px;
    border-radius: 4px;
}

/* ========================================
   Info Bar
   ======================================== */

.csd-mobile-info-bar {
    height: 40px;
    min-height: 40px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.csd-mobile-size-info {
    color: #666;
    font-weight: 500;
}

.csd-mobile-price-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.csd-mobile-total-price {
    font-weight: 600;
    color: #007AFF;
    font-size: 16px;
}

.csd-mobile-unit-price {
    color: #999;
    font-size: 12px;
}

/* ========================================
   Control Panel
   ======================================== */

.csd-mobile-control-panel {
    flex: 1;
    min-height: 180px;
    max-height: 240px;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.csd-mobile-panel {
    display: none;
}

.csd-mobile-panel.active {
    display: block;
}

.csd-mobile-panel-content {
    padding: 10px 12px;
}

/* Shape Grid */
.csd-mobile-shape-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.csd-mobile-shape-btn {
    height: 70px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 8px 4px;
}

.csd-mobile-shape-btn:active {
    transform: scale(0.95);
}

.csd-mobile-shape-btn.active {
    border-color: #007AFF;
    background: #f0f7ff;
}

.csd-mobile-shape-icon {
    font-size: 24px;
}

.csd-mobile-shape-label {
    font-size: 12px;
    color: #666;
}

.csd-mobile-shape-btn.active .csd-mobile-shape-label {
    color: #007AFF;
}

/* Size Grid */
.csd-mobile-section-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.csd-mobile-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.csd-mobile-size-btn {
    min-width: 54px;
    height: 42px;
    padding: 0 14px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #333;
}

.csd-mobile-size-btn:active {
    transform: scale(0.95);
}

.csd-mobile-size-btn.active {
    border-color: #007AFF;
    background: #007AFF;
    color: #fff;
}

/* Upload Button */
.csd-mobile-upload-btn {
    width: 100%;
    height: 90px;
    border: 2px dashed #007AFF;
    background: #f0f7ff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    color: #007AFF;
    font-weight: 600;
    transition: all 0.15s ease;
}

.csd-mobile-upload-btn:active {
    transform: scale(0.98);
    background: #e0efff;
}

.csd-mobile-upload-btn svg {
    color: #007AFF;
}

.csd-mobile-text-icon {
    font-size: 32px;
    font-weight: bold;
}

.csd-mobile-hint {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 12px 0 0 0;
}

/* Secondary Button */
.csd-mobile-secondary-btn {
    width: 100%;
    height: 48px;
    border: 2px solid #007AFF;
    background: #fff;
    color: #007AFF;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.csd-mobile-secondary-btn:active {
    background: #f0f7ff;
}

/* Selection Header */
.csd-mobile-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.csd-mobile-selection-header span {
    font-weight: 600;
    font-size: 15px;
}

.csd-mobile-close-btn,
.csd-mobile-delete-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.csd-mobile-close-btn:active,
.csd-mobile-delete-btn:active {
    transform: scale(0.9);
}

.csd-mobile-delete-btn {
    background: #ffebee;
}

/* Mode Toggle */
.csd-mobile-mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: center;
}

.csd-mobile-mode-btn {
    flex: 1;
    height: 44px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 11px;
    color: #666;
}

/* Delete button in mode toggle row */
.csd-mobile-mode-toggle .csd-mobile-delete-btn {
    flex: 0 0 auto;
    height: 44px;
    width: 44px;
    min-width: 44px;
    border-radius: 10px;
}

.csd-mobile-mode-btn:active {
    transform: scale(0.95);
}

.csd-mobile-mode-btn.active {
    border-color: #007AFF;
    background: #f0f7ff;
    color: #007AFF;
}

.csd-mobile-mode-icon {
    font-size: 16px;
}

/* Rotate Row */
.csd-mobile-rotate-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.csd-mobile-rotate-row label {
    font-size: 13px;
    color: #666;
    min-width: 50px;
}

.csd-mobile-rotate-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #333;
}

.csd-mobile-rotate-btn:hover,
.csd-mobile-rotate-btn:active {
    border-color: #007AFF;
    background: #f0f7ff;
    color: #007AFF;
}

.csd-mobile-rotate-btn:active {
    transform: scale(0.95);
}

.csd-mobile-rotate-btn svg {
    width: 16px;
    height: 16px;
}

.csd-mobile-rotation-display {
    font-size: 14px;
    font-weight: 600;
    color: #007AFF;
    min-width: 40px;
}

/* Text Input */
.csd-mobile-text-input {
    width: 100%;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 15px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.csd-mobile-text-input:focus {
    border-color: #007AFF;
    outline: none;
}

/* Control Rows */
.csd-mobile-control-row {
    margin-bottom: 10px;
}

.csd-mobile-control-row label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

/* Inline control row variant */
.csd-mobile-control-row-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.csd-mobile-control-row-inline label {
    display: inline;
    margin-bottom: 0;
    white-space: nowrap;
    min-width: 40px;
}

.csd-mobile-control-row-inline .csd-mobile-font-select {
    flex: 1;
}

.csd-mobile-font-select {
    width: 100%;
    height: 38px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    background: #fff;
}

/* Color Swatches */
.csd-mobile-color-swatches {
    display: flex;
    gap: 8px;
}

.csd-mobile-color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.15s ease;
    padding: 0;
}

.csd-mobile-color-swatch:active {
    transform: scale(0.9);
}

.csd-mobile-color-swatch.active {
    border-color: #007AFF;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #007AFF;
}

/* Preview Hint */
.csd-mobile-preview-hint {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 0 0 16px 0;
    padding: 14px;
    background: #f5f5f5;
    border-radius: 10px;
}

/* Preview Quantity */
.csd-mobile-preview-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 10px;
}

.csd-mobile-preview-quantity label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.csd-mobile-preview-qty {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Primary Button */
.csd-mobile-primary-btn {
    width: 100%;
    height: 54px;
    border: none;
    background: #007AFF;
    color: #fff;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.csd-mobile-primary-btn:active {
    background: #0056b3;
    transform: scale(0.98);
}

/* ========================================
   Tab Bar
   ======================================== */

.csd-mobile-tab-bar {
    height: auto;
    min-height: 80px;
    background: #f8f8f8;
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
    border-top: 1px solid #e0e0e0;
}

.csd-mobile-tab {
    flex: 1;
    min-height: 58px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    color: #666;
    transition: all 0.15s ease;
    padding: 8px 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.csd-mobile-tab:active {
    background: #f0f0f0;
    transform: scale(0.97);
}

.csd-mobile-tab.active {
    color: #007AFF;
    border-color: #007AFF;
    background: #f0f7ff;
}

.csd-mobile-tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csd-mobile-tab-icon svg {
    width: 24px;
    height: 24px;
}

.csd-mobile-tab-label {
    font-size: 11px;
    font-weight: 500;
}

.csd-mobile-tab-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 24px);
    background: #34c759;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ========================================
   Cart Sheet (Modal)
   ======================================== */

.csd-mobile-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    z-index: 100000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.csd-mobile-cart-sheet {
    background: #fff;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0));
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.csd-mobile-sheet-handle {
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 0 auto 16px;
}

.csd-mobile-cart-sheet h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
}

.csd-mobile-cart-summary {
    color: #666;
    margin: 0 0 20px;
    font-size: 15px;
}

.csd-mobile-quantity-section {
    margin-bottom: 20px;
}

.csd-mobile-quantity-section label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.csd-mobile-quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
}

.csd-mobile-qty-btn {
    width: 60px;
    height: 60px;
    border: 2px solid #e0e0e0;
    background: #fff;
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    color: #007AFF;
}

.csd-mobile-qty-btn:first-child {
    border-radius: 14px 0 0 14px;
    border-right: 1px solid #e0e0e0;
}

.csd-mobile-qty-btn:last-child {
    border-radius: 0 14px 14px 0;
    border-left: 1px solid #e0e0e0;
}

.csd-mobile-qty-btn:active {
    background: #007AFF;
    color: #fff;
}

.csd-mobile-qty-input {
    width: 90px;
    height: 60px;
    border: 2px solid #e0e0e0;
    border-left: none;
    border-right: none;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    background: #fff;
    -moz-appearance: textfield;
}

.csd-mobile-qty-input::-webkit-outer-spin-button,
.csd-mobile-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.csd-mobile-price-summary {
    background: #f5f5f5;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.csd-mobile-price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
    color: #666;
}

.csd-mobile-price-row.csd-mobile-price-total {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
    padding-top: 14px;
}

.csd-mobile-cart-btn {
    width: 100%;
    height: 58px;
    border: none;
    background: #34c759;
    color: #fff;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.csd-mobile-cart-btn:active {
    background: #2da44e;
    transform: scale(0.98);
}

/* ========================================
   Loading Overlay
   ======================================== */

.csd-mobile-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

.csd-mobile-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: #007AFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.csd-mobile-loading-overlay p {
    margin-top: 16px;
    font-size: 16px;
    color: #666;
}

/* ========================================
   DPI Warning
   ======================================== */

.csd-mobile-dpi-warning {
    position: fixed;
    bottom: 90px;
    left: 16px;
    right: 16px;
    z-index: 99999;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.csd-mobile-warning-content {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.csd-mobile-warning-icon {
    font-size: 24px;
}

.csd-mobile-warning-content p {
    margin: 0;
    font-size: 14px;
    color: #856404;
}

.csd-mobile-warning-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #856404;
    cursor: pointer;
}

.csd-mobile-warning-checkbox input {
    width: 20px;
    height: 20px;
    margin: 0;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

/* Very small screens */
@media screen and (max-height: 600px) {
    .csd-mobile-canvas-area,
    .csd-mobile-preview-area {
        min-height: 160px;
        max-height: 220px;
    }
    
    .csd-mobile-control-panel {
        min-height: 150px;
    }
}

/* Larger phones */
@media screen and (min-height: 800px) {
    .csd-mobile-canvas-area,
    .csd-mobile-preview-area {
        max-height: 380px;
    }
    
    .csd-mobile-control-panel {
        max-height: 280px;
    }
}

/* Landscape orientation */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .csd-mobile-canvas-area,
    .csd-mobile-preview-area {
        min-height: 120px;
        max-height: 180px;
    }
    
    .csd-mobile-info-bar {
        height: 32px;
        min-height: 32px;
    }
    
    .csd-mobile-control-panel {
        min-height: 100px;
        max-height: 150px;
    }
    
    .csd-mobile-tab-bar {
        height: 50px;
        min-height: 50px;
    }
}

/* ========================================
   Modals
   ======================================== */

.csd-mobile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: csd-modal-fade-in 0.2s ease;
}

@keyframes csd-modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.csd-mobile-modal-content {
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 24px 20px;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    max-width: 500px;
    animation: csd-modal-slide-up 0.3s ease;
}

@keyframes csd-modal-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.csd-mobile-modal-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #333;
}

.csd-mobile-modal-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.csd-mobile-modal-content p {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.csd-mobile-modal-content ul {
    margin: 0 0 16px 0;
    padding: 0 0 0 20px;
}

.csd-mobile-modal-content li {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Terms sections */
.csd-mobile-terms-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.csd-mobile-terms-section:last-of-type {
    border-bottom: none;
    margin-bottom: 16px;
}

/* Checkbox styling */
.csd-mobile-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 12px;
}

.csd-mobile-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #2271b1;
}

.csd-mobile-checkbox span {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* Modal buttons */
.csd-mobile-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.csd-mobile-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.csd-mobile-btn-primary {
    background: #2271b1;
    color: #fff;
}

.csd-mobile-btn-primary:hover {
    background: #135e96;
}

.csd-mobile-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.csd-mobile-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.csd-mobile-btn-secondary:hover {
    background: #e0e0e0;
}

/* Moderation modal */
.csd-mobile-moderation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.csd-mobile-moderation-icon {
    font-size: 32px;
}

.csd-mobile-moderation-header h2 {
    margin: 0;
}

.csd-mobile-moderation-reasons {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 12px 12px 32px;
    margin: 16px 0;
}

.csd-mobile-moderation-reasons li {
    color: #856404;
    margin-bottom: 8px;
}

.csd-mobile-moderation-reasons li:last-child {
    margin-bottom: 0;
}

.csd-mobile-moderation-note {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

/* Review request form */
.csd-mobile-form-group {
    margin-bottom: 16px;
}

.csd-mobile-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.csd-mobile-form-group input[type="text"],
.csd-mobile-form-group input[type="email"],
.csd-mobile-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

.csd-mobile-form-group input:focus,
.csd-mobile-form-group textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.csd-mobile-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Success modal */
.csd-mobile-modal-success {
    text-align: center;
    padding: 32px 24px;
}

.csd-mobile-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #d4edda;
    color: #28a745;
    border-radius: 50%;
    font-size: 32px;
    margin-bottom: 16px;
}

.csd-mobile-modal-success h2 {
    color: #28a745;
}

.csd-mobile-modal-success .csd-mobile-btn {
    max-width: 200px;
    margin: 20px auto 0;
}
