/* =====================================================================
   WP Advert Manager – Main Stylesheet
   Matches the provided design screenshots exactly
   ===================================================================== */

:root {
  --wam-primary:       #1a3c34;
  --wam-primary-hover: #14302a;
  --wam-accent:        #22c55e;
  --wam-danger:        #ef4444;
  --wam-warning:       #f59e0b;
  --wam-border:        #e5e7eb;
  --wam-bg:            #ffffff;
  --wam-bg-page:       #f5f5f5;
  --wam-text:          #111827;
  --wam-text-muted:    #6b7280;
  --wam-radius:        12px;
  --wam-radius-sm:     8px;
  --wam-shadow:        0 4px 24px rgba(0,0,0,.10);
  --wam-shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --wam-font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wam-transition:    .2s ease;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
.wam-wrap *, .wam-modal *, .wam-slider-wrap * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.wam-hidden { display: none !important; }

/* ── Page Wrapper ────────────────────────────────────────────────────*/
.wam-wrap {
  font-family: var(--wam-font);
  color: var(--wam-text);
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ── Header ─────────────────────────────────────────────────────────*/
.wam-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.wam-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--wam-text);
  line-height: 1.2;
}

.wam-page-sub {
  font-size: 13px;
  color: var(--wam-text-muted);
  margin-top: 2px;
}

/* ── Tabs ───────────────────────────────────────────────────────────*/
.wam-tabs {
  display: flex;
  border-bottom: 2px solid var(--wam-border);
  margin-bottom: 24px;
  gap: 4px;
}

.wam-tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wam-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--wam-transition), border-color var(--wam-transition);
}

.wam-tab-btn.active,
.wam-tab-btn:hover {
  color: var(--wam-primary);
  border-bottom-color: var(--wam-primary);
}

.wam-tab-panel { display: block; }
.wam-tab-panel.wam-hidden { display: none !important; }

/* ── Buttons ────────────────────────────────────────────────────────*/
.wam-btn-primary {
  background: var(--wam-primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--wam-transition);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wam-btn-primary:hover { background: var(--wam-primary-hover); }

.wam-btn-outline {
  background: transparent;
  color: var(--wam-text);
  border: 1.5px solid var(--wam-border);
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--wam-transition);
}
.wam-btn-outline:hover { border-color: var(--wam-primary); }

.wam-btn-dark {
  background: var(--wam-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.wam-btn-danger-outline {
  background: transparent;
  color: var(--wam-danger);
  border: 1.5px solid var(--wam-danger);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.wam-btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wam-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.wam-btn-block { width: 100%; justify-content: center; border-radius: 8px; }

.wam-view-btn {
  background: transparent;
  color: var(--wam-text);
  border: 1.5px solid var(--wam-border);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}
.wam-view-btn:hover { border-color: var(--wam-primary); color: var(--wam-primary); }

/* ── Advert Cards (Public Grid) ─────────────────────────────────────*/
.wam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.wam-card {
  background: var(--wam-bg);
  border: 1px solid var(--wam-border);
  border-radius: var(--wam-radius);
  overflow: hidden;
  box-shadow: var(--wam-shadow-sm);
  transition: box-shadow var(--wam-transition);
}

.wam-card:hover { box-shadow: var(--wam-shadow); }

.wam-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #f3f4f6;
}

.wam-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 13px;
}

.wam-card-body {
  padding: 14px 16px 16px;
}

.wam-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--wam-text);
  margin-bottom: 6px;
}

.wam-card-desc {
  font-size: 13px;
  color: var(--wam-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.wam-card-footer {
  display: flex;
  justify-content: flex-end;
}

/* ── My Adverts Table ───────────────────────────────────────────────*/
.wam-table-wrap {
  overflow-x: auto;
  border-radius: var(--wam-radius);
  border: 1px solid var(--wam-border);
  background: var(--wam-bg);
}

.wam-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.wam-table th {
  background: #fafafa;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--wam-text-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--wam-border);
  white-space: nowrap;
}

.wam-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--wam-border);
  vertical-align: middle;
}

.wam-table tr:last-child td { border-bottom: none; }

.wam-table tr:hover td { background: #fafafa; }

.wam-th-check { width: 40px; }

.wam-advert-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wam-advert-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}

