/* Customer Measurement Profiles - Public Styles */

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

/* Universal box-sizing */
.cmp-profile-form *,
.cmp-modal *,
.cmp-form-field *,
.measurement-input-wrapper *,
.form-control,
.unit-select,
.unit-display,
.btn,
.button {
    box-sizing: border-box;
}

/* ==========================================================================
   BODY MEASUREMENT PROFILES SECTION
   ========================================================================== */

.cmp-my-account-profiles {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cmp-body-measurement-section {
    margin-bottom: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dee2e6;
}

.cmp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.cmp-section-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.5em;
}

.cmp-section-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cmp-body-measurement-info {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    margin-bottom: 20px;
}

.cmp-body-measurement-info p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

.cmp-profile-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-count {
    background: #0073aa;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================================
   NO PROFILES STATE
   ========================================================================== */

.cmp-no-profiles {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.no-profiles-icon {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 20px;
}

.cmp-no-profiles h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.cmp-no-profiles p {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* ==========================================================================
   PROFILE CARDS GRID
   ========================================================================== */

.cmp-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cmp-profile-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.cmp-profile-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.body-measurement-card {
    border-left: 4px solid #28a745;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.profile-icon {
    background: #28a745;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.profile-name {
    flex: 1;
    margin: 0;
    font-size: 1.1em;
    color: #212529;
    font-weight: 600;
}

.profile-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ==========================================================================
   PROFILE META
   ========================================================================== */

.profile-meta {
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 14px;
}

.meta-value {
    color: #495057;
    font-size: 14px;
}

/* ==========================================================================
   PROFILE ACTIONS
   ========================================================================== */

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.primary-actions,
.secondary-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.primary-actions .button {
    flex: 1;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 13px;
    min-height: 32px;
}

.secondary-actions .button {
    flex: 1;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    font-size: 12px;
    min-height: 28px;
}

.button.button-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: white;
}

.button.button-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.button.button-link-delete {
    color: #dc3545;
    border-color: #dc3545;
}

.button.button-link-delete:hover {
    background: #dc3545;
    color: white;
}

/* ==========================================================================
   FORM CONTAINER
   ========================================================================== */

.cmp-form-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dee2e6;
}

.cmp-form-wrapper h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #495057;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.form-group label.required::after {
    content: ' *';
    color: #ef4444;
}

.form-actions,
.cmp-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.measurement-fields {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    box-sizing: border-box;
}

/* ==========================================================================
   LEGACY FORM STYLES (COMPATIBILITY)
   ========================================================================== */

.cmp-profile-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ==========================================================================
   FORM FIELD STYLES - ENHANCED FOR CONSISTENCY
   ========================================================================== */

.cmp-form-field {
    margin-bottom: 20px;
}

.cmp-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.cmp-form-field label .required {
    color: #e74c3c;
}

/* Enhanced input styles with consistent padding */
.cmp-form-field input[type="text"],
.cmp-form-field input[type="url"],
.cmp-form-field input[type="number"],
.cmp-form-field input[type="email"],
.cmp-form-field input[type="tel"],
.cmp-form-field input[type="password"],
.cmp-form-field input[type="date"],
.cmp-form-field select,
.cmp-form-field textarea {
    width: 100%;
    padding: 12px 16px !important; /* Force consistent padding */
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    min-height: 44px; /* Ensure minimum touch target size */
}

/* Specific styling for textarea */
.cmp-form-field textarea {
    min-height: 100px;
    resize: vertical;
}

/* Focus states */
.cmp-form-field input:focus,
.cmp-form-field select:focus,
.cmp-form-field textarea:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Hover states */
.cmp-form-field input:hover,
.cmp-form-field select:hover,
.cmp-form-field textarea:hover {
    border-color: #9ca3af !important;
}

/* Error states */
.cmp-form-field input.error,
.cmp-form-field select.error,
.cmp-form-field textarea.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

/* File upload specific error styles */
.cmp-form-field input[type="file"].error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.file-error {
    color: #ef4444 !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    display: block !important;
    font-weight: 500;
}

