/* ============
   BASE ALERT
   ============ */

.dw-alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
    box-sizing: border-box;
}

/* Contexts
   You can adjust colors per context if needed.
*/

/* SUCCESS – use your gold/cream/blue palette by default */
.dw-alert--success {
    border-radius: 0.65rem;
    border: 1px solid #f3c766;         /* soft gold border */
    background: #fff7e6;               /* warm cream/gold background */
    color: #433218;                    /* deep brown/neutral text */
}

/* ERROR – keep a gentle red tone */
.dw-alert--error {
    border-radius: 0.65rem;
    border: 1px solid #f3b3b3;
    background: #fff5f5;
    color: #5a1f1f;
}

/* Icon + text */
.dw-alert__icon {
    font-size: 1.1rem;
}

.dw-alert__message {
    flex: 1;
}

/* Close button (X) */
.dw-alert__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.75;
}

.dw-alert__close:hover {
    opacity: 1;
}

/* ================
   VARIANT STYLES
   ================ */

/* 1) PILL (Option A)
   Soft pill that sits centered in the content
*/
.dw-alert--pill {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 999px;
}

/* 2) FULL (Option B – branded)
   Full-width golden banner that spans the content area.
   This is the one you wanted branded.
*/
.dw-alert--full {
    width: 100%;
    border-radius: 0;                          /* straight edges */
    border-width: 1px 0;                       /* top & bottom border only */
    padding: 1rem 0.5rem;
    margin-left: 0;
    margin-right: 0;

    /* Stronger brand presence */
    background: linear-gradient(
        90deg,
        #fff7e6,
        #fbe9c2 40%,
        #f2d28c 80%
    );
    border-color: #f0c15d;
    color: #3a2a12;
}

/* Keep content aligned nicely inside “full” banners */
.dw-alert--full .dw-alert__icon {
    margin-left: 1.25rem;
}

.dw-alert--full .dw-alert__close {
    margin-right: 1.25rem;
}

/* 3) CARD (Option C)
   Card-style banner with shadow
*/
.dw-alert--card {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.8rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* 4) FLOATING (Option D)
   Floating toast in bottom-right corner