.wam-advert-thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #9ca3af;
  font-size: 10px;
}

.wam-advert-name {
  font-weight: 600;
  display: block;
  font-size: 13px;
  color: var(--wam-text);
}

.wam-advert-desc-short {
  font-size: 12px;
  color: var(--wam-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  display: block;
}

/* ── Status Badges ──────────────────────────────────────────────────*/
.wam-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.wam-badge-pending   { background: #fff7ed; color: #c2410c; }
.wam-badge-approved  { background: #dcfce7; color: #15803d; }
.wam-badge-declined  { background: #fee2e2; color: #b91c1c; }
.wam-badge-active    { background: #dcfce7; color: #15803d; }
.wam-badge-inactive  { background: #f3f4f6; color: #6b7280; }

.wam-status-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-left: 8px; }
.wam-status-badge.active   { background: #dcfce7; color: #15803d; }
.wam-status-badge.inactive { background: #f3f4f6; color: #6b7280; }

/* ── Pagination ─────────────────────────────────────────────────────*/
.wam-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.wam-pagination-info { font-size: 13px; color: var(--wam-text-muted); }

.wam-pagination-pages {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.wam-page-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--wam-border);
  background: var(--wam-bg);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--wam-transition);
  color: var(--wam-text);
}

.wam-page-btn:hover { border-color: var(--wam-primary); color: var(--wam-primary); }

.wam-page-btn.active {
  background: var(--wam-primary);
  border-color: var(--wam-primary);
  color: #fff;
}

.wam-page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Loading Spinner ────────────────────────────────────────────────*/
.wam-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  width: 100%;
  grid-column: 1 / -1;
}

.wam-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--wam-border);
  border-top-color: var(--wam-primary);
  border-radius: 50%;
  animation: wam-spin .7s linear infinite;
}

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

/* ── Modal Overlay ──────────────────────────────────────────────────*/
.wam-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: wam-fade-in .15s ease;
}

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

.wam-modal {
  background: var(--wam-bg);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  animation: wam-slide-up .2s ease;
  position: relative;
}

@keyframes wam-slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Subscribe modal – wider */
.wam-modal-subscribe { max-width: 520px; }

/* View modal */
.wam-modal-view { max-width: 500px; }

/* Small modals (success/delete) */
.wam-modal-small { max-width: 360px; }

/* Payment modals */
.wam-modal-payment { max-width: 420px; }
.wam-modal-pay-success { max-width: 400px; }

/* ── Modal Header ────────────────────────────────────────────────── */
.wam-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 0;
}

.wam-modal-icon {
  width: 40px;
  height: 40px;
  background: #f0fdf4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--wam-primary);
}

.wam-modal-icon svg { width: 22px; height: 22px; }

.wam-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--wam-text);
}

.wam-modal-sub {
  font-size: 12px;
  color: var(--wam-text-muted);
  margin-top: 2px;
}

.wam-modal-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--wam-text-muted);
  flex-shrink: 0;
  padding: 4px;
}

.wam-modal-close:hover { color: var(--wam-text); }

/* ── Modal Body ──────────────────────────────────────────────────── */
.wam-modal-body {
  padding: 20px;
}

/* ── Modal Footer ────────────────────────────────────────────────── */
.wam-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 20px 20px;
  flex-wrap: wrap;
}

.wam-view-footer { border-top: 1px solid var(--wam-border); padding-top: 16px; }

/* ── Form Elements ────────────────────────────────────────────────── */
.wam-form-group { margin-bottom: 16px; }

.wam-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--wam-text);
}

.wam-input {
  width: 100%;
  border: 1.5px solid var(--wam-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--wam-text);
  outline: none;
  transition: border-color var(--wam-transition);
  background: var(--wam-bg);
  font-family: var(--wam-font);
}

.wam-input:focus { border-color: var(--wam-primary); }

.wam-textarea { resize: vertical; min-height: 80px; }

/* Tooltip */
.wam-tooltip { cursor: help; color: var(--wam-text-muted); font-size: 14px; }

/* ── Dropzone ────────────────────────────────────────────────────── */
.wam-dropzone {
  border: 2px dashed var(--wam-border);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: border-color var(--wam-transition);
  min-height: 100px;
}