.file-help-text {
    color: #6b7280 !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    display: block !important;
    font-style: italic;
}

/* Description text */
.cmp-form-field .description {
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
    font-style: italic;
}

/* Override any theme styles that might interfere */
.cmp-form-field input[type="text"],
.cmp-form-field input[type="url"],
.cmp-form-field input[type="number"],
.cmp-form-field input[type="email"],
.cmp-form-field input[type="tel"],
.cmp-form-field input[type="password"],
.cmp-form-field input[type="date"],
.cmp-form-field select,
.cmp-form-field textarea {
    margin: 0 !important;
    box-shadow: none !important;
}

/* Ensure consistent styling in modals and other contexts */
.cmp-modal .cmp-form-field input,
.cmp-modal .cmp-form-field select,
.cmp-modal .cmp-form-field textarea,
#cmp-inline-form .cmp-form-field input,
#cmp-inline-form .cmp-form-field select,
#cmp-inline-form .cmp-form-field textarea {
    padding: 12px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   UNIT TOGGLE SYSTEM - ULTRA COMPACT
   Minimal, perfectly aligned design
   ========================================================================== */

.cmp-unit-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 8px;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: 16px;
    line-height: 1;
}

.cmp-unit-toggle label {
    display: none;
}

.unit-toggle-buttons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    gap: 2px;
    position: relative;
    box-sizing: border-box;
    box-shadow: none !important;
}

.unit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    margin: 0;
    border: 1px solid #3b82f6 !important;
    background: transparent;
    color: #9ca3af;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s ease;
    text-align: center;
    white-space: nowrap;
    min-width: 32px;
    height: 14px;
    line-height: 14px;
}

.unit-btn:hover:not(.active) {
    color: #6b7280;
    background: rgba(255, 255, 255, 0.7);
    border-color: #3b82f6 !important;
}

.unit-btn.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.unit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.unit-btn:active {
    transform: scale(0.97);
}

/* Compact variant (even smaller) */
.cmp-unit-toggle.compact {
    margin-bottom: 8px;
}

.cmp-unit-toggle.compact label {
    font-size: 9px;
}

.cmp-unit-toggle.compact .unit-btn {
    padding: 0 5px;
    font-size: 9px;
    min-width: 28px;
    height: 12px;
    line-height: 12px;
}

/* Right-aligned variant */
.cmp-unit-toggle.align-right {
    justify-content: flex-end;
    gap: 10px;
}

/* Inline variant (no label) */
.cmp-unit-toggle.inline-only {
    justify-content: flex-end;
    margin-bottom: 6px;
}

.cmp-unit-toggle.inline-only label {
    display: none;
}

/* Pill style (slightly larger) */
.cmp-unit-toggle.pill .unit-toggle-buttons {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.cmp-unit-toggle.pill .unit-btn {
    padding: 0 8px;
    font-size: 10px;
    min-width: 38px;
    height: 16px;
    line-height: 16px;
}

.cmp-unit-toggle.pill .unit-btn.active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Segmented Control (traditional) */
.cmp-unit-toggle.segmented .unit-toggle-buttons {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.cmp-unit-toggle.segmented .unit-btn {
    border-radius: 0;
    border: none !important;
    padding: 2px 10px;
    height: 22px;
}

.cmp-unit-toggle.segmented .unit-btn:first-child {
    border-radius: 3px 0 0 3px;
}

.cmp-unit-toggle.segmented .unit-btn:last-child {
    border-radius: 0 3px 3px 0;
    border-right: none;
}

.cmp-unit-toggle.segmented .unit-btn.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: none;
}

.cmp-unit-toggle.segmented .unit-btn:hover:not(.active) {
    background: #f9fafb;
    color: #3b82f6;
}

/* ==========================================================================
   MEASUREMENT INPUT SYSTEM
   ========================================================================== */

.measurement-input-wrapper {
    display: flex;
    gap: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 2px;
    transition: all 0.2s ease;
    width: 100%;
    position: relative;
    align-items: stretch;
    overflow: hidden;
}

.measurement-input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.measurement-input-wrapper:hover {
    border-color: #9ca3af;
}

.measurement-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    background: #ffffff;
    min-width: 0;
    height: 40px;
    align-self: center;
}

