/* =====================================================================
   OrderStraight Account Page — Stage 6a
   Coastal Premium navy / cream / coral. Mobile-first.
   ===================================================================== */
.os-account-body { background: var(--os-bg, #F7F5F0); color: var(--os-text, #1C2A44); padding-bottom: 40px; }
.os-account-main { max-width: 720px; margin: 0 auto; padding: 16px; }
.os-account-title { font-size: 22px; margin: 6px 4px 14px; }

/* Card blocks */
.os-card-block {
  background: #fff; border: 1px solid var(--os-line, #ECE7DE);
  border-radius: 14px; padding: 16px; margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(28,42,68,0.04);
}
.os-card-block h2 { margin: 0 0 12px; font-size: 16px; color: var(--os-text, #1C2A44); }
.os-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.os-section-head h2 { margin: 0; }

/* Field rows */
.os-field-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid #F2EEE6; }
.os-field-row:first-of-type { border-top: 0; padding-top: 4px; }
.os-field-row label { color: #6E7A8C; font-size: 13px; }
.os-readonly { color: #1C2A44; font-weight: 600; font-size: 14px; text-align: right; }
[dir="rtl"] .os-readonly { text-align: left; }

/* Buttons */
.os-btn-primary {
  background: #1C2A44; color: #fff; border: 0; border-radius: 999px;
  padding: 10px 18px; font-weight: 600; font-size: 14px; cursor: pointer;
  font-family: inherit;
}
.os-btn-primary:active { transform: scale(0.97); }
.os-btn-ghost {
  background: #fff; color: #1C2A44; border: 1px solid #D8D3CA;
  border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none; display: inline-block; font-family: inherit;
}

/* Address list */
.os-addr-list { display: grid; gap: 10px; }
.os-addr-list .os-loading { text-align: center; color: #9AA4B5; padding: 20px; }
.os-addr-list:empty::before { content: attr(data-empty); display: block; text-align: center; color: #9AA4B5; padding: 20px; }
.os-addr-card {
  background: #FAF8F4; border: 1px solid #ECE7DE; border-radius: 12px;
  padding: 12px; display: grid; gap: 6px;
}
.os-addr-card.is-default { border-color: #1C2A44; box-shadow: 0 0 0 1px #1C2A44; }
.os-addr-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.os-addr-card .nick { font-weight: 700; font-size: 14px; }
.os-addr-card .pill { background: #1C2A44; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; }
.os-addr-card .body { color: #4A5568; font-size: 13px; line-height: 1.45; }
.os-addr-card .actions { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 4px; }
.os-addr-card .actions button {
  background: #fff; border: 1px solid #D8D3CA; border-radius: 8px;
  padding: 6px 10px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.os-addr-card .actions button.danger { color: #C53030; border-color: #FED7D7; }

/* Modal */
.os-modal { position: fixed; inset: 0; background: rgba(28,42,68,0.55); display: none; z-index: 100; padding: 0; }
.os-modal[aria-hidden="false"] { display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 720px) { .os-modal[aria-hidden="false"] { align-items: center; } }
.os-modal-card { background: #fff; width: 100%; max-width: 520px; max-height: 92vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; }
@media (min-width: 720px) { .os-modal-card { border-radius: 18px; } }
.os-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #ECE7DE; }
.os-modal-head strong { font-size: 16px; }
.os-x { background: transparent; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: #1C2A44; padding: 4px 8px; }
.os-modal-body { padding: 14px 18px 20px; overflow-y: auto; }

/* Pin map */
.os-pin-help { color: #6E7A8C; font-size: 13px; margin: 0 0 8px; text-align: center; }
.os-pick-map { width: 100%; height: 220px; border-radius: 12px; overflow: hidden; border: 1px solid #ECE7DE; }
.os-gps-btn { margin: 8px 0 14px; width: 100%; }

/* Form */
.os-addr-form label { display: block; font-size: 13px; color: #4A5568; margin-bottom: 10px; font-weight: 600; }
.os-addr-form input[type="text"], .os-addr-form textarea {
  width: 100%; box-sizing: border-box; margin-top: 4px;
  padding: 10px 12px; border: 1px solid #D8D3CA; border-radius: 10px;
  font-size: 16px; /* iOS no-zoom */ font-family: inherit; background: #fff;
}
.os-addr-form .os-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.os-check-row { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.os-modal-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 8px; }

/* Tiny screens */
@media (max-width: 360px) {
  .os-addr-form .os-row-3 { grid-template-columns: 1fr; }
}