.wam-dropzone:hover, .wam-dropzone.drag-over { border-color: var(--wam-primary); }

.wam-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.wam-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
  gap: 6px;
  pointer-events: none;
}

.wam-dropzone-inner p { font-size: 13px; color: var(--wam-text-muted); }
.wam-dropzone-inner small { font-size: 11px; color: #aaa; }

.wam-dropzone-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.wam-dropzone-preview img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--wam-border);
}

.wam-dropzone-preview span { font-size: 13px; color: var(--wam-text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wam-remove-file {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--wam-text-muted);
}

/* ── Plan Selection ──────────────────────────────────────────────── */
.wam-plan-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wam-plan-option {
  flex: 1;
  min-width: 90px;
  border: 1.5px solid var(--wam-border);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color var(--wam-transition), background var(--wam-transition);
  position: relative;
}

.wam-plan-option input[type="radio"] {
  accent-color: var(--wam-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.wam-plan-option.wam-plan-active,
.wam-plan-option:has(input:checked) {
  border-color: var(--wam-primary);
  background: #f0fdf4;
}

.wam-plan-label { font-size: 13px; font-weight: 500; }

.wam-plan-amount {
  font-size: 12px;
  color: var(--wam-text-muted);
  margin-left: auto;
}

/* ── View Modal Content ──────────────────────────────────────────── */
.wam-view-content { padding: 20px; }

.wam-view-title {
  font-size: 18px;
  font-weight: 700;
  display: inline;
}

.wam-view-image-wrap {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
  background: #f3f4f6;
}

.wam-view-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wam-view-desc {
  font-size: 13px;
  color: var(--wam-text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.wam-view-meta {
  border-top: 1px solid var(--wam-border);
  padding-top: 14px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.wam-view-meta label {
  display: block;
  font-size: 12px;
  color: var(--wam-text-muted);
  margin-bottom: 4px;
}

.wam-view-meta a,
.wam-view-meta span {
  font-size: 14px;
  font-weight: 500;
  color: var(--wam-text);
  word-break: break-all;
}

.wam-view-meta a { color: var(--wam-primary); text-decoration: none; }

/* ── Payment Summary Modal ───────────────────────────────────────── */
.wam-modal-header-payment {
  justify-content: space-between;
  padding: 16px 16px 0;
}

.wam-payment-user {
  text-align: center;
  padding: 16px;
}

.wam-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}

.wam-user-name { font-size: 15px; font-weight: 700; }
.wam-user-id { font-size: 12px; color: var(--wam-text-muted); margin-top: 2px; }

.wam-summary-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.wam-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid #f3f4f6;
  gap: 8px;
}

.wam-summary-row span:first-child { color: var(--wam-text-muted); }
.wam-summary-row span:last-child  { font-weight: 600; text-align: right; }

.wam-summary-total {
  border-bottom: none;
  padding-top: 10px;
  font-weight: 700;
}

.wam-payment-method { margin-top: 16px; }
.wam-payment-method > p { font-size: 13px; font-weight: 600; margin-bottom: 8px; }

.wam-method-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--wam-primary);
  border-radius: 8px;
  padding: 10px 14px;
  background: #f0fdf4;
  font-size: 13px;
  font-weight: 500;
}

.wam-method-icon {
  width: 28px;
  height: 28px;
  background: var(--wam-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ── Success / Delete Modals ─────────────────────────────────────── */
.wam-success-body,
.wam-delete-body {
  text-align: center;
  padding: 32px 24px;
}

.wam-success-icon,
.wam-delete-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.wam-success-icon svg,
.wam-delete-icon svg { width: 64px; height: 64px; }

.wam-success-icon-lg { width: 80px; height: 80px; }
.wam-success-icon-lg svg { width: 80px; height: 80px; }

.wam-success-body h3,
.wam-delete-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.wam-success-body p,
.wam-delete-body p { font-size: 13px; color: var(--wam-text-muted); }

.wam-delete-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ── Payment Success Receipt ─────────────────────────────────────── */
.wam-pay-success-header {
  justify-content: space-between;
  padding: 14px 16px 0;
}

.wam-pay-receipt {
  padding: 0 20px 20px;
}

.wam-receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  gap: 8px;
}

.wam-receipt-row span:first-child { color: var(--wam-text-muted); }
.wam-receipt-row span:last-child  { font-weight: 600; text-align: right; }

.wam-receipt-total {
  border-bottom: none;
  font-size: 15px;
  font-weight: 700;
}

/* ── Slider ──────────────────────────────────────────────────────── */
.wam-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--wam-radius);
  background: #f3f4f6;
  width: 100%;
  max-width: 1120px;        /* matches sample image width */
  aspect-ratio: 1120 / 190; /* same banner shape on all devices */
  margin: 0 auto;
}

.wam-slider-track {
  display: flex;
  height: 100%;
  transition: transform .4s ease;
}

.wam-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.wam-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.wam-slide-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #9ca3af;
}