.measurement-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.measurement-input::placeholder {
    color: #9ca3af;
}

.unit-display {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
    max-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    height: 40px;
}

.unit-select {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
    max-width: 110px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%2364748b" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 24px;
    flex-shrink: 0;
    position: relative;
    height: 40px;
    text-align: left;
    align-self: center;
}

.unit-select:focus {
    outline: none;
    color: #374151;
    background: #ffffff;
    border-color: #3b82f6;
}

.unit-select:hover {
    color: #374151;
    background: #ffffff;
}

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */

.form-control {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.2s ease;
    background: #ffffff;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control:hover {
    border-color: #9ca3af;
}

.form-control::placeholder {
    color: #9ca3af;
}

/* ==========================================================================
   FORM FIELD TYPES
   ========================================================================== */

.cmp-radio-group,
.cmp-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cmp-radio-option,
.cmp-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cmp-radio-option input[type="radio"],
.cmp-checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.cmp-radio-option label,
.cmp-checkbox-group label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

/* ==========================================================================
   SUBMIT BUTTON
   ========================================================================== */

.cmp-submit-btn {
    background: #3b82f6;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.cmp-submit-btn:hover {
    background: #2563eb;
}

.cmp-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cmp-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.cmp-submit-btn.loading {
    position: relative;
    color: transparent;
}

.cmp-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   MODAL SYSTEM
   ========================================================================== */

.cmp-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease-out;
    overflow-y: auto;
    padding: 20px;
}

.cmp-modal.show {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
}

.cmp-modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
    margin: auto;
}

.cmp-modal-header {
    padding: 28px 32px 20px 32px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px 12px 0 0;
}

.cmp-modal-title {
    margin: 0;
    padding-bottom: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.cmp-modal-body {
    padding: 24px 32px 32px 32px;
}

.cmp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
}

.cmp-modal-close:hover {
    background: #e2e8f0;
    color: #475569;
}

/* ==========================================================================
   MEASUREMENT DISPLAY (View Modal)
   ========================================================================== */

.measurement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.measurement-item:last-child {
    border-bottom: none;
}

.measurement-label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.measurement-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.measurement-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.measurement-unit {
    background: #f8fafc;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.no-measurements {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-style: italic;
}

/* ==========================================================================
   ACTION BUTTONS
   ========================================================================== */

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.5;
}

.btn-primary {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-secondary {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    color: inherit;
    opacity: 0.8;
}

/* ==========================================================================
   MEASUREMENT DISPLAY (View Modal)
   ========================================================================== */

.measurement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.measurement-item:last-child {
    border-bottom: none;
}

.measurement-label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.measurement-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.measurement-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.measurement-unit {
    background: #f8fafc;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.no-measurements {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-style: italic;
}

.file-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #3b82f6;
    transition: color 0.2s ease;
}

.file-link:hover {
    color: #2563eb;
}

.file-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.file-icon {
    font-size: 24px;
}

.file-name {
    font-size: 14px;
}