*/
.dw-alert--floating {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    max-width: 360px;
    z-index: 9999;
    border-radius: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Floating alert – keep “full” gradient ONLY for full-wide,
   so floating uses simple background from context. */
.dw-alert--floating.dw-alert--full {
    background: #fff7e6;
    border-color: #f3c766;
}

/* Mobile adjustments for floating style */
@media (max-width: 768px) {
    .dw-alert--floating {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* Full-width alert banner */
.dw-alert {
    margin: 0 0 24px;
    width: 100%;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dw-alert--full {
    background: linear-gradient(90deg, #fff8dd, #f8f1e2);
    border-top: 2px solid #D4AF37;
    border-bottom: 2px solid #D4AF37;
}

.dw-alert--success .dw-alert__icon {
    color: #2e7d32;
}

.dw-alert__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dw-alert__icon {
    font-size: 18px;
    flex: 0 0 auto;
}

.dw-alert__message {
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.5;
    color: #2d2a3e;
}

.dw-alert__message strong {
    font-weight: 600;
}

.dw-alert__close {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    padding: 0 6px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #7b6b44;
}

.dw-alert__close:hover {
    color: #4a3a1a;
}

.dw-alert {
  margin: 18px 0;
  border-radius: 10px;
  border: 1px solid #ead9a1;
  background: #fff7e0;
  color: #2d2a3e;
}
.dw-alert__inner {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
}
.dw-alert__icon {
  font-weight: 700;
}
.dw-alert__close {
  margin-left: auto;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.dw-tier-badge {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8f5ed;
  border: 1px dashed #d4af37;
  font-size: 13px;
}

.dw-perk-option {
  display: block;
  margin: 6px 0;
}
.dw-perk-locked {
  opacity: 0.5;
  cursor: not-allowed;
}
.dw-perk-lock-indicator {
  margin-left: 6px;
}

.dw-tooltip {
  position: absolute;
  background: #2d2a3e;
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  z-index: 9999;
  white-space: nowrap;
}

.dw-btn--disabled {
    background-color: #ccc !important;
    border-color: #bbb !important;
    color: #666 !important;
    pointer-events: none;
}

/* ===== Divine Wealth Forms Layout Reset ===== */

/* Make sure all inputs behave consistently */
.dw-form input,
.dw-form select,
.dw-form textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 0;
}

/* Rows */
.dw-form .form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

/* Two-column rows */
.dw-form .form-row--2 {
  grid-template-columns: 1fr 1fr;
}

/* One-column fallback */
.dw-form .form-row--1,
.dw-form .form-row:not(.form-row--2) {
  grid-template-columns: 1fr;
}

/* Mobile stack */
@media (max-width: 780px) {
  .dw-form .form-row--2 {
    grid-template-columns: 1fr;
  }
}

/* Fields */
.dw-form .dw-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.dw-form .dw-field {
  margin-bottom: 12px;
}

/* Checkbox / perk alignment */
.dw-form .dw-perk-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  line-height: 1.25;
}

.dw-form .dw-perk-option input[type="checkbox"] {
  width: auto !important;
  margin: 0;
  transform: translateY(1px);
}

/* Locked perk styling stays aligned */
.dw-form .dw-perk-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Badge spacing */
.dw-tier-badge {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* =========================================================
   DW FORMS HARD RESET — BEATS THEME CONFLICTS
   Paste at very bottom of dw-forms.css
   ========================================================= */

.dw-form,
.dw-form * {
  box-sizing: border-box !important;
}

/* Force our row system */
.dw-form .form-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Two-column rows */
.dw-form .form-row.form-row--2 {
  grid-template-columns: 1fr 1fr !important;
}

/* Mobile stack */
@media (max-width: 780px) {
  .dw-form .form-row.form-row--2 {
    grid-template-columns: 1fr !important;
  }
}

/* Fields must not float or absolute-position */
.dw-form .dw-field {
  width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  clear: both !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* Labels */
.dw-form .dw-field label {
  display: block !important;
  float: none !important;
  position: relative !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

/* Inputs */
.dw-form input[type="text"],
.dw-form input[type="email"],
.dw-form input[type="tel"],
.dw-form input[type="date"],
.dw-form input[type="number"],
.dw-form select,
.dw-form textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  position: relative !important;
  margin: 0 !important;
  padding: 10px 12px !important;
}

/* Checkbox rows */
.dw-form .dw-perk-option {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  float: none !important;
  margin: 6px 0 !important;
}

.dw-form .dw-perk-option input[type="checkbox"] {
  width: auto !important;
  margin: 0 !important;
}
/* ULTRA SANITY: never allow floats inside dw-form */
.dw-form * {
  float: none !important;
}

/* ============================================
 * Tier Perks Table
 * Shortcode: [dw_tier_perks_table]
 * ========================================== */

.dw-tier-table-wrap {
    margin: 3rem 0;
    max-width: 100%;
}

.dw-tier-table__heading {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    text-align: left;
    color: #24397a; /* Divine blue */
}

.dw-tier-table__intro {
    margin: 0 0 1.5rem;
    max-width: 720px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #4a4a4a;
}

.dw-tier-table__intro strong {
    font-weight: 600;
}

/* Table wrapper for horizontal scroll on mobile */
.dw-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Base table */
.dw-table.dw-table--tiers {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.96rem;
    line-height: 1.6;
    min-width: 720px; /* so columns don’t squish too much */
}

/* Header */
.dw-table.dw-table--tiers thead th {
    padding: 0.75rem 1.2rem;
    text-align: left;
    white-space: nowrap;
    background: #f7f1dd;     /* soft gold/cream */
    color: #24397a;
    font-weight: 600;
    border-bottom: 2px solid #d4af37;
}

/* Cells */
.dw-table.dw-table--tiers tbody td {
    padding: 0.65rem 1.2rem;
    vertical-align: top;
    border-bottom: 1px solid #e4e4f0;
}

/* First column (tier name) */
.dw-tier-cell--label {
    width: 180px;
    white-space: nowrap;
    font-weight: 600;
    color: #24397a;
}

/* Zebra striping */
.dw-table.dw-table--tiers tbody tr:nth-child(even) {
    background-color: #faf8f2;
}

/* Referral commission column (last col) */
.dw-table.dw-table--tiers tbody td:last-child strong {
    color: #24397a;
    font-weight: 700;
}

/* Small footnote */
.dw-tier-table__note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #7a7a7a;
}

/* Slight emphasis by tier (optional subtle left border) */
.dw-tier-row--concierge td:first-child {
    border-left: 3px solid #d4af37;
}
.dw-tier-row--elite td:first-child {
    border-left: 3px solid #9b89ff;
}
.dw-tier-row--premier td:first-child {
    border-left: 3px solid #4fb4c9;
}
.dw-tier-row--platinum td:first-child {
    border-left: 3px solid #24397a;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .dw-tier-table__heading {
        font-size: 1.5rem;
        text-align: left;
    }

    .dw-tier-table__intro {
        font-size: 0.9rem;
    }

    .dw-table.dw-table--tiers {
        font-size: 0.9rem;
        min-width: 640px;
    }
}