.wam-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wam-shadow-sm);
  transition: background var(--wam-transition);
}

.wam-slider-arrow:hover { background: #fff; }
.wam-slider-prev { left: 12px; }
.wam-slider-next { right: 12px; }

.wam-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.wam-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  border: none;
  transition: background var(--wam-transition), transform var(--wam-transition);
}

.wam-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ── Notices ─────────────────────────────────────────────────────── */
.wam-notice {
  padding: 12px 16px;
  border-radius: 8px;
  background: #fef3c7;
  color: #92400e;
  font-size: 14px;
}

.wam-error-msg {
  font-size: 13px;
  color: var(--wam-danger);
  margin-top: 6px;
}

/* ── No Results ──────────────────────────────────────────────────── */
.wam-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--wam-text-muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .wam-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .wam-grid { grid-template-columns: 1fr; }

  .wam-header { flex-direction: column; align-items: flex-start; }

  .wam-tabs { overflow-x: auto; gap: 0; }
  .wam-tab-btn { font-size: 13px; padding: 8px 14px; }

  .wam-modal { border-radius: 16px 16px 0 0; max-height: 95vh; }
  .wam-modal-overlay { align-items: flex-end; padding: 0; }

  .wam-plan-group { flex-direction: column; }
  .wam-plan-option { flex: unset; }

  .wam-delete-actions { flex-direction: column; align-items: stretch; }

  .wam-table { font-size: 12px; }
  .wam-table th,
  .wam-table td { padding: 10px 10px; }

  .wam-pagination { flex-direction: column; align-items: flex-start; }

  .wam-slide img { height: 180px; }
  .wam-slide-placeholder { height: 180px; }
}

@media (max-width: 400px) {
  .wam-modal-footer { flex-direction: column; }
  .wam-btn-primary,
  .wam-btn-outline { width: 100%; justify-content: center; }
}

/* ── Phone number field in payment modal ────────────────────────────*/
.wam-phone-group { margin-bottom: 18px; }

.wam-phone-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--wam-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--wam-transition);
  background: var(--wam-bg);
}

.wam-phone-input-wrap:focus-within { border-color: var(--wam-primary); }

.wam-phone-prefix {
  padding: 10px 12px;
  background: #f9fafb;
  color: var(--wam-text-muted);
  font-size: 16px;
  border-right: 1.5px solid var(--wam-border);
  user-select: none;
  flex-shrink: 0;
}

.wam-phone-input {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: transparent;
}

.wam-required { color: var(--wam-danger); margin-left: 2px; }

/* ── Request Sent Modal (new design) ────────────────────────────────*/
.wam-modal-request-sent { max-width: 420px; }

.wam-rs-icon-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 20px 0;
}

.wam-rs-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wam-rs-icon svg { width: 52px; height: 52px; }

.wam-rs-body {
  padding: 16px 24px 24px;
  text-align: center;
}

.wam-rs-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.wam-rs-body > p { font-size: 13px; color: var(--wam-text-muted); margin-bottom: 20px; }

.wam-rs-steps { text-align: left; margin-bottom: 20px; }

.wam-rs-steps-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--wam-text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.wam-rs-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.wam-rs-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--wam-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  color: var(--wam-text);
}

.wam-rs-step strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.wam-rs-step p { font-size: 13px; color: var(--wam-text-muted); margin: 0; line-height: 1.5; }

