/* Molle Core — Public CSS (uses central theme variables) */
.molle-login-container {
    max-width: 420px;
    margin: 40px auto;
    padding: 0 16px;
}
.molle-card {
    background: var(--molle-surface, #ffffff);
    border-radius: var(--molle-radius, 12px);
    padding: 32px;
    box-shadow: var(--molle-shadow, 0 2px 12px rgba(0,0,0,0.08));
}
.molle-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--molle-primary, #3a6b5e);
    margin: 0 0 8px;
}
.molle-title-sm {
    font-size: 20px;
    margin: 8px 0;
}
.molle-subtitle {
    color: var(--molle-text-muted, #6b6b6b);
    font-size: 15px;
    margin: 0 0 24px;
}
.molle-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.molle-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.molle-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--molle-text, #2c2c2c);
}
.molle-field input {
    padding: 12px 14px;
    border: 1px solid var(--molle-input-border, #c9c3b5);
    border-radius: var(--molle-radius, 12px);
    font-size: 16px;
    background: var(--molle-input-bg, #ffffff);
    color: var(--molle-text, #2c2c2c);
    transition: border-color 0.2s;
}
.molle-field input:focus {
    outline: none;
    border-color: var(--molle-primary, #3a6b5e);
}
.molle-field-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}
.molle-field-checkbox label {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}
.molle-field-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}
.molle-btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--molle-radius, 12px);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.molle-btn-primary {
    background: var(--molle-primary, #3a6b5e);
    color: var(--molle-primary-text, #ffffff);
}
.molle-btn-primary:hover,
.molle-btn-primary:focus,
.molle-btn-primary:active {
    opacity: 0.88;
    color: var(--molle-primary-text, #ffffff);
}
.molle-btn-secondary {
    background: var(--molle-surface-alt, #f0ece2);
    color: var(--molle-text, #2c2c2c);
}
.molle-btn-secondary:hover {
    opacity: 0.88;
}
.molle-btn-link {
    background: transparent;
    color: var(--molle-primary, #3a6b5e);
    text-decoration: underline;
    font-size: 14px;
}
.molle-link {
    color: var(--molle-primary, #3a6b5e);
    font-weight: 600;
    text-decoration: underline;
}
.molle-message {
    font-size: 14px;
    margin: 0;
    min-height: 20px;
}
.molle-success { color: var(--molle-success, #3a7d4f); }
.molle-error { color: var(--molle-danger, #b04a3a); }
.molle-hidden { display: none; }
.molle-logged-in { text-align: center; padding: 40px 16px; }
.molle-login-required { text-align: center; padding: 40px 16px; color: var(--molle-text-muted, #6b6b6b); }
.molle-secondary-action {
    text-align: center;
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--molle-text-muted, #6b6b6b);
}
.molle-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--molle-text-muted, #6b6b6b);
    font-size: 13px;
}
.molle-divider::before,
.molle-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--molle-border, #d9d4c8);
}
.molle-divider span {
    padding: 0 16px;
}
.molle-profile-container { max-width: 600px; margin: 40px auto; padding: 0 16px; }
.molle-profile-details { display: grid; gap: 8px; }
.molle-profile-details dt { font-weight: 600; color: var(--molle-text, #2c2c2c); font-size: 14px; }
.molle-profile-details dd { margin: 0 0 12px; color: var(--molle-text-muted, #6b6b6b); }
.molle-profile-membership { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--molle-border, #d9d4c8); }
.molle-profile-membership p { margin: 8px 0; }

/* Molle Frontend also has a generic `.molle-card p { opacity:.66 }` rule for
   editorial cards. The Core profile card intentionally shares the `.molle-card`
   base class, so reset paragraph opacity inside the profile. Otherwise buttons
   wrapped in <p> inherit the parent's 0.66 opacity and look disabled even though
   the button itself is fully opaque. */
.molle-profile-container .molle-card p { opacity: 1; }

/* Profile-scoped button consistency: dark primary background + white text.
   !important is used here because WordPress themes and other plugins often
   override button colors with their own high-specificity or !important rules.
   This is narrowly scoped to .molle-profile-container only. */
.molle-profile-container .molle-btn-secondary,
.molle-profile-container .molle-btn-link {
    background: var(--molle-primary, #3a6b5e) !important;
    color: var(--molle-primary-text, #ffffff) !important;
    text-decoration: none !important;
}
.molle-profile-container .molle-btn-secondary:hover,
.molle-profile-container .molle-btn-secondary:focus,
.molle-profile-container .molle-btn-link:hover,
.molle-profile-container .molle-btn-link:focus,
.molle-profile-container .molle-btn-link:active {
    opacity: 0.88;
    color: var(--molle-primary-text, #ffffff) !important;
}

/* Profile CTA buttons: keep active membership/business actions fully opaque and
   driven by Core theme variables. Kept deliberately narrow so Log ud and
   genuinely disabled controls retain their existing styling. */
.molle-profile-container .molle-profile-membership .molle-btn-primary,
.molle-profile-container .molle-profile-business .molle-btn-secondary {
    background: var(--molle-primary, #3a6b5e) !important;
    color: var(--molle-primary-text, #ffffff) !important;
    opacity: 1 !important;
    filter: none !important;
    text-decoration: none !important;
}
.molle-profile-container .molle-profile-membership .molle-btn-primary:hover,
.molle-profile-container .molle-profile-membership .molle-btn-primary:focus,
.molle-profile-container .molle-profile-membership .molle-btn-primary:active,
.molle-profile-container .molle-profile-business .molle-btn-secondary:hover,
.molle-profile-container .molle-profile-business .molle-btn-secondary:focus,
.molle-profile-container .molle-profile-business .molle-btn-secondary:active {
    background: var(--molle-primary, #3a6b5e) !important;
    color: var(--molle-primary-text, #ffffff) !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Membership card */
.molle-membership-card {
    max-width: 420px;
    margin: 40px auto;
    padding: 0 16px;
}
.molle-membership-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.molle-membership-logo {
    max-width: 48px;
    max-height: 48px;
    border-radius: 8px;
}
.molle-membership-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--molle-primary, #3a6b5e);
}
.molle-membership-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.molle-membership-info {
    flex: 1;
}
.molle-member-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--molle-text, #2c2c2c);
    margin: 0 0 8px;
}
.molle-member-status { margin: 0 0 8px; }
.molle-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.molle-status-active {
    background: var(--molle-success, #3a7d4f);
    color: #fff;
}
.molle-member-period,
.molle-member-renewal {
    font-size: 13px;
    color: var(--molle-text-muted, #6b6b6b);
    margin: 4px 0;
}
.molle-membership-qr {
    flex-shrink: 0;
    text-align: center;
}
.molle-qr-container {
    width: 160px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--molle-border, #d9d4c8);
    border-radius: 8px;
    padding: 8px;
}
.molle-qr-loading {
    font-size: 12px;
    color: var(--molle-text-muted, #6b6b6b);
}
.molle-qr-error {
    font-size: 12px;
    color: var(--molle-danger, #b04a3a);
}
.molle-qr-expires {
    font-size: 11px;
    color: var(--molle-text-muted, #6b6b6b);
    margin: 6px 0 0;
}
.molle-non-member {
    text-align: center;
}
.molle-non-member p { margin: 12px 0; }

/* Membership card modal */
.molle-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.molle-modal[hidden] { display: none; }
.molle-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.molle-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--molle-surface, #ffffff);
    border-radius: var(--molle-radius, 12px);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.molle-modal-card {
    max-width: 440px;
}
.molle-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--molle-text-muted, #6b6b6b);
    padding: 4px 8px;
    border-radius: 4px;
}
.molle-modal-close:hover {
    color: var(--molle-text, #2c2c2c);
    background: var(--molle-surface-alt, #f0ece2);
}

/* Notification preferences */
.molle-profile-notifications {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--molle-border, #d9d4c8);
}
.molle-pref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}
.molle-pref-label {
    cursor: pointer;
    flex: 1;
}
.molle-pref-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--molle-text, #2c2c2c);
    display: block;
}
.molle-pref-hint {
    font-size: 12px;
    color: var(--molle-text-muted, #6b6b6b);
    display: block;
    margin-top: 4px;
}
.molle-pref-disabled {
    opacity: 0.5;
}
.molle-pref-disabled .molle-pref-label {
    cursor: default;
}

/* Toggle switch */
.molle-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}
.molle-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.molle-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--molle-border, #d9d4c8);
    border-radius: 24px;
    transition: background 0.2s;
}
.molle-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.molle-toggle input:checked + .molle-toggle-slider {
    background: var(--molle-primary, #3a6b5e);
}
.molle-toggle input:checked + .molle-toggle-slider::before {
    transform: translateX(20px);
}
.molle-toggle input:focus-visible + .molle-toggle-slider {
    outline: 2px solid var(--molle-primary, #3a6b5e);
    outline-offset: 2px;
}
.molle-toggle-locked {
    cursor: default;
}
.molle-toggle-saving {
    opacity: 0.6;
    pointer-events: none;
}

/* Notification inbox — profile, 1.2.28 */
.molle-profile-inbox {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--molle-border, #d9d4c8);
}
.molle-inbox-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.molle-inbox-heading .molle-title { margin: 0; }
.molle-inbox-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #d93b3b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.molle-inbox-list {
    display: grid;
    gap: 8px;
}
.molle-inbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid var(--molle-border, #d9d4c8);
    border-radius: 16px;
    background: var(--molle-surface, #fff);
    color: var(--molle-text, #2c2c2c) !important;
    text-decoration: none !important;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.molle-inbox-item:active { transform: scale(.99); }
.molle-inbox-item.is-unread {
    background: var(--molle-surface-alt, #f6f3eb);
    border-color: var(--molle-primary, #3a6b5e);
}
.molle-inbox-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: transparent;
}
.molle-inbox-item.is-unread .molle-inbox-dot { background: #d93b3b; }
.molle-inbox-content {
    display: block;
    min-width: 0;
    flex: 1;
}
.molle-inbox-title,
.molle-inbox-body,
.molle-inbox-time { display: block; }
.molle-inbox-title {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
}
.molle-inbox-item.is-unread .molle-inbox-title { font-weight: 750; }
.molle-inbox-body {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--molle-text-muted, #6b6b6b);
}
.molle-inbox-time {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.2;
    color: var(--molle-text-muted, #6b6b6b);
    opacity: .82;
}
.molle-inbox-chevron {
    flex: 0 0 auto;
    font-size: 24px;
    line-height: 1;
    color: var(--molle-text-muted, #6b6b6b);
}
.molle-inbox-read-all {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--molle-primary, #3a6b5e);
    padding: 10px 2px 0;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.molle-inbox-read-all:disabled { opacity: .55; }
.molle-inbox-empty {
    margin: 4px 0 0;
    color: var(--molle-text-muted, #6b6b6b);
    font-size: 13px;
}

/* Profile v1.2.35: page/theme owns ALL outer horizontal spacing. */
.molle-profile-container { width:100%; max-width:none; margin:0; padding:0 !important; box-sizing:border-box; }
.molle-profile-container > .molle-card { width:100%; max-width:none; margin:0; padding:0 !important; box-shadow:none; box-sizing:border-box; }
.molle-profile-container .molle-profile-status,
.molle-profile-container .molle-profile-inbox,
.molle-profile-container .molle-profile-notifications,
.molle-profile-container .molle-profile-membership,
.molle-profile-container .molle-profile-business { margin-top:24px; padding-top:20px; border-top:1px solid var(--molle-border,#ddd5c9); }
.molle-profile-status-line { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:10px; }
.molle-membership-pill { display:inline-flex; border-radius:999px; padding:6px 12px; background:#eeeae5; color:#6b6259; font-size:13px; font-weight:700; }
.molle-membership-pill.is-active { background:#e2f2e6; color:#28633b; }
.molle-profile-container .molle-membership-card-pill { border-radius:999px; padding:7px 13px; font-size:13px; min-height:0; width:auto; }
.molle-inbox-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; }
.molle-inbox-more { border:1px solid var(--molle-border,#ddd5c9); background:transparent; color:var(--molle-primary,#986b3e); padding:9px 14px; border-radius:999px; font-weight:600; cursor:pointer; }
.molle-weekly-overview { background:#f7efe5; border-radius:16px; padding:16px; margin:14px 0; }
.molle-weekly-overview h3 { color:var(--molle-primary,#986b3e); margin:0 0 8px; }
.molle-weekly-overview p { margin:0 0 8px; }
.molle-weekly-pending { font-size:13px; opacity:.75; }
.molle-other-notifications { border:1px solid var(--molle-border,#ddd5c9); border-radius:12px; padding:12px; }
.molle-other-notifications summary { cursor:pointer; font-weight:700; }
.molle-other-notifications[open] summary { margin-bottom:8px; }

/* Weekly event preferences: no outer page padding; only inner card spacing. */
.molle-weekly-fieldset { border:0; padding:0; margin:16px 0; min-width:0; }
.molle-weekly-fieldset legend { font-weight:700; margin-bottom:8px; }
.molle-weekly-fieldset [data-weekly-categories], .molle-weekly-fieldset [data-weekly-postcodes] { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr)); gap:10px; }
.molle-weekly-choice { display:flex; gap:6px; align-items:center; font-size:14px; }
.molle-weekly-controls { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0; }
.molle-weekly-controls button { border:1px solid #c8b8a4; border-radius:999px; background:transparent; padding:7px 12px; }
.molle-weekly-pref-row { margin: 14px 0; }
[data-weekly-status] { font-size:13px; margin-top:8px; }

/* Profile 1.2.37: theme owns outer spacing; WHITE CARD owns its inner breathing room. */
.molle-profile-container > .molle-card {
  padding: clamp(18px, 5vw, 30px) !important;
  overflow:hidden;
}
.molle-profile-container .molle-title { overflow-wrap:break-word; }
.molle-profile-container .molle-profile-details { margin:0; }
.molle-profile-container .molle-profile-actions { margin-top:28px; padding-top:6px; }
.molle-profile-container .molle-profile-business { margin-bottom:0; }
.molle-profile-container .molle-profile-actions .molle-btn { margin-top:8px; }
.molle-profile-container .molle-other-notifications {
  border:1px solid #e7dacc; border-radius:16px; padding:0; overflow:hidden;
  background:#fff; box-shadow:none;
}
.molle-profile-container .molle-other-notifications summary {
  list-style:none; display:flex; justify-content:space-between; align-items:center;
  gap:12px; padding:16px 18px; color:#986b3e; font-weight:650;
  border:0 !important; outline:0 !important; box-shadow:none !important;
  -webkit-tap-highlight-color:transparent;
}
.molle-profile-container .molle-other-notifications summary::-webkit-details-marker {display:none;}
.molle-profile-container .molle-other-notifications summary::after {content:'⌄'; font-size:24px; line-height:1; font-weight:400;}
.molle-profile-container .molle-other-notifications[open] summary::after {content:'⌃';}
.molle-profile-container .molle-other-notifications[open] summary {margin:0; border-bottom:1px solid #eee5da !important;}
.molle-profile-container .molle-other-notifications .molle-pref-row {padding:14px 18px;}
.molle-profile-container .molle-weekly-overview {padding:clamp(14px,4vw,22px); border-radius:20px;}
.molle-profile-container .molle-weekly-areas-trigger {
  display:flex; align-items:center; justify-content:space-between; width:100%;
  border:1px solid #dccbb7; border-radius:14px; padding:13px 16px;
  background:#fff; color:#986b3e; font:inherit; font-weight:650; text-align:left;
}
.molle-profile-container .molle-weekly-areas-panel {
  margin-top:10px; padding:14px; background:#fff; border-radius:14px;
}
.molle-profile-container .molle-weekly-areas-panel[hidden] {display:none !important;}
.molle-profile-container .molle-weekly-areas-panel [data-weekly-postcodes] {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));
}
.molle-profile-container .molle-weekly-choice {min-width:0; overflow-wrap:anywhere;}
@media(max-width:420px) {
 .molle-profile-container > .molle-card {padding:18px !important;}
 .molle-profile-container .molle-profile-status-line {gap:8px;}
 .molle-profile-container .molle-weekly-areas-panel [data-weekly-postcodes] {grid-template-columns:1fr;}
}

/* Dark Molle CTA: always use white text, including theme overrides. */
.molle-profile-container [data-weekly-save],
.molle-profile-container [data-weekly-save]:hover,
.molle-profile-container [data-weekly-save]:focus,
.molle-profile-container [data-weekly-save]:active {
  color: var(--molle-primary-text, #ffffff) !important;
  -webkit-text-fill-color: var(--molle-primary-text, #ffffff) !important;
}

/* Keep the inactive-membership signup CTA comfortably spaced and mobile-friendly. */
.molle-profile-container .molle-profile-status-line {display:flex; flex-wrap:wrap; align-items:center; gap:12px;}
.molle-profile-container .molle-membership-signup-pill {max-width:100%; white-space:normal; text-align:center; color:var(--molle-primary-text, #ffffff) !important; line-height:1.3;}
.molle-profile-container .molle-membership-signup-pill:hover,
.molle-profile-container .molle-membership-signup-pill:focus {color:var(--molle-primary-text, #ffffff) !important;}

/* 1.2.47 — account primary CTAs use active theme with automatic contrast. */
.molle-login-container .molle-btn.molle-btn-primary,
.molle-login-container .molle-btn.molle-btn-primary:hover,
.molle-login-container .molle-btn.molle-btn-primary:focus,
.molle-login-container .molle-btn.molle-btn-primary:active {
    background: var(--molle-primary, #3a6b5e) !important;
    color: var(--molle-core-auto-primary-text, var(--molle-primary-text, #ffffff)) !important;
    -webkit-text-fill-color: var(--molle-core-auto-primary-text, var(--molle-primary-text, #ffffff)) !important;
}

/* 1.2.47 — single membership status block. */
.molle-membership-card .molle-member-live-status {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin: 0 0 20px;
    padding: 11px 16px 12px;
    border-radius: 20px;
    background: #43ad73;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}
.molle-membership-card .molle-member-live-title {
    font-size: 14px;
}
.molle-membership-card .molle-member-live-time {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}


/* 1.2.48 — WordPress owns the desktop width of Core account/profile pages. */
@media (min-width:851px) {
  .molle-profile-container {
    width:min(var(--wp--style--global--wide-size,1340px),100%);
    max-width:var(--wp--style--global--wide-size,1340px);
    margin-left:auto;
    margin-right:auto;
  }
}


/* Profile 1.2.66: membership management lives with the top Molles Venner status. */
.molle-profile-container .molle-membership-management { margin-top:12px; display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; }
.molle-profile-container .molle-membership-management p { margin:0; }
.molle-profile-container .molle-membership-payment-note { color:var(--molle-text-muted,#6b6b6b); font-size:13px; }
.molle-profile-container .molle-membership-cancel-status { font-size:13px; color:var(--molle-text,#2c2c2c); }
.molle-profile-container .molle-membership-manage-link { border:0; padding:0; background:transparent; color:var(--molle-primary,#986b3e); font:inherit; font-size:13px; font-weight:700; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.molle-profile-container .molle-membership-manage-link:disabled { opacity:.5; cursor:default; }
.molle-cancel-modal[hidden] { display:none !important; }
.molle-cancel-modal { position:fixed; inset:0; z-index:1000000; display:flex; align-items:flex-end; justify-content:center; padding:18px; box-sizing:border-box; }
.molle-cancel-modal .molle-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.48); }
.molle-cancel-modal .molle-cancel-dialog { position:relative; width:min(520px,100%); margin:0; padding:24px; border-radius:24px; background:#fff; color:#111; box-sizing:border-box; box-shadow:0 12px 40px rgba(0,0,0,.25); }
.molle-cancel-modal .molle-cancel-dialog h2 { margin:0 0 10px; color:var(--molle-primary,#986b3e); font-size:clamp(24px,7vw,32px); line-height:1.08; }
.molle-cancel-modal .molle-cancel-dialog p { margin:0 0 22px; line-height:1.5; }
.molle-cancel-modal .molle-cancel-actions { display:flex; flex-direction:column; gap:10px; }
.molle-cancel-modal .molle-cancel-actions .molle-btn { width:100%; margin:0; }
/* Cancellation modal buttons must always have readable contrast. JS recalculates
   from the actual rendered background; these declarations are a safe fallback. */
.molle-cancel-modal .molle-cancel-actions .molle-btn-primary,
.molle-cancel-modal .molle-cancel-actions .molle-btn-secondary {
    color: var(--molle-primary-text, #ffffff) !important;
}

@media(min-width:520px) { .molle-cancel-modal { align-items:center; } }