.file-loading,
.file-error {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.file-error {
    color: #ef4444;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

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

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

.dashicons-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .cmp-profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .cmp-section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions,
    .cmp-form-actions {
        flex-direction: column;
    }
    
    .primary-actions,
    .secondary-actions {
        flex-direction: column;
    }
    
    /* Ultra Compact Unit Toggle - Mobile */
    .cmp-unit-toggle {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .cmp-unit-toggle label {
        display: none !important;
    }
    
    .unit-toggle-buttons {
        width: auto;
        flex-direction: row !important;
        display: inline-flex !important;
        height: 18px;
        align-items: center;
        justify-content: center;
    }
    
    .unit-btn {
        padding: 0 7px;
        font-size: 10px;
        min-width: 40px;
        height: 16px;
        line-height: 16px;
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: row !important;
    }
    
    /* Right-aligned variant stays inline on mobile */
    .cmp-unit-toggle.align-right {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .cmp-unit-toggle.align-right label {
        width: auto;
        margin-bottom: 0;
    }
    
    .unit-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 70px;
        max-width: 100px;
    }
}

@media (max-width: 640px) {
    .cmp-modal {
        padding: 12px;
    }
    
    .cmp-modal-content {
        border-radius: 12px;
        max-height: calc(100vh - 24px);
        margin: 12px auto;
    }
    
    .cmp-modal-header,
    .cmp-modal-body {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .unit-toggle-buttons {
        max-width: 180px;
    }
    
    .unit-btn {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 60px;
        max-width: 90px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .measurement-input-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .unit-display,
    .unit-select {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */

/* Focus indicators for keyboard navigation */
.cmp-form-field input:focus,
.cmp-form-field select:focus,
.cmp-form-field textarea:focus,
.unit-btn:focus,
.btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cmp-form-field input,
    .cmp-form-field select,
    .cmp-form-field textarea {
        border-width: 2px;
    }
    
    .unit-btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cmp-modal,
    .cmp-modal-content,
    .btn,
    .unit-btn,
    .cmp-form-field input,
    .cmp-form-field select,
    .cmp-form-field textarea {
        animation: none;
        transition: none;
    }
}

/* ==========================================================================
   FORM LAYOUT & SPACING ENHANCEMENTS
   ========================================================================== */

/* Form container styling */
.cmp-profile-form,
#cmp-inline-form,
.cmp-modal .cmp-form-content {
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
}

/* Form field spacing and alignment */
.cmp-form-field {
    margin-bottom: 24px;
    position: relative;
}

/* Label styling */
.cmp-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
}

/* Required field indicator */
.cmp-form-field label .required {
    color: #ef4444;
    margin-left: 2px;
}

/* Input group styling for measurement fields */
.measurement-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.measurement-input-wrapper .cmp-form-field {
    flex: 1;
    margin-bottom: 0;
}

.measurement-input-wrapper .unit-select,
.measurement-input-wrapper .unit-display {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 120px;
}

/* Button styling consistency */
.cmp-submit-btn,
#cmp-save-profile-btn,
.btn {
    padding: 12px 24px !important;
    border: 1px solid #3b82f6 !important;
    border-radius: 8px !important;
    background: #3b82f6 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    line-height: 1.5 !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
}

.cmp-submit-btn:hover,
#cmp-save-profile-btn:hover,
.btn:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
}

.cmp-submit-btn:active,
#cmp-save-profile-btn:active,
.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15) !important;
}

/* Disabled button state */
.cmp-submit-btn:disabled,
#cmp-save-profile-btn:disabled,
.btn:disabled {
    background: #9ca3af !important;
    border-color: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Form section styling */
.cmp-form-section {
    margin-bottom: 32px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.cmp-form-section h3 {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Keep measurement input wrapper horizontal on mobile */
    .measurement-input-wrapper {
        flex-direction: row !important;
        gap: 8px;
        align-items: center;
    }
    
    /* Keep unit select/display compact on mobile */
    .measurement-input-wrapper .unit-select,
    .measurement-input-wrapper .unit-display {
        width: auto !important;
        min-width: 80px !important;
        max-width: 110px !important;
        flex-shrink: 0 !important;
    }
    
    /* Ensure measurement input takes remaining space */
    .measurement-input-wrapper .measurement-input {
        flex: 1;
        min-width: 0;
    }
    
    .cmp-form-field {
        margin-bottom: 20px;
    }
    
    .cmp-submit-btn,
    #cmp-save-profile-btn,
    .btn {
        width: 100%;
        padding: 14px 24px !important;
    }
    
    /* Unit toggle buttons responsive */
    .unit-toggle-buttons {
        max-width: 240px; /* Increased for mobile to accommodate text */
    }
    
    .unit-btn {
        padding: 6px 10px; /* Reduced padding for mobile */
        font-size: 12px;
        min-width: 90px; /* Increased to accommodate "Centimeters" */
        max-width: 120px; /* Increased to accommodate "Centimeters" */
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .measurement-input-wrapper {
        gap: 6px;
    }
    
    .measurement-input-wrapper .unit-select,
    .measurement-input-wrapper .unit-display {
        min-width: 70px !important;
        max-width: 90px !important;
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .measurement-input {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    /* Unit toggle buttons for extra small screens */
    .unit-toggle-buttons {
        max-width: 200px;
    }
    
    .unit-btn {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 80px;
        max-width: 100px;
    }
}

/* CMP Public CSS */

.cmp-profile-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    background: #f9f9f9;
}

.cmp-profile-card h3 {
    margin-top: 0;
    color: #333;
}

.cmp-profile-actions {
    margin-top: 10px;
}

.cmp-profile-actions button {
    margin-right: 10px;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.cmp-profile-actions .view-profile {
    background-color: #0073aa;
    color: white;
}

.cmp-profile-actions .edit-profile {
    background-color: #00a0d2;
    color: white;
}

.cmp-profile-actions .delete-profile {
    background-color: #dc3232;
    color: white;
}

.cmp-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.cmp-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
}

.cmp-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cmp-modal-close:hover,
.cmp-modal-close:focus {
    color: black;
    text-decoration: none;
}

.profile-view-title {
    margin-top: 0;
}

.profile-measurements ul {
    list-style-type: none;
    padding: 0;
}

.profile-measurements li {
    padding: 5px 0;
}

/* Form styling */
.cmp-profile-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.cmp-profile-form h2 {
    margin-top: 0;
    color: #333;
}

.cmp-form-group {
    margin-bottom: 15px;
}

.cmp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.cmp-form-group input,
.cmp-form-group textarea,
.cmp-form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

.cmp-form-group input[type="file"] {
    width: auto;
}

.cmp-form-group .unit-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cmp-form-group .unit-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f0f0f0;
    cursor: pointer;
}

.cmp-form-group .unit-btn.active {
    background: #0073aa;
    color: white;
}

.cmp-form-group .unit-display {
    font-weight: bold;
}

.cmp-submit-btn {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
}

.cmp-submit-btn:hover {
    background-color: #005a87;
}

.cmp-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Error styling */
.error {
    border-color: #dc3232 !important;
    background-color: #ffeaea !important;
}

/* Unit toggle styling */
.cmp-unit-toggle {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.cmp-unit-toggle .unit-btn {
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f0f0f0;
    cursor: pointer;
}

.cmp-unit-toggle .unit-btn.active {
    background: #0073aa;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .cmp-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .cmp-profile-form {
        padding: 15px;
    }
}

/* Product page custom size form */
#cmp-custom-size-container {
    margin: 20px 0;
}

#cmp-inline-form {
    margin-top: 10px;
    padding: 15px;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    background: #f9f9f9;
}

/* Disabled add to cart button */
form.cart button[type="submit"]:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Custom message styling */
.cmp-custom-message {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin: 10px 0;
}

/* ==========================================================================
   FILE DISPLAY STYLES
   ========================================================================== */

/* File attachment wrapper */
.file-attachment {
    margin-top: 5px;
}

/* File display container */
.file-display {
    display: inline-block;
    max-width: 100%;
}

/* File link styling */
.file-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #007cba;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    transition: all 0.2s ease;
    max-width: 250px;
}

.file-link:hover {
    background: #f0f0f0;
    border-color: #007cba;
    text-decoration: none;
    color: #005a87;
}

/* File thumbnail for images */
.file-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

/* File icon for non-images */
.file-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

/* File name */
.file-name {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* Loading and error states */
.file-loading {
    color: #666;
    font-style: italic;
    font-size: 13px;
}

.file-error {
    color: #d63384;
    font-size: 13px;
    font-style: italic;
}


/* ==========================================================================
   MODERN MY ACCOUNT STYLES - MATCHING ADMIN DESIGN SYSTEM
   ========================================================================== */

/* Import design system variables */
.cmp-my-account-profiles {
    --cmp-primary: #3b82f6;
    --cmp-primary-hover: #2563eb;
    --cmp-primary-light: #eff6ff;
    --cmp-success: #10b981;
    --cmp-danger: #ef4444;
    --cmp-gray-50: #f9fafb;
    --cmp-gray-100: #f3f4f6;
    --cmp-gray-200: #e5e7eb;
    --cmp-gray-300: #d1d5db;
    --cmp-gray-600: #4b5563;
    --cmp-gray-700: #374151;
    --cmp-gray-900: #111827;
    --cmp-radius-md: 0.375rem;
    --cmp-radius-lg: 0.5rem;
    --cmp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --cmp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Modern Section Styling */
.cmp-my-account-profiles .cmp-body-measurement-section {
    background: white;
    border: 1px solid var(--cmp-gray-200);
    border-radius: var(--cmp-radius-lg);
    box-shadow: var(--cmp-shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.cmp-my-account-profiles .cmp-section-header h3 {
    color: var(--cmp-gray-900);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* Modern Button Styles */
.cmp-my-account-profiles .button-primary,
.cmp-my-account-profiles .btn-primary {
    background: var(--cmp-primary) !important;
    border-color: var(--cmp-primary) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: var(--cmp-radius-md) !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.cmp-my-account-profiles .button-primary:hover,
.cmp-my-account-profiles .btn-primary:hover {
    background: var(--cmp-primary-hover) !important;
    border-color: var(--cmp-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--cmp-shadow-md);
}

.cmp-my-account-profiles .button,
.cmp-my-account-profiles .btn {
    padding: 6px 12px !important;
    border-radius: var(--cmp-radius-md) !important;
    font-size: 0.875rem !important;
    transition: all 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Modern Profile Cards Grid */
.cmp-my-account-profiles .cmp-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cmp-my-account-profiles .cmp-profile-card {
    background: white;
    border: 1px solid var(--cmp-gray-200);
    border-radius: var(--cmp-radius-lg);
    padding: 20px;
    transition: all 0.2s;
    box-shadow: var(--cmp-shadow-sm);
}

.cmp-my-account-profiles .cmp-profile-card:hover {
    box-shadow: var(--cmp-shadow-md);
    border-color: var(--cmp-primary);
    transform: translateY(-2px);
}

.cmp-my-account-profiles .profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cmp-gray-200);
}

.cmp-my-account-profiles .profile-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--cmp-primary) 0%, #2563eb 100%);
    border-radius: var(--cmp-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.cmp-my-account-profiles .profile-name {
    flex: 1;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cmp-gray-900);
}

.cmp-my-account-profiles .status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--cmp-success);
    color: white;
}

.cmp-my-account-profiles .profile-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.cmp-my-account-profiles .meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.cmp-my-account-profiles .meta-label {
    color: var(--cmp-gray-600);
    font-weight: 500;
}

.cmp-my-account-profiles .meta-value {
    color: var(--cmp-gray-900);
    font-weight: 600;
}

.cmp-my-account-profiles .profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cmp-my-account-profiles .primary-actions,
.cmp-my-account-profiles .secondary-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Modern Modal Styles */
.cmp-my-account-profiles .cmp-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.cmp-my-account-profiles .cmp-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmp-my-account-profiles .cmp-modal-content {
    background: white;
    border-radius: var(--cmp-radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.cmp-my-account-profiles .cmp-modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--cmp-gray-200);
    background: var(--cmp-gray-50);
}

.cmp-my-account-profiles .cmp-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cmp-gray-900);
}

.cmp-my-account-profiles .cmp-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--cmp-gray-600);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--cmp-radius-md);
    transition: all 0.2s;
}