.wam-rs-close { border-radius: 10px !important; }

/* ── Payment modal — advert card ────────────────────────────────────*/
.wam-pay-advert-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #f9fafb;
  border-bottom: 1px solid var(--wam-border);
}

.wam-pay-advert-img-wrap {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
}

.wam-pay-advert-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wam-pay-advert-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
  padding: 4px;
}

.wam-pay-advert-info { flex: 1; min-width: 0; }
.wam-pay-advert-title { font-size: 14px; font-weight: 700; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wam-pay-advert-plan  { font-size: 12px; color: var(--wam-text-muted); margin: 0; }

/* ── Delete btn in table ────────────────────────────────────────────*/
.wam-delete-btn {
  background: transparent;
  color: var(--wam-danger);
  border: 1.5px solid #fca5a5;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 4px;
  font-weight: 500;
}
.wam-delete-btn:hover { background: #fee2e2; }

/* ── Phone field ───────────────────────────────────────────────────*/
.wam-phone-group { margin-bottom: 18px; }
.wam-phone-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--wam-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--wam-transition);
  background: var(--wam-bg);
}
.wam-phone-input-wrap:focus-within { border-color: var(--wam-primary); }
.wam-phone-prefix { padding: 10px 12px; background: #f9fafb; color: var(--wam-text-muted); font-size: 16px; border-right: 1.5px solid var(--wam-border); flex-shrink: 0; }
.wam-phone-input  { border: none !important; border-radius: 0 !important; flex: 1; padding: 10px 12px; font-size: 14px; outline: none; background: transparent; }
.wam-required { color: var(--wam-danger); margin-left: 2px; }

/* ── Mobile Height Fixes ─────────────────────────────────────────── */
@media (max-width: 600px) {

  /* Slider – taller on mobile */
  .wam-slider-wrap {
    aspect-ratio: unset;
    height: 220px;
  }

  .wam-slide img {
    height: 220px;
  }

  .wam-slide-placeholder {
    height: 220px;
  }

  /* Cards – taller image on mobile */
  .wam-card-img,
  .wam-card-img-placeholder {
    height: 220px;
  }

  /* Modal – taller on mobile */
  .wam-modal {
    max-height: 98vh;
    min-height: 60vh;
  }

  /* View image inside modal – taller */
  .wam-view-image-wrap {
    height: 200px;
  }

  /* Payment advert card image – bigger */
  .wam-pay-advert-img-wrap {
    width: 70px;
    height: 70px;
  }

  /* Table rows – more breathing room */
  .wam-table th,
  .wam-table td {
    padding: 14px 10px;
  }

  /* Advert thumb in table – bigger */
  .wam-advert-thumb,
  .wam-advert-thumb-placeholder {
    width: 52px;
    height: 52px;
  }

  /* Buttons – easier to tap */
  .wam-btn-primary,
  .wam-btn-outline,
  .wam-btn-dark,
  .wam-btn-danger-outline {
    padding: 13px 22px;
    font-size: 15px;
  }

  /* Tab buttons – taller tap area */
  .wam-tab-btn {
    padding: 12px 14px;
  }

  /* Page wrap – more padding */
  .wam-wrap {
    padding: 16px 12px;
  }

  /* Success/delete icon – bigger */
  .wam-success-icon,
  .wam-delete-icon {
    width: 80px;
    height: 80px;
  }

  .wam-success-icon svg,
  .wam-delete-icon svg {
    width: 80px;
    height: 80px;
  }

  /* Request sent icon */
  .wam-rs-icon {
    width: 88px;
    height: 88px;
  }

  .wam-rs-icon svg {
    width: 64px;
    height: 64px;
  }
}

/* ── Extra small phones (≤400px) ────────────────────────────────── */
@media (max-width: 400px) {

  .wam-slider-wrap { height: 180px; }
  .wam-slide img   { height: 180px; }
  .wam-slide-placeholder { height: 180px; }

  .wam-card-img,
  .wam-card-img-placeholder { height: 190px; }

  .wam-page-title  { font-size: 18px; }

  .wam-modal-title { font-size: 15px; }

  .wam-rs-body h3  { font-size: 16px; }
}
