/* WSB PartsWeb Core - Frontend Styles */

.wsb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Forms */
.wsb-form {
    max-width: 800px;
    margin: 0 auto;
}

.wsb-form-group {
    margin-bottom: 20px;
}

.wsb-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.wsb-form-group input[type="text"],
.wsb-form-group input[type="email"],
.wsb-form-group input[type="number"],
.wsb-form-group input[type="tel"],
.wsb-form-group select,
.wsb-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.wsb-form-group input:focus,
.wsb-form-group select:focus,
.wsb-form-group textarea:focus {
    border-color: #c73e3a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(199, 62, 58, 0.15);
}

.wsb-form-row {
    display: flex;
    gap: 15px;
}

.wsb-form-half {
    flex: 1;
}

.wsb-form-third {
    flex: 1;
}

.wsb-input-prefix {
    display: flex;
    align-items: center;
}

.wsb-input-prefix span {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-right: none;
    padding: 10px 12px;
    border-radius: 4px 0 0 4px;
    font-weight: 600;
}

.wsb-input-prefix input {
    border-radius: 0 4px 4px 0 !important;
}

.wsb-form-actions {
    margin-top: 25px;
}

.wsb-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.wsb-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

/* Buttons */
.wsb-btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
    font-family: inherit;
}

.wsb-btn-primary {
    background: #c73e3a;
    color: #fff;
}

.wsb-btn-primary:hover {
    background: #a03230;
    color: #fff;
}

.wsb-btn-secondary {
    background: #666;
    color: #fff;
}

.wsb-btn-secondary:hover {
    background: #555;
}

.wsb-btn-outline {
    background: transparent;
    border: 2px solid #c73e3a;
    color: #c73e3a;
}

.wsb-btn-outline:hover {
    background: #c73e3a;
    color: #fff;
}

/* Notices */
.wsb-notice {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.wsb-notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wsb-notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.wsb-notice-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.wsb-notice-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Upload areas */
.wsb-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s;
}

.wsb-upload-area:hover,
.wsb-upload-area.dragover {
    border-color: #c73e3a;
}

.wsb-upload-hint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 8px;
}

.wsb-upload-preview {
    margin: 10px 0;
}

.wsb-upload-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
}

/* Image upload grid */
.wsb-image-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
}

.wsb-image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.wsb-image-thumb {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.wsb-image-thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.wsb-remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #c73e3a;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 22px;
    cursor: pointer;
}