.cmp-my-account-profiles .cmp-modal-close:hover {
    background: var(--cmp-gray-200);
    color: var(--cmp-gray-900);
}

.cmp-my-account-profiles .cmp-modal-body {
    padding: 24px;
}

/* Modern Measurements Display */
.cmp-my-account-profiles .measurement-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid var(--cmp-gray-200);
    transition: background 0.2s;
}

.cmp-my-account-profiles .measurement-item:hover {
    background: var(--cmp-gray-50);
}

.cmp-my-account-profiles .measurement-item:last-child {
    border-bottom: none;
}

.cmp-my-account-profiles .measurement-label {
    font-weight: 600;
    color: var(--cmp-gray-700);
    font-size: 0.875rem;
}

.cmp-my-account-profiles .measurement-value-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cmp-my-account-profiles .measurement-value {
    color: var(--cmp-gray-900);
    font-weight: 600;
    font-size: 0.875rem;
}

.cmp-my-account-profiles .measurement-unit {
    color: var(--cmp-gray-600);
    font-size: 0.75rem;
}

/* Modern Form Styles */
.cmp-my-account-profiles .form-group {
    margin-bottom: 20px;
}

.cmp-my-account-profiles .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--cmp-gray-700);
    font-size: 0.875rem;
}

.cmp-my-account-profiles .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--cmp-gray-300);
    border-radius: var(--cmp-radius-md);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.cmp-my-account-profiles .form-control:focus {
    outline: none;
    border-color: var(--cmp-primary);
    box-shadow: 0 0 0 3px var(--cmp-primary-light);
}

