/* ===== INITIAL UPLOAD SECTION (Clean Start) ===== */
  .initial-upload-section {
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 20px;
  }
  .initial-upload-section.has-letters {
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 16px 16px 0 0;
    margin-bottom: 0;
    padding: 16px 24px 20px;
    border-bottom: 1px dashed #e0e0e0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .initial-upload-section.has-letters h2,
  .initial-upload-section.has-letters .subtitle {
    display: none;
  }

  .initial-upload-section.has-letters .initial-dropzone {
    padding: 16px 20px;
    min-height: auto;
  }

  .initial-upload-section.has-letters .initial-dropzone .dropzone-icon {
    display: none;
  }

  .initial-upload-section.has-letters .initial-dropzone .dropzone-text {
    font-size: 14px;
  }

  .initial-upload-section.has-letters .initial-dropzone .dropzone-subtext {
    font-size: 12px;
    margin-top: 4px;
  }

  .initial-upload-section.has-letters .initial-url-section {
    margin-top: 12px;
  }

  .initial-upload-section.has-letters .initial-url-section .url-label {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .initial-upload-section.has-letters .initial-url-row input {
    font-size: 13px;
    padding: 8px 12px;
  }

  .initial-upload-section.has-letters .initial-url-row button {
    padding: 8px 16px;
    font-size: 13px;
  }

  .initial-upload-section.has-letters .initial-url-hint {
    display: none;
  }
  .initial-upload-section.hidden {
    display: none;
  }
    
  .initial-upload-section.has-letters.compact {
    padding: 15px 20px;
    border-radius: 0 0 16px 16px;
    margin: -20px -20px 20px -20px;
    border-bottom: 2px solid #e0e0e0;
  }
  
  .initial-upload-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
  }
  .initial-upload-section .subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 28px;
  }
  .initial-dropzone {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 48px 32px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
    margin-bottom: 20px;
  }
  .initial-dropzone:hover {
    border-color: #5e62b0;
    background: #f8f8ff;
  }
  .initial-dropzone.drag-over {
    border-color: #5e62b0;
    background: #f0f0ff;
    border-style: solid;
  }
  .initial-dropzone .dropzone-icon {
    font-size: 56px;
    margin-bottom: 16px;
  }
  .initial-dropzone .dropzone-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
  }
  .initial-dropzone .dropzone-subtext {
    color: #888;
    font-size: 14px;
  }
  .initial-url-section {
    padding-top: 20px;
    border-top: 1px dashed #ddd;
  }
  .initial-url-section .url-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
  }
  .initial-url-row {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
  }
  .initial-url-row input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
  }
  .initial-url-row input:focus {
    outline: none;
    border-color: #5e62b0;
  }
  .initial-url-row button {
    padding: 12px 20px;
    background: #5e62b0;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
  }
  .initial-url-row button:hover {
    background: #4a4e8c;
  }
  .initial-url-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
  }
  
  /* AI Settings Toggle (gear icon) */
  .ai-settings-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 20px;
    z-index: 100;
    transition: all 0.2s;
  }
  .ai-settings-toggle:hover {
    background: #f8f8ff;
    border-color: #5e62b0;
  }
  .ai-settings-toggle.ai-off {
    background: #f5f5f5;
    opacity: 0.7;
  }
  .ai-settings-popup {
    position: fixed;
    bottom: 74px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 101;
    display: none;
    min-width: 220px;
  }
  .ai-settings-popup.visible {
    display: block;
  }
  .ai-settings-popup .setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .ai-settings-popup .setting-label {
    font-size: 14px;
    color: #333;
  }
  .ai-settings-popup .setting-desc {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
  }
  /* Toggle switch */
  .toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .toggle-switch.on {
    background: #5e62b0;
  }
  .toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
  }
  .toggle-switch.on::after {
    transform: translateX(20px);
  }

  .letter-card {
    background: white;
    border-radius: 0;
    padding: 20px 24px;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
    position: relative;
  }
  .letter-card:last-child {
    border-radius: 0 0 16px 16px;
    border-bottom: none;
  }
  .letter-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    user-select: none;
  }
  .letter-card .card-header:hover {
    background: #fafafa;
    margin: -20px -24px 16px -24px;
    padding: 20px 24px 12px 24px;
    border-radius: 16px 16px 0 0;
  }
  .letter-card .card-header-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }
  .letter-card .card-title {
    font-weight: bold;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .letter-card .card-title .expand-indicator {
    font-size: 12px;
    color: #888;
    transition: transform 0.2s;
  }
  .letter-card.collapsed .card-title .expand-indicator {
    transform: rotate(-90deg);
  }
  .letter-card .card-price {
    font-weight: bold;
    font-size: 18px;
    color: #5e62b0;
  }
  .letter-card .card-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* Collapsed card summary (shown when collapsed, below title) */
  .letter-card .card-summary {
    display: none;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
  }
  .letter-card.collapsed .card-summary {
    display: block;
  }
  .letter-card .card-summary .summary-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
  }
  .letter-card .card-summary .summary-status.loading {
    background: #e8f4fd;
    color: #1976d2;
  }
  .letter-card .card-summary .summary-status.ready {
    background: #e8f5e9;
    color: #2e7d32;
  }
  .letter-card .card-summary .summary-status.needs-attention {
    background: #fff3e0;
    color: #e65100;
  }
  .letter-card .card-summary .summary-status.error {
    background: #ffebee;
    color: #c62828;
  }
  .letter-card .card-summary .summary-addresses {
    margin-left: 12px;
    color: #888;
  }

  /* Collapsed state hides body content */
  .letter-card.collapsed .card-body,
  .letter-card.collapsed .document-section,
  .letter-card.collapsed .addresses-row,
  .letter-card.collapsed .mail-class-section {
    display: none;
  }
  .letter-card.collapsed .card-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  .letter-card.collapsed .card-header:hover {
    margin-bottom: 0;
    padding-bottom: 20px;
  }

  /* Inline action area (for password, errors) - shown even when collapsed */
  .letter-card .card-inline-action {
    display: none;
    margin-top: 12px;
    padding: 12px 16px;
    background: #fff8e6;
    border: 1px solid #ffe0a3;
    border-radius: 8px;
  }
  .letter-card.collapsed .card-inline-action.visible {
    display: block;
  }
  .letter-card .card-inline-action.error {
    background: #ffebee;
    border-color: #ffcdd2;
  }
  .letter-card .card-inline-action .action-label {
    font-size: 13px;
    font-weight: 600;
    color: #8a6d00;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .letter-card .card-inline-action.error .action-label {
    color: #c62828;
  }
  .letter-card .card-inline-action .action-row {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .letter-card .card-inline-action .action-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
  }
  .letter-card .card-inline-action .action-row button {
    padding: 8px 16px;
    background: #5e62b0;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
  }
  .letter-card .card-inline-action .action-row button:hover {
    background: #4a4e8c;
  }

  /* Needs attention highlight */
  .letter-card.needs-attention {
    border-left: 4px solid #ff9800;
  }
  .letter-card.needs-attention .card-header {
    background: #fffaf0;
    margin: -20px -24px 16px -24px;
    padding: 20px 24px 12px 24px;
    border-radius: 16px 16px 0 0;
  }
  .letter-card.collapsed.needs-attention .card-header {
    margin-bottom: 0;
    padding-bottom: 20px;
    border-radius: 16px;
  }
  .letter-card .remove-btn {
    background: #fee;
    border: none;
    color: #c00;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
  }
  .letter-card .remove-btn:hover {
    background: #fcc;
  }
  
  .section-label {
    font-weight: bold;
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .section-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  .section-label-row .section-label {
    margin-bottom: 0;
  }
  .section-label-row .ai-toggle-link {
    font-size: 12px;
    color: #888;
  }
  .section-label-row .ai-toggle-link a {
    color: #5e62b0;
  }
  
  /* Optional field hint */
  .optional-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    margin-left: 4px;
  }
  .optional-hint:hover {
    background: #5e62b0;
    color: white;
  }
  
  /* Company / c/o field */
  .add-company-link {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
  }
  .add-company-link:hover {
    color: #5e62b0;
  }
  .company-field {
    margin-top: 6px;
  }
  .company-field input {
    font-size: 13px;
  }
  .company-hint {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 2px;
  }
  
  /* FROM dropdown row for Letter 2+ */
  .from-dropdown-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
  }
  .from-dropdown-row .from-address-select {
    flex: 1;
    font-size: 13px;
    padding: 8px 10px;
  }
  .btn-clear-small {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
  }
  .btn-clear-small:hover {
    background: #e0e0e0;
    color: #333;
  }
  
  /* Letter 2+ FROM fields (always visible now) */
  .letter2-from-fields {
    /* No display:none - always visible */
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .form-grid .full-width {
    grid-column: 1 / -1;
  }
  .form-grid .third {
    grid-column: span 1;
  }
  
  @media (max-width: 600px) {
    .form-grid {
      grid-template-columns: 1fr;
    }
    .form-grid .third {
      grid-column: span 1;
    }
  }
  
  .city-state-zip {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 8px;
  }
  @media (max-width: 600px) {
    .city-state-zip {
      grid-template-columns: 1fr 1fr;
    }
    .city-state-zip > *:first-child {
      grid-column: 1 / -1;
    }
  }
  
  /* ===== SIDE-BY-SIDE FROM/TO LAYOUT ===== */
  .addresses-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
  }
  @media (max-width: 768px) {
    .addresses-row {
      grid-template-columns: 1fr;
    }
  }
  
  .address-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e9ecef;
  }
  .address-box .section-label {
    margin-bottom: 12px;
  }
  
  /* ===== COLLAPSED FROM BAR (Letter 2+) ===== */
  .collapsed-from-bar {
    background: #f0f4ff;
    border: 1px solid #d0d8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
  }
  .collapsed-from-bar .collapsed-from-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .collapsed-from-bar .from-icon {
    font-size: 18px;
  }
  .collapsed-from-bar .from-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
  }
  .collapsed-from-bar .from-address-select {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #d0d8f0;
    border-radius: 6px;
    font-size: 13px;
    background: white;
  }
  .collapsed-from-bar .letter2-from-fields {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #d0d8f0;
  }
  .collapsed-from-bar.has-own-address {
    background: #f8f0ff;
    border-color: #d0c0e0;
  }
  
  /* ===== CHOOSE RECIPIENT PROMPT ===== */
  .choose-recipient-prompt {
    background: #e8f4fc;
    border: 1px solid #b8daef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: none;
  }
  .choose-recipient-prompt.visible {
    display: block;
  }
  .choose-recipient-prompt .prompt-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #0066cc;
    margin-bottom: 12px;
    font-size: 14px;
  }
  .choose-recipient-prompt .close-prompt {
    margin-left: auto;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
  }
  .choose-recipient-prompt .close-prompt:hover {
    color: #666;
  }
  .choose-recipient-prompt .prev-recipients-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .choose-recipient-prompt .prev-recipient-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all 0.2s;
  }
  .choose-recipient-prompt .prev-recipient-btn:hover {
    border-color: #5e62b0;
    background: #f8f9ff;
  }
  
  /* ===== ADDRESS CHOICE PROMPT (multiple files) ===== */
  .address-choice-prompt {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border: 1px solid #c0d0f0;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
  }
  .address-choice-prompt .prompt-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #5e62b0;
    margin-bottom: 16px;
    font-size: 15px;
  }
  .address-choice-prompt .close-prompt {
    margin-left: auto;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
  }
  .address-choice-prompt .close-prompt:hover {
    color: #666;
  }
  .address-choice-prompt .address-choice-section {
    margin-bottom: 16px;
  }
  .address-choice-prompt .choice-label {
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .address-choice-prompt .choice-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .address-choice-prompt .choice-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .address-choice-prompt .choice-option:hover {
    border-color: #5e62b0;
    background: #fafbff;
  }
  .address-choice-prompt .choice-option input[type="radio"] {
    margin-top: 3px;
  }
  .address-choice-prompt .choice-content {
    flex: 1;
  }
  .address-choice-prompt .choice-address {
    font-size: 14px;
    color: #333;
    font-weight: 500;
  }
  .address-choice-prompt .choice-source {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
  }
  .address-choice-prompt .prompt-actions {
    margin-top: 16px;
    text-align: right;
  }
  .address-choice-prompt .btn-use-selected {
    background: #5e62b0;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
  }
  .address-choice-prompt .btn-use-selected:hover {
    background: #4a4e8c;
  }
  
  /* ===== NEW ADDRESSES FOUND PROMPT ===== */
  .new-addresses-prompt {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
  }
  .new-addresses-prompt .prompt-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 14px;
    font-size: 15px;
  }
  .new-addresses-prompt .close-prompt {
    margin-left: auto;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
  }
  .new-addresses-prompt .new-addresses-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }
  .new-addresses-prompt .new-address-item {
    background: white;
    border-radius: 6px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
  }
  .new-addresses-prompt .new-address-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .new-addresses-prompt .new-address-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
  }
  .new-addresses-prompt .new-address-source {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
  }
  .new-addresses-prompt .prompt-suggestion {
    background: #fff;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
    border-left: 3px solid #ffc107;
  }
  .new-addresses-prompt .prompt-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .new-addresses-prompt .btn-create-separate {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
  }
  .new-addresses-prompt .btn-create-separate:hover {
    background: #218838;
  }
  .new-addresses-prompt .btn-update-current {
    background: #5e62b0;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
  }
  .new-addresses-prompt .btn-update-current:hover {
    background: #4a4e8c;
  }
  .new-addresses-prompt .btn-keep {
    background: white;
    color: #666;
    border: 1px solid #ccc;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
  }
  .new-addresses-prompt .btn-keep:hover {
    background: #f5f5f5;
  }
  
  /* ===== INLINE ADDRESS CHOICES (replaces form fields) ===== */
  .inline-address-choices {
    padding: 10px 0;
  }
  .inline-address-choices .choices-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #5e62b0;
    margin-bottom: 12px;
    font-size: 14px;
  }
  .inline-address-choices .choices-icon {
    font-size: 16px;
  }
  .inline-address-choices .choice-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
  }
  .inline-address-choices .choice-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8f9ff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .inline-address-choices .choice-option:hover {
    border-color: #5e62b0;
    background: #f0f4ff;
  }
  .inline-address-choices .choice-option.current-selection {
    border-color: #28a745;
    background: #f0fff4;
  }
  .inline-address-choices .choice-option input[type="radio"] {
    margin-top: 4px;
  }
  .inline-address-choices .choice-content {
    flex: 1;
    min-width: 0;
  }
  .inline-address-choices .choice-name {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-bottom: 2px;
  }
  .inline-address-choices .choice-address {
    font-size: 12px;
    color: #555;
  }
  .inline-address-choices .choice-source {
    font-size: 10px;
    color: #888;
    margin-top: 3px;
  }
  .inline-address-choices .choice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
  }
  .inline-address-choices .btn-apply-choice {
    background: #5e62b0;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
  }
  .inline-address-choices .btn-apply-choice:hover {
    background: #4a4e8c;
  }
  .inline-address-choices .btn-create-all-inline {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
  }
  .inline-address-choices .btn-create-all-inline:hover {
    background: #218838;
  }
  .inline-address-choices .enter-manually-link {
    font-size: 12px;
    color: #666;
    text-decoration: underline;
    margin-left: auto;
  }
  .inline-address-choices .enter-manually-link:hover {
    color: #5e62b0;
  }
  
  /* ===== BULK ACTION BAR (Create Letter for Each) ===== */
  .bulk-action-bar {
    margin-top: 16px;
    text-align: center;
  }
  .bulk-action-bar .btn-create-all-bulk {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  }
  .bulk-action-bar .btn-create-all-bulk:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    transform: translateY(-1px);
  }
  
  /* ===== UNIFIED ADDRESS PROMPT (fallback/old style) ===== */
  .unified-address-prompt {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border: 1px solid #c0d0f0;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
  }
  .unified-address-prompt .prompt-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #5e62b0;
    margin-bottom: 16px;
    font-size: 15px;
  }
  .unified-address-prompt .close-prompt {
    margin-left: auto;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
  }
  
  /* Grid layout for FROM (left) and TO (right) */
  .unified-address-prompt .address-choices-grid {
    display: grid;
    gap: 20px;
  }
  .unified-address-prompt .address-choices-grid.two-columns {
    grid-template-columns: 1fr 1fr;
  }
  .unified-address-prompt .address-choices-grid.one-column {
    grid-template-columns: 1fr;
  }
  @media (max-width: 768px) {
    .unified-address-prompt .address-choices-grid.two-columns {
      grid-template-columns: 1fr;
    }
  }
  
  .unified-address-prompt .address-choice-section {
    margin-bottom: 0;
  }
  .unified-address-prompt .choice-label {
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .unified-address-prompt .choice-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
  }
  .unified-address-prompt .choice-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .unified-address-prompt .choice-option:hover {
    border-color: #5e62b0;
    background: #fafbff;
  }
  .unified-address-prompt .choice-option.current-selection {
    border-color: #28a745;
    background: #f0fff4;
  }
  .unified-address-prompt .choice-option input[type="radio"] {
    margin-top: 3px;
  }
  .unified-address-prompt .choice-content {
    flex: 1;
  }
  .unified-address-prompt .choice-address {
    font-size: 14px;
    color: #333;
    font-weight: 500;
  }
  .unified-address-prompt .choice-source {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
  }
  .unified-address-prompt .prompt-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    justify-content: center;
  }
  .unified-address-prompt .btn-use-selected {
    background: #5e62b0;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
  }
  .unified-address-prompt .btn-use-selected:hover {
    background: #4a4e8c;
  }
  .unified-address-prompt .btn-create-all {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
  }
  .unified-address-prompt .btn-create-all:hover {
    background: #218838;
  }
  .unified-address-prompt .btn-keep {
    background: white;
    color: #666;
    border: 1px solid #ccc;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
  }
  .unified-address-prompt .btn-keep:hover {
    background: #f5f5f5;
  }
  
  /* Document section - NOW AT TOP */
  .document-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
  }
  
  /* AI Loading Indicator */
  .ai-loading-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 12px;
    display: none;
    align-items: center;
    gap: 12px;
    color: white;
    animation: pulse-glow 2s ease-in-out infinite;
  }
  .ai-loading-banner.visible {
    display: flex;
  }
  @keyframes pulse-glow {
    0%, 100% { box-shadow: 0 2px 12px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(102, 126, 234, 0.7); }
  }
  .ai-loading-banner .ai-icon {
    font-size: 20px;
    animation: sparkle 1.5s ease-in-out infinite;
  }
  @keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
  }
  .ai-loading-banner .ai-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
  }
  .ai-loading-banner .ai-progress {
    width: 120px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
  }
  .ai-loading-banner .ai-progress-bar {
    height: 100%;
    background: white;
    border-radius: 3px;
    animation: progress-slide 2s ease-in-out infinite;
  }
  @keyframes progress-slide {
    0% { width: 0%; margin-left: 0%; }
    50% { width: 60%; margin-left: 20%; }
    100% { width: 0%; margin-left: 100%; }
  }
  
  /* AI Detection Complete Banner */
  .ai-complete-banner {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    display: none;
    align-items: center;
    gap: 10px;
    color: #155724;
  }
  .ai-complete-banner.visible {
    display: flex;
  }
  .ai-complete-banner .close-banner {
    margin-left: auto;
    background: none;
    border: none;
    color: #155724;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
  }
  
  /* AI No Results Banner */
  .ai-no-results-banner {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    display: none;
    align-items: center;
    gap: 10px;
    color: #856404;
    font-size: 14px;
  }
  .ai-no-results-banner.visible {
    display: flex;
  }
  .ai-no-results-banner .close-banner {
    margin-left: auto;
    background: none;
    border: none;
    color: #856404;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
  }
  
  /* Address fields loading state */
  .address-section.ai-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
  }
  .address-section.ai-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
  }
  
  /* Multi-file upload dropzone */
  .file-dropzone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
  }
  .file-dropzone:hover {
    border-color: #5e62b0;
    background: #f8f8ff;
  }
  .file-dropzone.drag-over {
    border-color: #5e62b0;
    background: #f0f0ff;
    border-style: solid;
  }
  .file-dropzone.has-files {
    border-color: #28a745;
    background: #f0fff0;
    padding: 16px 20px;
  }
  .file-dropzone input[type="file"] {
    display: none;
  }
  .file-dropzone .dropzone-icon {
    font-size: 36px;
    margin-bottom: 8px;
  }
  .file-dropzone .dropzone-text {
    color: #666;
    font-size: 14px;
  }
  .file-dropzone .dropzone-subtext {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
  }
  
  /* File list */
  .file-list {
    margin-top: 12px;
  }
  .file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
  }
  .file-item:hover {
    background: #f0f1f2;
  }
  .file-item.dragging {
    opacity: 0.5;
    background: #e8e8e8;
  }
  .file-item.drag-over {
    border-color: #5e62b0;
    background: #f0f0ff;
  }
  .file-item .drag-handle {
    cursor: grab;
    color: #aaa;
    font-size: 16px;
    padding: 0 4px;
  }
  .file-item .drag-handle:active {
    cursor: grabbing;
  }
  .file-item .file-icon {
    font-size: 20px;
  }
  .file-item .file-info {
    flex: 1;
    min-width: 0;
  }
  .file-item .file-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .file-item .file-meta {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
  }
  .file-item .file-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
  }
  .file-item .file-status.ready {
    background: #d4edda;
    color: #155724;
  }
  .file-item .file-status.checking {
    background: #fff3cd;
    color: #856404;
  }
  .file-item .file-status.error {
    background: #f8d7da;
    color: #721c24;
  }
  .file-item .file-status.encrypted {
    background: #cce5ff;
    color: #004085;
  }
  .file-item .remove-file-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
  }
  .file-item .remove-file-btn:hover {
    background: #fee;
    color: #c00;
  }
  
  /* Password input for encrypted files */
  .file-password-input {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    padding-left: 40px;
  }
  .file-password-input input {
    flex: 1;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  .file-password-input button {
    padding: 6px 12px;
    font-size: 13px;
    background: #5e62b0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  .file-password-input button:hover {
    background: #4a4e8c;
  }
  
  /* File summary */
  .file-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 8px 12px;
    background: #e8f4fc;
    border-radius: 6px;
    font-size: 13px;
    color: #0066cc;
  }
  .file-summary .page-count {
    font-weight: 600;
  }
  
  /* URL input section */
  .url-input-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
  }
  .url-input-row {
    display: flex;
    gap: 8px;
  }
  .url-input-row input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
  }
  .url-input-row input:focus {
    outline: none;
    border-color: #5e62b0;
  }
  .url-input-row button {
    padding: 10px 16px;
    background: #5e62b0;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
  }
  .url-input-row button:hover {
    background: #4a4e8c;
  }
  .url-input-row button:disabled {
    background: #ccc;
    cursor: not-allowed;
  }
  .url-hint {
    font-size: 11px;
    color: #888;
    margin-top: 6px;
  }
  
  /* Permission error with retry */
  .permission-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 10px;
  }
  .permission-error .error-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
  }
  .permission-error .error-message {
    font-size: 13px;
    color: #856404;
    white-space: pre-line;
    margin-bottom: 10px;
  }
  .permission-error .retry-btn {
    background: #ffc107;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
  }
  .permission-error .retry-btn:hover {
    background: #e0a800;
  }

  .password-section {
    margin-top: 8px;
  }
  
  .creditbounce-doc {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #e8f4fc;
    border-radius: 8px;
    border: 1px solid #b8daef;
  }
  .creditbounce-doc .doc-icon {
    font-size: 28px;
  }
  .creditbounce-doc .doc-info {
    flex: 1;
  }
  .creditbounce-doc .doc-name {
    font-weight: bold;
    color: #333;
  }
  .creditbounce-doc .doc-source {
    font-size: 12px;
    color: #666;
  }
  .creditbounce-badge {
    background: #17a2b8;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
  }
  
  .add-letter-btn {
    background: rgba(255,255,255,0.2);
    border: 2px dashed rgba(255,255,255,0.5);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    color: white;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.2s ease;
    margin-bottom: 16px;
  }
  .add-letter-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
  }
  
  .total-section {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
  }
  .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }
  .total-amount {
    font-size: 28px;
    font-weight: bold;
    color: #333;
  }
  .total-count {
    color: #666;
    font-size: 14px;
  }
  
  #payment-element {
    margin-bottom: 16px;
  }
  
  /* Billing Address Section */
  .billing-address-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
  }
  .billing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
  .billing-full {
    grid-column: 1 / -1;
  }
  .billing-address-section .form-control,
  .billing-address-section .form-select {
    font-size: 13px;
    padding: 8px 10px;
  }
  .billing-address-section .form-label {
    font-size: 12px;
    margin-bottom: 4px;
  }
  
  #pay-button {
    background: #5e62b0;
    border: none;
    color: white;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  #pay-button:hover:not(:disabled) {
    background: #4a4e8c;
  }
  #pay-button:disabled {
    background: #ccc;
    cursor: not-allowed;
  }
  
  #letter-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
  }
  
  #payment-error {
    color: #dc3545;
    margin-top: 12px;
    font-size: 14px;
  }
  
  .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
  }
  
  .form-control, .form-select {
    font-size: 14px;
  }

  /* Missing required field highlight */
  .form-control.field-missing, .form-select.field-missing {
    background-color: #fff8e6;
    border-color: #f0c36d;
  }
  .form-control.field-missing:focus, .form-select.field-missing:focus {
    background-color: white;
    border-color: #80bdff;
  }
  
  .status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
  }
  .status-indicator.ready {
    background: #d4edda;
    color: #155724;
  }
  .status-indicator.incomplete {
    background: #fff3cd;
    color: #856404;
  }
  
  .documents-section {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
  }
  .documents-section h5 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
  }
  .documents-section p {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
  }
  
  /* Mail class selector */
  .mail-class-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
  }
  .mail-class-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
  }
  .mail-class-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mail-class-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .mail-class-option:hover {
    border-color: #5e62b0;
    background: #f8f9ff;
  }
  .mail-class-option.selected {
    border-color: #5e62b0;
    background: #e8f0ff;
  }
  .mail-class-option input[type="radio"] {
    margin: 0;
  }
  .mail-class-name {
    font-weight: 500;
    flex: 1;
  }
  .mail-class-price {
    font-size: 12px;
    color: #666;
  }
  .mail-class-price.has-cost {
    color: #28a745;
    font-weight: 600;
  }
  .mail-class-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    position: relative;
  }
  .mail-class-help:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    white-space: normal;
    width: 220px;
    text-align: left;
    z-index: 100;
    margin-bottom: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  
  /* Address section wrapper for loading state */
  .address-section {
    transition: opacity 0.3s ease;
  }
  
  /* AI badge inline */
  .ai-badge-inline {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: normal;
  }
  .ai-badge-inline button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    font-size: 12px;
  }
  .ai-badge-inline button:hover {
    color: #c00;
  }

  /* AI-inferred field indicator */
  .ai-inferred {
    border-color: #f59e0b !important;
    background-color: #fffbeb !important;
  }
  .inferred-indicator {
    color: #f59e0b;
    font-weight: bold;
    margin-left: 4px;
    cursor: help;
    font-size: 12px;
  }

  /* ===== STICKY SUMMARY BAR ===== */
  .sticky-summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    padding: 12px 24px;
    display: none; /* Hidden until letters exist */
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
  }
  .sticky-summary-bar.visible {
    display: flex;
  }
  .summary-info {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .summary-count {
    font-weight: 600;
    color: #333;
  }
  .summary-total {
    font-size: 20px;
    font-weight: 700;
    color: #5e62b0;
  }
  .summary-status {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .summary-status.ready {
    color: #2a9d2a;
  }
  .btn-pay-now {
    background: #5e62b0;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-pay-now:hover:not(:disabled) {
    background: #4a4e8c;
  }
  .btn-pay-now:disabled {
    background: #ccc;
    cursor: not-allowed;
  }
  @media (max-width: 600px) {
    .sticky-summary-bar {
      padding: 10px 16px;
    }
    .summary-info {
      gap: 12px;
      flex-wrap: wrap;
    }
    .summary-status {
      display: none;
    }
    .btn-pay-now {
      padding: 10px 20px;
      font-size: 14px;
    }
  }

/* ===== ADDRESS CONFIRMATION MODAL ===== */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.confirm-modal {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.confirm-modal h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #333;
}

.confirm-subtitle {
  color: #666;
  margin: 0 0 20px 0;
  font-size: 14px;
}

.confirm-addresses {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.confirm-letter {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.confirm-letter-header {
  background: #f5f5f5;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #e0e0e0;
}

.confirm-address-row {
  display: flex;
  align-items: stretch;
  padding: 12px;
  gap: 12px;
}

.confirm-address-box {
  flex: 1;
  background: #fafafa;
  border-radius: 8px;
  padding: 10px 12px;
}

.confirm-address-label {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.confirm-address-text {
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

.confirm-arrow {
  display: flex;
  align-items: center;
  font-size: 20px;
  color: #5e62b0;
  font-weight: bold;
}

.confirm-checkbox-row {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.confirm-checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #664d03;
  line-height: 1.4;
}

.confirm-checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.confirm-buttons .btn-cancel {
  padding: 10px 20px;
  border: 1px solid #ccc;
  background: white;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  color: #555;
}

.confirm-buttons .btn-cancel:hover {
  background: #f5f5f5;
}

.confirm-buttons .btn-confirm {
  padding: 10px 24px;
  background: #5e62b0;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.confirm-buttons .btn-confirm:hover:not(:disabled) {
  background: #4a4e8c;
}

.confirm-buttons .btn-confirm:disabled {
  background: #ccc;
  cursor: not-allowed;
}

@media (max-width: 500px) {
  .confirm-address-row {
    flex-direction: column;
  }
  .confirm-arrow {
    transform: rotate(90deg);
    justify-content: center;
    padding: 4px 0;
  }
}