.wsb-upload-drop {
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

.wsb-upload-drop p {
    color: #999;
    margin-top: 8px;
}

/* Spinner */
.wsb-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #ddd;
    border-top-color: #c73e3a;
    border-radius: 50%;
    animation: wsb-spin 0.7s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

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

/* Verification page */
.wsb-verification-page {
    max-width: 600px;
    margin: 40px auto;
}

.wsb-verification-page h1 {
    margin-bottom: 15px;
}

/* Listing form page */
.wsb-listing-form-page {
    max-width: 800px;
    margin: 20px auto;
}

/* Seller application page */
.wsb-seller-application-page {
    max-width: 700px;
    margin: 20px auto;
}

/* Sold badge */
.wsb-sold-badge {
    display: inline-block;
    background: #c73e3a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.wsb-sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wsb-sold-overlay span {
    background: #c73e3a;
    color: #fff;
    padding: 8px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(-15deg);
}

/* Toggle sold button */
.wsb-toggle-sold {
    margin-top: 10px;
}

/* Auth pages (login, register, lost-password) */
.wsb-auth-page {
    max-width: 480px;
    margin: 40px auto;
}

.wsb-auth-page h1 {
    margin-bottom: 8px;
}

.wsb-auth-subtitle {
    color: #666;
    margin-bottom: 25px;
}

.wsb-auth-form {
    max-width: 100%;
}

.wsb-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.wsb-auth-links {
    text-align: center;
    margin-top: 15px;
}

.wsb-auth-links a {
    color: #c73e3a;
}

.wsb-auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

.wsb-auth-footer a {
    color: #c73e3a;
    font-weight: 500;
}

.wsb-field-hint {
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

/* Seller phone on listing detail */
.seller-phone {
    margin: 10px 0;
    font-size: 0.95rem;
}

.seller-phone .phone-masked {
    color: #666;
    letter-spacing: 1px;
}

.seller-phone .phone-unlock {
    display: block;
    font-size: 0.8rem;
    color: #c73e3a;
    margin-top: 3px;
}

.seller-listing-count {
    font-size: 0.85rem;
    color: #666;
    margin: 5px 0;
}

.listing-posted-date {
    font-size: 0.85rem;
    color: #999;
    margin-top: 8px;
}

/* Account page */
.wsb-account-page {
    max-width: 900px;
    margin: 20px auto;
    padding-bottom: 40px;
}

.wsb-account-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #ddd;
    margin-bottom: 24px;
}

.wsb-tab {
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.wsb-tab:hover {
    color: #c73e3a;
}

.wsb-tab-active {
    color: #c73e3a;
    border-bottom-color: #c73e3a;
}

.wsb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ── Profile Header ───────────────────────── */
.wsb-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.wsb-initials-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #c73e3a;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.wsb-profile-info {
    flex-grow: 1;
    min-width: 0;
}

.wsb-profile-info h1 {
    margin: 0 0 2px;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.wsb-profile-email {
    margin: 0 0 8px;
    color: #666;
    font-size: 0.9rem;
}

.wsb-profile-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wsb-role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wsb-role-admin { background: #dbeafe; color: #1e40af; }
.wsb-role-premium { background: #fef3c7; color: #92400e; }
.wsb-role-seller { background: #d1fae5; color: #065f46; }
.wsb-role-verified { background: #e0e7ff; color: #3730a3; }
.wsb-role-member { background: #e9ecef; color: #495057; }

.wsb-profile-joined {
    font-size: 0.82rem;
    color: #888;
}

.wsb-profile-action {
    flex-shrink: 0;
}

/* ── Card Grid ────────────────────────────── */
.wsb-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.wsb-account-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.wsb-account-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wsb-account-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.wsb-account-card h3 svg {
    color: #888;
    flex-shrink: 0;
}

.wsb-card-body {
    padding: 16px 20px;
}

.wsb-detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
    align-items: center;
}

.wsb-detail-row:last-child {
    border-bottom: none;
}

.wsb-detail-label {
    width: 120px;
    flex-shrink: 0;
    font-weight: 500;
    color: #888;
    font-size: 0.82rem;
}

.wsb-detail-value {
    color: #1a1a1a;
}

.wsb-card-description {
    color: #666;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 14px;
}

.wsb-card-action {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.wsb-btn-block {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* ── Badges (shared) ─────────────────────── */
.wsb-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wsb-badge-success { background: #d4edda; color: #155724; }
.wsb-badge-warning { background: #fff3cd; color: #856404; }
.wsb-badge-error { background: #f8d7da; color: #721c24; }
.wsb-badge-neutral { background: #e9ecef; color: #495057; }

/* ── Wallet Card ──────────────────────────── */
.wsb-wallet-card-body {
    text-align: center;
}

.wsb-wallet-balance-display {
    margin-bottom: 16px;
}

.wsb-wallet-amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.wsb-wallet-label {
    display: block;
    color: #666;
    font-size: 0.82rem;
    margin-top: 4px;
}

.wsb-wallet-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ── Seller CTA ───────────────────────────── */
.wsb-seller-cta {
    background: #fff8f0;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 24px 28px;
}

.wsb-seller-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.wsb-seller-cta h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.wsb-seller-cta p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ── Old classes kept for edit/bookmarks pages ─ */
.wsb-account-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.wsb-account-section h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
}

.wsb-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.wsb-label {
    font-weight: 500;
    color: #666;
    min-width: 160px;
}

.wsb-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.wsb-info-item {
    display: flex;
    gap: 10px;
}

/* ── Account Page Responsive ──────────────── */
@media (max-width: 768px) {
    .wsb-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .wsb-profile-meta {
        justify-content: center;
    }

    .wsb-account-grid {
        grid-template-columns: 1fr;
    }

    .wsb-seller-cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile-required page */
.wsb-mobile-required {
    max-width: 600px;
    margin: 40px auto;
}

.wsb-mobile-notice {
    text-align: center;
    padding: 40px 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.wsb-mobile-icon {
    margin-bottom: 20px;
}

.wsb-mobile-notice h1 {
    margin-bottom: 15px;
    color: #1a1a1a;
}

.wsb-mobile-notice p {
    color: #555;
    margin-bottom: 12px;
    line-height: 1.6;
}

.wsb-mobile-hint {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #888;
}

.wsb-mobile-hint code {
    display: inline-block;
    margin-top: 5px;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    word-break: break-all;
}

/* Verification QR block (desktop) */
.wsb-verification-qr-block {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 30px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

.wsb-qr-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.wsb-verification-qr-block h2 {
    color: #856404;
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0 5px 0;
}

.wsb-verification-qr-block > .wsb-qr-content > p {
    color: #856404;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.wsb-qr-code {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: inline-block;
}

.wsb-qr-code img {
    display: block;
}

.wsb-qr-requirements {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: left;
    width: 100%;
    border: 1px solid #e9ecef;
}

.wsb-qr-requirements p {
    margin: 0 0 10px 0;
    color: #495057;
}

.wsb-qr-requirements ul {
    margin: 0;
    padding-left: 20px;
    color: #495057;
}

.wsb-qr-requirements li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.wsb-verification-qr-block .wsb-btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    margin-top: 10px;
}

.wsb-verification-qr-block .wsb-btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.wsb-verification-qr-block .wsb-btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#wsb-verify-link-status {
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

#wsb-verify-link-status.sending {
    background: #e7f3ff;
    color: #0056b3;
    border: 1px solid #b3d7ff;
}

#wsb-verify-link-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#wsb-verify-link-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Verification form wrapper — hidden by default, shown by JS on mobile */
.wsb-verification-form-wrap[data-mobile-only] {
    display: none;
    max-width: 600px;
    margin: 0 auto;
}

/* GPS warning */
.wsb-gps-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px 16px;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Camera viewfinder overlay */
.camera-viewfinder-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.camera-viewfinder-open {
    overflow: hidden;
}

.camera-viewfinder-video {
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: cover;
}

.camera-viewfinder-video.mirror {
    transform: scaleX(-1);
}

.camera-viewfinder-controls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.85);
}

.camera-shutter-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: transparent;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.camera-shutter-btn::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border-radius: 50%;
    background: #fff;
}

.camera-close-btn,
.camera-switch-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-close-btn:hover,
.camera-switch-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Camera capture buttons replacing file inputs */
.verification-capture-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #c73e3a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.verification-capture-btn:hover {
    background: #a03230;
}

.verification-preview-wrap {
    margin: 15px 0;
    text-align: center;
}

.verification-preview-wrap img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.verification-retake-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    background: #666;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.verification-retake-btn:hover {
    background: #555;
}

.verification-size-info {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Verification upload overlay (spinner during submit) */
.wsb-verification-upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.wsb-verification-upload-overlay .wsb-spinner {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

.wsb-verification-upload-overlay p {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .wsb-form-row {
        flex-direction: column;
        gap: 0;
    }

    .wsb-container {
        padding: 15px;
    }

    .wsb-image-previews {
        grid-template-columns: repeat(3, 1fr);
    }

    .wsb-verification-qr-block {
        padding: 20px;
    }
}

/* ============================================
   LISTING FORM — Location + Camera + Uploads
   ============================================ */

/* Location Permission Box */
.geo-permission-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
}

.geo-permission-box .geo-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.geo-permission-box .geo-desc {
    color: #555;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.btn-geo-enable {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-geo-enable:hover {
    background: #43a047;
}

.geo-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    padding: 1rem;
    border-radius: 6px;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.geo-error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    padding: 1rem;
    border-radius: 6px;
    color: #c62828;
    text-align: center;
    margin-bottom: 1rem;
}

/* Camera Button */
.mobile-camera-container {
    text-align: center;
    padding: 1rem 0;
}

.mobile-camera-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    background: #bbb;
    border-radius: 16px;
    cursor: not-allowed;
    border: none;
    transition: background 0.3s, transform 0.1s;
}

.mobile-camera-btn:not(.disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
}

.mobile-camera-btn:not(.disabled):active {
    transform: scale(0.95);
}

.mobile-camera-btn .camera-icon {
    font-size: 3.5rem;
    line-height: 1;
}

.mobile-camera-btn .camera-text {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.camera-help {
    color: #999;
    font-size: 0.9em;
    margin-top: 0.5rem;
}

/* Photo Previews */
.mobile-photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
    justify-content: center;
}

.photo-preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    padding: 0;
}

.photo-preview-item .photo-remove:hover {
    background: rgba(200, 35, 51, 1);
}

/* Upload Status */
.mobile-upload-status {
    margin-top: 0.5rem;
}

.upload-progress {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    color: #1565c0;
}

.upload-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    padding: 1rem;
    border-radius: 6px;
    color: #2e7d32;
    text-align: center;
}

.upload-error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    padding: 1rem;
    border-radius: 6px;
    color: #c62828;
    text-align: center;
}

/* Spinner */
.spinner-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #1565c0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Item Photos label styling */
#wsb-image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #fafafa;
}