/* Modern Info Box */
.cmp-my-account-profiles .cmp-body-measurement-info {
    background: var(--cmp-primary-light);
    border-left: 4px solid var(--cmp-primary);
    padding: 16px;
    border-radius: var(--cmp-radius-md);
    margin-bottom: 20px;
}

.cmp-my-account-profiles .cmp-body-measurement-info p {
    margin: 0;
    color: var(--cmp-gray-700);
    line-height: 1.6;
}

/* Modern No Profiles State */
.cmp-my-account-profiles .cmp-no-profiles {
    text-align: center;
    padding: 60px 20px;
    background: var(--cmp-gray-50);
    border: 2px dashed var(--cmp-gray-300);
    border-radius: var(--cmp-radius-lg);
}

.cmp-my-account-profiles .no-profiles-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--cmp-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cmp-primary);
    font-size: 32px;
}

.cmp-my-account-profiles .cmp-no-profiles h4 {
    margin: 0 0 8px 0;
    color: var(--cmp-gray-900);
    font-size: 1.25rem;
}

.cmp-my-account-profiles .cmp-no-profiles p {
    margin: 0 0 20px 0;
    color: var(--cmp-gray-600);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cmp-my-account-profiles .cmp-profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .cmp-my-account-profiles .cmp-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cmp-my-account-profiles .profile-actions {
        width: 100%;
    }
    
    .cmp-my-account-profiles .primary-actions,
    .cmp-my-account-profiles .secondary-actions {
        width: 100%;
    }
    
    .cmp-my-account-profiles .button {
        flex: 1;
        justify-content: center;
    }
}


/* ==========================================================================
   EDIT MODAL SPECIFIC STYLES
   ========================================================================== */

/* Unit Toggle Styling */
.cmp-my-account-profiles .cmp-unit-toggle {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--cmp-gray-50);
    border-radius: var(--cmp-radius-md);
    border: 1px solid var(--cmp-gray-200);
}

.cmp-my-account-profiles .cmp-unit-toggle label {
    display: none !important;
}

.cmp-my-account-profiles .unit-toggle-buttons {
    display: flex;
    gap: 8px;
}

.cmp-my-account-profiles .unit-btn {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid var(--cmp-gray-300);
    background: white;
    color: var(--cmp-gray-700);
    border-radius: var(--cmp-radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cmp-my-account-profiles .unit-btn:hover {
    border-color: var(--cmp-primary);
    color: var(--cmp-primary);
}

.cmp-my-account-profiles .unit-btn.active {
    background: var(--cmp-primary);
    border-color: var(--cmp-primary);
    color: white;
}

/* Edit Profile Fields Container */
.cmp-my-account-profiles #edit-profile-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cmp-my-account-profiles #edit-profile-fields .form-group {
    margin-bottom: 0;
}

/* Modal Actions Footer */
.cmp-my-account-profiles .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--cmp-gray-200);
}

.cmp-my-account-profiles .btn {
    padding: 10px 20px !important;
    border-radius: var(--cmp-radius-md) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    border: 1px solid transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.cmp-my-account-profiles .btn-primary {
    background: var(--cmp-primary) !important;
    border-color: var(--cmp-primary) !important;
    color: white !important;
}

.cmp-my-account-profiles .btn-primary:hover {
    background: var(--cmp-primary-hover) !important;
    border-color: var(--cmp-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--cmp-shadow-md);
}

.cmp-my-account-profiles .btn-secondary {
    background: white !important;
    border-color: var(--cmp-gray-300) !important;
    color: var(--cmp-gray-700) !important;
}

.cmp-my-account-profiles .btn-secondary:hover {
    background: var(--cmp-gray-50) !important;
    border-color: var(--cmp-gray-400) !important;
}

/* Required Field Indicator */
.cmp-my-account-profiles .required::after {
    content: " *";
    color: var(--cmp-danger);
}

/* Form Field with Unit Display */
.cmp-my-account-profiles .field-with-unit {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cmp-my-account-profiles .field-with-unit .form-control {
    flex: 1;
}

.cmp-my-account-profiles .field-with-unit .unit-display {
    color: var(--cmp-gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* File Upload Fields */
.cmp-my-account-profiles .file-upload-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmp-my-account-profiles .file-upload-field input[type="file"] {
    padding: 8px;
    border: 1px solid var(--cmp-gray-300);
    border-radius: var(--cmp-radius-md);
    font-size: 0.875rem;
}

.cmp-my-account-profiles .file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--cmp-gray-50);
    border-radius: var(--cmp-radius-md);
    border: 1px solid var(--cmp-gray-200);
}

.cmp-my-account-profiles .file-preview img {
    max-width: 60px;
    max-height: 60px;
    border-radius: var(--cmp-radius-md);
    object-fit: cover;
}

.cmp-my-account-profiles .file-preview .file-info {
    flex: 1;
}

.cmp-my-account-profiles .file-preview .file-name {
    font-size: 0.875rem;
    color: var(--cmp-gray-900);
    font-weight: 500;
}

.cmp-my-account-profiles .file-preview .file-size {
    font-size: 0.75rem;
    color: var(--cmp-gray-600);
}

/* Textarea Styling */
.cmp-my-account-profiles textarea.form-control {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

/* Select Dropdown Styling */
.cmp-my-account-profiles select.form-control {
    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='%234b5563' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Checkbox and Radio Styling */
.cmp-my-account-profiles input[type="checkbox"],
.cmp-my-account-profiles input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.cmp-my-account-profiles .checkbox-group,
.cmp-my-account-profiles .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cmp-my-account-profiles .checkbox-label,
.cmp-my-account-profiles .radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--cmp-gray-700);
}

/* Help Text */
.cmp-my-account-profiles .help-text {
    font-size: 0.75rem;
    color: var(--cmp-gray-600);
    margin-top: 4px;
    font-style: italic;
}

/* Error State */
.cmp-my-account-profiles .form-control.error {
    border-color: var(--cmp-danger);
}

.cmp-my-account-profiles .error-message {
    color: var(--cmp-danger);
    font-size: 0.75rem;
    margin-top: 4px;
}

/* Loading State */
.cmp-my-account-profiles .btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.cmp-my-account-profiles .btn.loading::after {
    content: "...";
    animation: loading 1s infinite;
}

@keyframes loading {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .cmp-my-account-profiles .cmp-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .cmp-my-account-profiles .modal-actions {
        flex-direction: column;
    }
    
    .cmp-my-account-profiles .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cmp-my-account-profiles .unit-toggle-buttons {
        flex-direction: column;
    }
}
