/*
 * Hadship front-end styling.
 * Theme: #faf6ee page band, white cards, near-black text, #f09810 accent.
 */

.hadship-front {
    background: #faf6ee;
    color: #1a1a1a;
    padding: 22px;
    border-radius: 14px;
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    max-width: 760px;
}

.hadship-ftitle {
    font-size: 17px;
    font-weight: 500;
    margin: 18px 0 8px;
    color: #1a1a1a;
}

.hadship-ftitle:first-of-type {
    margin-top: 4px;
}

.hadship-fp {
    font-size: 13px;
    margin: 0 0 12px;
}

.hadship-fmuted {
    color: #867f6c;
}

.hadship-fcard {
    background: #fff;
    border: 1px solid #e8e0cf;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.hadship-card-card {
    padding: 14px;
}

.hadship-card-actions {
    margin-top: 14px;
}

/* Buttons */
.hadship-fbtn {
    display: inline-block;
    background: #fff;
    border: 1px solid #e8e0cf;
    color: #1a1a1a;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}

.hadship-fbtn:hover {
    border-color: #f09810;
}

.hadship-fbtn-primary {
    background: #f09810;
    border-color: #f09810;
    color: #fff;
}

.hadship-fbtn-primary:hover {
    background: #d4830a;
}

.hadship-fbtn-danger {
    border-color: #e3b8b8;
    color: #a3281f;
}

.hadship-fbtn-danger:hover {
    border-color: #a3281f;
}

/* Address book rows */
.hadship-addr-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.hadship-addr-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.hadship-addr-lines {
    font-size: 13px;
    line-height: 1.7;
    color: #444441;
}

.hadship-addr-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: none;
}

.hadship-addr-actions form {
    margin: 0;
}

.hadship-badge {
    background: #fdecc9;
    color: #92560a;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    vertical-align: middle;
}

/* Add form */
.hadship-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 4px;
}

.hadship-ffield {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #6b6453;
}

.hadship-ffield input {
    padding: 8px 10px;
    border: 1px solid #e8e0cf;
    border-radius: 8px;
    font-size: 13px;
}

.hadship-ffield input:focus {
    outline: none;
    border-color: #f09810;
}

/* Notices */
.hadship-fnote {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

.hadship-fnote-ok {
    background: #dcefd6;
    color: #2f6b1f;
    border: 1px solid #bcdcae;
}

.hadship-fnote-err {
    background: #fae3e0;
    color: #a3281f;
    border: 1px solid #e7b9b3;
}

@media (max-width: 560px) {
    .hadship-form-grid { grid-template-columns: 1fr; }
    .hadship-addr-row { flex-direction: column; }
}

/* --- Dashboard (Stage B) --- */
.hadship-dash-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}
.hadship-dash-hi {
    font-size: 19px;
    font-weight: 700;
}
.hadship-dash-locker {
    font-size: 13px;
    color: #867f6c;
}

.hadship-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 16px 0 12px;
}
.hadship-tab {
    background: transparent;
    border: 1px solid transparent;
    color: #867f6c;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hadship-tab:hover {
    color: #1a1a1a;
}
.hadship-tab.is-active {
    background: #fff;
    border-color: #e8e0cf;
    color: #f09810;
    font-weight: 700;
}
.hadship-tabcount {
    background: #e7e0cf;
    color: #867f6c;
    font-size: 11px;
    border-radius: 10px;
    padding: 1px 7px;
}
.hadship-tab.is-active .hadship-tabcount {
    background: #f09810;
    color: #fff;
}

.hadship-panel {
    display: none;
}
.hadship-panel.is-active {
    display: block;
}

/* Package card */
.hadship-pkg {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hadship-pkg-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #fbf6ec;
    flex: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hadship-pkg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hadship-pkg-noimg {
    font-size: 10px;
    color: #b3ab93;
}
.hadship-pkg-main {
    flex: 1;
    min-width: 0;
}
.hadship-pkg-top {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hadship-pkg-retailer {
    font-size: 14px;
    font-weight: 700;
}
.hadship-pkg-meta {
    font-size: 12px;
    color: #867f6c;
    margin-top: 3px;
}
.hadship-pill {
    font-size: 12px;
    padding: 4px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex: none;
}
.hadship-code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    background: #f3eede;
    color: #6b6453;
    padding: 1px 7px;
    border-radius: 5px;
}

/* --- Customs & consolidation (Stage D) --- */
.hadship-pkg-check {
    flex: none;
    width: 22px;
    display: flex;
    justify-content: center;
}
.hadship-pkg-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: none;
}
.hadship-opts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 10px 0 4px;
}
.hadship-opt {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hadship-consol-codes {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hadship-customs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 8px;
}
.hadship-customs-table th {
    text-align: left;
    font-size: 11px;
    color: #867f6c;
    padding: 6px 8px 6px 0;
}
.hadship-customs-table td {
    padding: 4px 8px 4px 0;
}
.hadship-customs-table input {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid #e8e0cf;
    border-radius: 8px;
    font-size: 13px;
}
.hadship-customs-table input:focus {
    outline: none;
    border-color: #f09810;
}

/* --- Rates (Stage F) --- */
.hadship-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.hadship-rate-main {
    min-width: 0;
}
.hadship-rate-buy {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}
.hadship-rate-buy form {
    margin: 0;
}
.hadship-rate-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

/* ================================================================
 * v0.10.0 — Wide layout, redesigned address card, customs modal,
 * lightbox, package selection bar, flash highlight.
 * ================================================================ */

/* Wide layout: dashboard breaks out of narrow theme content area.
   Targets ONLY pages that include .hadship-front-wide (the dashboard),
   leaving Contact/About/FAQ etc untouched. */
.hadship-front-wide {
    width: 100%;
    margin: 0;
    padding: 0;
}
.hadship-front-wide .hadship-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 80px;
    width: 100%;
    box-sizing: border-box;
}

/* If the theme wraps the page content in a narrow column, break out. */
body .hadship-front-wide {
    max-width: none !important;
    background: #faf6ee;
}

@media (max-width: 1024px) {
    .hadship-front-wide .hadship-shell { padding: 20px 18px 60px; }
}
@media (max-width: 640px) {
    .hadship-front-wide .hadship-shell { padding: 16px 12px 60px; }
}

/* ---------- Redesigned web address card ---------- */

.hadship-addr-card {
    background: #ffffff;
    border: 1px solid #e7ddc8;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px -24px rgba(31, 27, 22, 0.45);
    margin-bottom: 28px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.hadship-addr-card-top {
    background: #1f1b16;
    color: #faf6ee;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.hadship-addr-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.hadship-addr-card-locker {
    background: #f09810;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.hadship-addr-card-body { padding: 8px 28px 8px; }
.hadship-addr-card-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1.5px dashed #e7ddc8;
    font-size: 1rem;
}
.hadship-addr-card-row:last-of-type { border-bottom: 0; }
.hadship-addr-card-label {
    color: #8a8170;
    font-weight: 500;
    width: 140px;
    flex-shrink: 0;
}
.hadship-addr-card-value {
    color: #1f1b16;
    font-weight: 700;
}
.hadship-addr-card-locker-pill {
    background: #f3ecdc;
    color: #d97f00;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 10px;
}
.hadship-addr-card-foot {
    padding: 14px 28px 22px;
    color: #8a8170;
    font-size: 0.88rem;
    border-top: 1px solid #f3ecdc;
}
@media (max-width: 640px) {
    .hadship-addr-card-top { padding: 18px 18px; }
    .hadship-addr-card-body { padding: 4px 18px 4px; }
    .hadship-addr-card-foot { padding: 12px 18px 18px; }
    .hadship-addr-card-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 0; }
    .hadship-addr-card-label { width: auto; font-size: 0.85rem; }
}

/* ---------- Package row enhancements ---------- */

.hadship-pkg {
    position: relative;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.4s;
}

/* Selection toolbar at top of Received panel */
.hadship-pkg-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #faf6ee;
    border: 1px solid #e7ddc8;
    border-radius: 12px;
}
.hadship-pkg-selectall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #1f1b16;
}
.hadship-pkg-selectall input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f09810;
}
.hadship-pkg-toolbar-meta { color: #8a8170; font-size: 0.9rem; }

/* Per-row checkbox */
.hadship-pkg .hadship-pkg-check {
    display: flex;
    align-items: center;
    padding-right: 12px;
}
.hadship-pkg-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #f09810;
}

/* Clickable thumbnail */
.hadship-pkg-thumb-clickable {
    cursor: zoom-in;
    transition: transform 0.15s;
}
.hadship-pkg-thumb-clickable:hover { transform: scale(1.04); }
.hadship-pkg-thumb-clickable:focus-visible {
    outline: 2px solid #f09810;
    outline-offset: 2px;
}

/* Customs status row inside .hadship-pkg-main */
.hadship-pkg-customs {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.hadship-pill-success {
    background: #e0f0d9 !important;
    color: #2f6b1f !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}
.hadship-pill-icon { display: inline-block; }
.hadship-link {
    background: transparent;
    border: 0;
    padding: 4px 6px;
    color: #d97f00;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.92rem;
}
.hadship-link:hover { color: #1f1b16; }

/* Red flash animation for missing-customs rows */
@keyframes hadship-pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(192, 57, 43, 0);
        border-color: #e7ddc8;
        background: #ffffff;
    }
    50% {
        box-shadow: 0 0 0 6px rgba(192, 57, 43, 0.18);
        border-color: #c0392b;
        background: #fff5f3;
    }
}
.hadship-pkg-flash {
    animation: hadship-pulse-red 1.4s ease-in-out infinite;
    border: 1.5px solid #c0392b !important;
    z-index: 1;
}

/* Floating consolidation bar */
.hadship-consol-bar {
    position: sticky;
    bottom: 16px;
    background: #ffffff;
    border: 1px solid #e7ddc8;
    border-radius: 18px;
    padding: 16px 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 12px 32px -12px rgba(31, 27, 22, 0.25);
    flex-wrap: wrap;
}
.hadship-consol-bar-text {
    flex: 1;
    min-width: 0;
}
.hadship-consol-bar-text strong { display: block; color: #1f1b16; }
.hadship-consol-bar[data-state="needs-customs"] {
    border-color: #c0392b;
    background: #fff5f3;
}
.hadship-consol-bar[data-state="needs-customs"] strong { color: #c0392b; }
.hadship-consol-bar[data-state="ready"] {
    border-color: #2f6b1f;
}
.hadship-fbtn-warn {
    background: #c0392b !important;
    color: #ffffff !important;
    border-color: #c0392b !important;
}
.hadship-fbtn-warn:hover { background: #a02d22 !important; }

.hadship-consol-opts {
    margin: 0;
}
.hadship-consol-opts summary {
    cursor: pointer;
    color: #d97f00;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 6px 10px;
    user-select: none;
}
.hadship-consol-opts[open] summary { margin-bottom: 8px; }
.hadship-consol-opts .hadship-opts-grid { padding: 8px 0 4px; }

@media (max-width: 640px) {
    .hadship-consol-bar { padding: 14px 16px; gap: 12px; }
    .hadship-consol-bar > * { flex-basis: 100%; }
    .hadship-consol-bar #hadship-consol-btn { width: 100%; }
}

/* ---------- Modal (customs) ---------- */

.hadship-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.hadship-modal[hidden] { display: none !important; }
.hadship-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 27, 22, 0.65);
    cursor: pointer;
}
.hadship-modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
    font-family: 'Manrope', -apple-system, sans-serif;
}
.hadship-modal-head {
    padding: 18px 24px;
    border-bottom: 1px solid #e7ddc8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #faf6ee;
}
.hadship-modal-title { margin: 0; font-size: 1.15rem; color: #1f1b16; font-weight: 700; }
.hadship-modal-close {
    background: transparent;
    border: 0;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #8a8170;
    padding: 0;
    width: 32px;
    height: 32px;
}
.hadship-modal-close:hover { color: #1f1b16; }
.hadship-modal-body { padding: 22px 24px; overflow-y: auto; flex: 1; }
.hadship-modal-loading { color: #8a8170; padding: 20px 0; text-align: center; }
.hadship-modal-error {
    background: #fde6e2;
    border: 1px solid #c0392b;
    color: #8a2820;
    padding: 10px 14px;
    border-radius: 10px;
    margin: 14px 0;
    font-size: 0.92rem;
}
.hadship-modal-note {
    background: #f3ecdc;
    border-left: 4px solid #f09810;
    color: #5b5347;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.92rem;
}
.hadship-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 1px solid #e7ddc8;
    flex-wrap: wrap;
}

/* Customs rows inside modal */
.hadship-customs-rows { margin: 4px 0 12px; }
.hadship-customs-row {
    background: #faf6ee;
    border: 1px solid #e7ddc8;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.hadship-customs-grid {
    display: grid;
    grid-template-columns: 2fr 0.6fr 0.9fr 0.9fr 1fr 1fr;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.hadship-customs-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.hadship-customs-grid label span {
    font-size: 0.78rem;
    color: #8a8170;
    font-weight: 600;
}
.hadship-customs-grid input {
    border: 1px solid #e7ddc8;
    border-radius: 8px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
}
.hadship-customs-grid input:focus {
    outline: 0;
    border-color: #f09810;
    box-shadow: 0 0 0 3px rgba(240, 152, 16, 0.15);
}
.hadship-input-invalid {
    border-color: #c0392b !important;
    background: #fff5f3 !important;
}
.hadship-row-del {
    background: transparent;
    border: 1px solid #e7ddc8;
    color: #8a8170;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}
.hadship-row-del:hover { background: #fde6e2; color: #c0392b; border-color: #c0392b; }

@media (max-width: 900px) {
    .hadship-customs-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hadship-customs-grid label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .hadship-modal { padding: 0; }
    .hadship-modal-dialog { border-radius: 0; max-height: 100vh; height: 100%; }
    .hadship-customs-grid { grid-template-columns: 1fr; }
    .hadship-customs-row { flex-direction: column; }
}

/* ---------- Lightbox ---------- */

.hadship-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}
.hadship-lightbox[hidden] { display: none !important; }
.hadship-lightbox img {
    max-width: 96vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.hadship-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}
.hadship-lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

/* ================================================================
 * v0.10.2 — Force orange brand colors, stat cards, modern customs
 * modal, white background, full data on package rows, multiple
 * delivery addresses as cards, modernized select-all toggle.
 * ================================================================ */

/* ---------- Force solid white background everywhere ---------- */
.hadship-front-wide,
.hadship-front-wide .hadship-shell {
    background: #ffffff !important;
}
body .hadship-front-wide { background: #ffffff !important; }
.hadship-front-wide .hadship-fcard,
.hadship-front-wide .hadship-pkg {
    background: #ffffff;
    border: 1px solid #ebe6dd;
}

/* ---------- Force Hadship orange on every interactive element ---------- */
.hadship-front-wide .hadship-fbtn-primary,
.hadship-front-wide button.hadship-fbtn-primary,
.hadship-front-wide a.hadship-fbtn-primary,
.hadship-front-wide input[type="submit"].hadship-fbtn-primary {
    background: #f09810 !important;
    background-image: none !important;
    border: 1px solid #f09810 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    padding: 11px 22px !important;
    border-radius: 10px !important;
    letter-spacing: 0.02em;
    transition: background 0.15s, transform 0.1s;
}
.hadship-front-wide .hadship-fbtn-primary:hover {
    background: #d97f00 !important;
    border-color: #d97f00 !important;
    color: #ffffff !important;
}
.hadship-front-wide .hadship-fbtn-primary:active {
    transform: translateY(1px);
}
.hadship-front-wide .hadship-fbtn-primary[disabled],
.hadship-front-wide .hadship-fbtn-primary:disabled {
    background: #f3ecdc !important;
    border-color: #e7ddc8 !important;
    color: #8a8170 !important;
    cursor: not-allowed;
}

.hadship-front-wide .hadship-fbtn:not(.hadship-fbtn-primary):not(.hadship-fbtn-warn) {
    background: #ffffff !important;
    border: 1px solid #e7ddc8 !important;
    color: #1f1b16 !important;
    border-radius: 10px !important;
    padding: 11px 22px !important;
    font-weight: 600 !important;
}
.hadship-front-wide .hadship-fbtn:not(.hadship-fbtn-primary):not(.hadship-fbtn-warn):hover {
    border-color: #f09810 !important;
    color: #d97f00 !important;
}

/* ---------- Stat cards (replace tab strip) ---------- */
.hadship-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin: 24px 0 28px;
}
.hadship-stat {
    background: #ffffff;
    border: 1.5px solid #ebe6dd;
    border-radius: 16px;
    padding: 20px 16px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: inherit;
    min-width: 0;
}
.hadship-stat:hover {
    border-color: #f09810;
    box-shadow: 0 10px 30px -18px rgba(240, 152, 16, 0.5);
    transform: translateY(-2px);
}
.hadship-stat.is-active {
    border-color: #f09810;
    background: linear-gradient(135deg, #fff7ea, #ffffff);
    box-shadow: 0 14px 32px -18px rgba(240, 152, 16, 0.55);
}
.hadship-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #1f1b16;
    line-height: 1;
}
.hadship-stat.is-active .hadship-stat-num { color: #d97f00; }
.hadship-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #8a8170;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
@media (max-width: 1200px) {
    .hadship-stat-label { font-size: 0.68rem; letter-spacing: 0.02em; }
    .hadship-stat { padding: 18px 12px; }
}
@media (max-width: 1100px) {
    .hadship-stats { grid-template-columns: repeat(3, 1fr); }
    .hadship-stat-label { font-size: 0.78rem; letter-spacing: 0.05em; }
}
@media (max-width: 700px) {
    .hadship-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .hadship-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hadship-stat { padding: 16px 14px; }
    .hadship-stat-num { font-size: 1.6rem; }
    .hadship-stat-label { font-size: 0.72rem; }
}

/* Hide the old tab strip when stats are used */
.hadship-front-wide .hadship-tabs { display: none !important; }

/* ---------- Modern Select-all toolbar ---------- */
.hadship-pkg-toolbar {
    background: #ffffff;
    border: 1.5px solid #ebe6dd;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.hadship-pkg-selectall {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #1f1b16;
    user-select: none;
}
.hadship-pkg-selectall input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid #cdc4ad;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    margin: 0;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}
.hadship-pkg-selectall input[type="checkbox"]:hover { border-color: #f09810; }
.hadship-pkg-selectall input[type="checkbox"]:checked,
.hadship-pkg-selectall input[type="checkbox"]:indeterminate {
    background: #f09810;
    border-color: #f09810;
}
.hadship-pkg-selectall input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.hadship-pkg-selectall input[type="checkbox"]:indeterminate::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    top: 8px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

/* Per-row checkbox uses the same modern style */
.hadship-pkg-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 1.5px solid #cdc4ad;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    margin: 0;
    flex-shrink: 0;
}
.hadship-pkg-checkbox:hover { border-color: #f09810; }
.hadship-pkg-checkbox:checked {
    background: #f09810;
    border-color: #f09810;
}
.hadship-pkg-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- Package row — full data layout ---------- */
.hadship-pkg {
    display: grid;
    grid-template-columns: auto 96px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    margin-bottom: 12px;
    border-radius: 14px;
    border: 1.5px solid #ebe6dd;
    background: #ffffff;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.4s;
}
.hadship-pkg:hover {
    border-color: #d4cdb6;
    box-shadow: 0 8px 24px -16px rgba(31, 27, 22, 0.18);
}
.hadship-pkg .hadship-pkg-check {
    padding-right: 0;
    align-self: center;
}
.hadship-pkg-thumb {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    background: #faf6ee;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ebe6dd;
}
.hadship-pkg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hadship-pkg-noimg {
    color: #8a8170;
    font-size: 0.75rem;
    text-align: center;
    padding: 4px;
}

.hadship-pkg-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hadship-pkg-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hadship-pkg-retailer {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f1b16;
}
.hadship-code {
    background: #f3ecdc;
    color: #5b5347;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Full data grid below the title */
.hadship-pkg-meta {
    color: #5b5347;
    font-size: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, auto));
    gap: 4px 22px;
}
.hadship-pkg-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.hadship-pkg-meta-label {
    color: #8a8170;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 4px;
}
.hadship-pkg-meta-value {
    color: #1f1b16;
    font-weight: 600;
}

.hadship-pkg-customs {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hadship-pkg-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .hadship-pkg {
        grid-template-columns: auto 72px 1fr;
        grid-template-areas:
            "check thumb main"
            "side  side  side";
        gap: 12px;
    }
    .hadship-pkg .hadship-pkg-check { grid-area: check; }
    .hadship-pkg-thumb { grid-area: thumb; width: 72px; height: 72px; }
    .hadship-pkg-main { grid-area: main; }
    .hadship-pkg-side {
        grid-area: side;
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ---------- Handling options as plain list (above button) ---------- */
.hadship-consol-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 14px;
}
.hadship-consol-bar-text {
    flex: none;
}
.hadship-handling-options {
    background: #faf6ee;
    border: 1px solid #ebe6dd;
    border-radius: 12px;
    padding: 14px 18px;
}
.hadship-handling-options-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #5b5347;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
}
.hadship-handling-options .hadship-opts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 18px;
}
@media (max-width: 600px) {
    .hadship-handling-options .hadship-opts-grid { grid-template-columns: 1fr; }
}
.hadship-handling-options .hadship-opt {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: #1f1b16;
    font-size: 0.92rem;
    padding: 4px 0;
}
.hadship-handling-options .hadship-opt input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #cdc4ad;
    border-radius: 5px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    margin: 0;
    flex-shrink: 0;
}
.hadship-handling-options .hadship-opt input[type="checkbox"]:checked {
    background: #f09810;
    border-color: #f09810;
}
.hadship-handling-options .hadship-opt input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Hide the old <details><summary> opts and other duplicates */
.hadship-consol-opts { display: none !important; }

/* ---------- Address card (refined to match high-res target) ---------- */
.hadship-addr-card {
    background: #ffffff;
    border: 1.5px solid #ebe6dd;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 50px -28px rgba(31, 27, 22, 0.35);
    margin: 0 auto 28px;
    max-width: 760px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.hadship-addr-card-top {
    background: #1f1b16;
    color: #ffffff;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.hadship-addr-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.hadship-addr-card-locker {
    background: #f09810;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}
.hadship-addr-card-body { padding: 6px 32px 6px; }
.hadship-addr-card-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1.5px dashed #ebe6dd;
    font-size: 1rem;
}
.hadship-addr-card-row:last-of-type { border-bottom: 0; }
.hadship-addr-card-label {
    color: #8a8170;
    font-weight: 500;
    width: 140px;
    flex-shrink: 0;
}
.hadship-addr-card-value {
    color: #1f1b16;
    font-weight: 700;
    text-align: right;
    flex: 1;
}
.hadship-addr-card-locker-pill {
    display: inline-block;
    background: #f3ecdc;
    color: #d97f00;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 10px;
    margin-left: 6px;
}
.hadship-addr-card-foot {
    padding: 14px 32px 22px;
    color: #8a8170;
    font-size: 0.88rem;
    border-top: 1px solid #f3ecdc;
}
@media (max-width: 640px) {
    .hadship-addr-card-top { padding: 18px 20px; }
    .hadship-addr-card-body { padding: 4px 20px 4px; }
    .hadship-addr-card-foot { padding: 12px 20px 18px; }
    .hadship-addr-card-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 0; }
    .hadship-addr-card-label { width: auto; font-size: 0.85rem; }
    .hadship-addr-card-value { text-align: left; }
}

/* ---------- Modern delivery address book ---------- */
.hadship-addr-book {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.hadship-addr-tile {
    background: #ffffff;
    border: 1.5px solid #ebe6dd;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.hadship-addr-tile:hover {
    border-color: #f09810;
    box-shadow: 0 10px 24px -18px rgba(240, 152, 16, 0.4);
}
.hadship-addr-tile.is-default {
    border-color: #f09810;
    background: linear-gradient(180deg, #fffaf2, #ffffff);
}
.hadship-addr-tile-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.hadship-addr-tile-label {
    font-weight: 700;
    color: #1f1b16;
    font-size: 1rem;
}
.hadship-addr-tile-default {
    background: #f09810;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hadship-addr-tile-body {
    color: #5b5347;
    font-size: 0.94rem;
    line-height: 1.55;
}
.hadship-addr-tile-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.hadship-addr-tile-action {
    background: transparent;
    border: 0;
    padding: 6px 0;
    color: #d97f00;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.88rem;
    text-decoration: none;
}
.hadship-addr-tile-action:hover { text-decoration: underline; }
.hadship-addr-tile-action.is-danger { color: #c0392b; }

.hadship-addr-tile-add {
    border: 1.5px dashed #cdc4ad;
    background: #faf6ee;
    color: #8a8170;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    min-height: 140px;
}
.hadship-addr-tile-add:hover {
    border-color: #f09810;
    color: #d97f00;
    background: #fffaf2;
}
.hadship-addr-tile-add svg { color: inherit; }

/* Modern address form (in modal or expanded section) */
.hadship-addr-form {
    background: #ffffff;
    border: 1.5px solid #ebe6dd;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}
.hadship-addr-form h3 {
    margin: 0 0 18px;
    font-size: 1.05rem;
    color: #1f1b16;
}
.hadship-addr-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.hadship-addr-form-grid .full { grid-column: 1 / -1; }
.hadship-addr-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.84rem;
    color: #5b5347;
    font-weight: 600;
}
.hadship-addr-form input,
.hadship-addr-form select {
    border: 1.5px solid #ebe6dd;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #ffffff;
    color: #1f1b16;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hadship-addr-form input:focus,
.hadship-addr-form select:focus {
    outline: 0;
    border-color: #f09810;
    box-shadow: 0 0 0 3px rgba(240, 152, 16, 0.15);
}
.hadship-addr-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .hadship-addr-form-grid { grid-template-columns: 1fr; }
}

/* ---------- Modern customs modal (equal field grid) ---------- */
.hadship-modal-dialog {
    max-width: 980px;
    border-radius: 22px;
}
.hadship-modal-head {
    background: #ffffff;
    border-bottom: 1.5px solid #ebe6dd;
    padding: 22px 28px;
}
.hadship-modal-title {
    font-size: 1.2rem;
}
.hadship-modal-body {
    padding: 24px 28px;
    background: #ffffff;
}
.hadship-modal-note {
    background: #fffaf2;
    border-left: 4px solid #f09810;
    color: #5b5347;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.94rem;
    font-weight: 500;
}
.hadship-customs-rows { margin: 6px 0 14px; }
.hadship-customs-row {
    background: #ffffff;
    border: 1.5px solid #ebe6dd;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
}
.hadship-customs-grid {
    display: grid;
    /* 6 equal columns: Description / Qty / Value / Weight / HS code / Origin */
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.hadship-customs-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.hadship-customs-grid label span {
    font-size: 0.78rem;
    color: #5b5347;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.hadship-customs-grid input {
    border: 1.5px solid #ebe6dd;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.94rem;
    background: #ffffff;
    color: #1f1b16;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hadship-customs-grid input:focus {
    outline: 0;
    border-color: #f09810;
    box-shadow: 0 0 0 3px rgba(240, 152, 16, 0.15);
}
.hadship-customs-row .hadship-row-del {
    align-self: flex-start;
    margin-top: 22px; /* align with the input row, not the label */
}
.hadship-input-invalid {
    border-color: #c0392b !important;
    background: #fff5f3 !important;
}

@media (max-width: 1100px) {
    .hadship-customs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Description spans two columns on this breakpoint for readability */
    .hadship-customs-grid label:first-child { grid-column: span 3; }
}
@media (max-width: 720px) {
    .hadship-customs-grid { grid-template-columns: 1fr 1fr; }
    .hadship-customs-grid label:first-child { grid-column: span 2; }
}
@media (max-width: 480px) {
    .hadship-customs-grid { grid-template-columns: 1fr; }
    .hadship-customs-grid label:first-child { grid-column: span 1; }
    .hadship-customs-row { grid-template-columns: 1fr; }
    .hadship-customs-row .hadship-row-del { margin-top: 0; align-self: flex-end; }
}

.hadship-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 18px;
    margin-top: 8px;
    border-top: 1.5px solid #ebe6dd;
}


/* ================================================================
 * v0.10.3 — De-stick consolidation bar, edit-button as light-orange
 * pill beside green badge, package meta wraps cleanly without
 * overlap, address book delete/add buttons sized + colored,
 * modern address form matches customs modal.
 * ================================================================ */

/* ---------- De-stick the consolidation bar ---------- */
.hadship-front-wide .hadship-consol-bar {
    position: static !important;
    bottom: auto;
    margin-top: 20px;
    border-radius: 14px;
    box-shadow: 0 0 0 0 rgba(0,0,0,0); /* remove the floating shadow */
}

/* ---------- Customs status: green pill + light-orange Edit button ---------- */
.hadship-pkg-customs {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
/* Light-orange Edit pill — visually paired with the green badge */
.hadship-front-wide .hadship-link.hadship-customs-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #fff3df;
    color: #d97f00;
    border: 1px solid #f9d8a8;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hadship-front-wide .hadship-link.hadship-customs-trigger:hover {
    background: #f09810;
    border-color: #f09810;
    color: #ffffff;
    text-decoration: none;
}
/* The green badge needs equal vertical sizing for alignment */
.hadship-pkg-customs .hadship-pill-success {
    padding: 6px 14px;
    line-height: 1.1;
    font-size: 0.84rem;
    border-radius: 999px;
}

/* ---------- Package row: allow wrapping, no overlap ---------- */
/* Stretch meta to a flex-wrap row so items break naturally to a second line. */
.hadship-pkg-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px 24px;
    align-items: center;
}
.hadship-pkg-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
    /* keep label+value together but don't force the whole pair on one line on small screens */
    white-space: normal;
}
.hadship-pkg-meta-label {
    color: #8a8170;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.hadship-pkg-meta-value {
    color: #1f1b16;
    font-weight: 600;
    font-size: 0.92rem;
    word-break: break-word; /* long tracking numbers don't overflow */
    overflow-wrap: anywhere;
}

/* Slightly more breathing room around the thumbnail at desktop width */
@media (min-width: 900px) {
    .hadship-pkg {
        grid-template-columns: auto 110px 1fr auto;
        gap: 20px;
        padding: 18px 22px;
    }
    .hadship-pkg-thumb {
        width: 110px;
        height: 110px;
    }
}

/* ---------- Copy-address button placement (account + dashboard) ---------- */
.hadship-card-actions-copy {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0 28px;
    max-width: 760px; /* match address card width so it aligns with the card */
    margin-left: auto;
    margin-right: auto;
}
.hadship-card-actions-copy .hadship-fbtn {
    padding: 9px 18px !important;
    font-size: 0.92rem !important;
}

/* ---------- Address book actions — small, orange-toned ---------- */
.hadship-addr-tile {
    padding: 16px 18px;
    gap: 8px;
}
.hadship-addr-tile-actions {
    margin-top: 6px;
    gap: 14px;
    align-items: center;
}
.hadship-addr-tile-action {
    background: transparent;
    border: 0;
    padding: 4px 0;
    color: #d97f00;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.82rem;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.hadship-addr-tile-action:hover {
    color: #f09810;
    text-decoration: underline;
}
.hadship-addr-tile-action.is-danger {
    color: #d97f00; /* still in brand palette, not red */
    opacity: 0.7;
}
.hadship-addr-tile-action.is-danger:hover {
    color: #c0392b;
    opacity: 1;
    text-decoration: underline;
}

/* ---------- "Add new address" — normal button, not bulky tile ---------- */
.hadship-addr-add-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 18px;
}
/* Hide the old dashed full-width tile in favor of a regular button */
.hadship-addr-tile-add { display: none !important; }

/* ---------- Modern address form — matches customs modal grid ---------- */
.hadship-addr-form {
    background: #ffffff;
    border: 1.5px solid #ebe6dd;
    border-radius: 16px;
    padding: 24px 28px;
    margin: 8px 0 24px;
    box-shadow: 0 16px 36px -28px rgba(31, 27, 22, 0.25);
}
.hadship-addr-form h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: #1f1b16;
    font-weight: 700;
}
.hadship-addr-form-sub {
    color: #8a8170;
    font-size: 0.9rem;
    margin: 0 0 20px;
}
.hadship-addr-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
}
.hadship-addr-form-grid .full { grid-column: 1 / -1; }
.hadship-addr-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.84rem;
    color: #5b5347;
    font-weight: 700;
}
.hadship-addr-form input,
.hadship-addr-form select {
    border: 1.5px solid #ebe6dd;
    border-radius: 10px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #ffffff;
    color: #1f1b16;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    box-sizing: border-box;
}
.hadship-addr-form input::placeholder { color: #b3a991; font-weight: 500; }
.hadship-addr-form input:focus,
.hadship-addr-form select:focus {
    outline: 0;
    border-color: #f09810;
    box-shadow: 0 0 0 3px rgba(240, 152, 16, 0.15);
}
.hadship-addr-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%238a8170' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.hadship-addr-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1.5px solid #ebe6dd;
    flex-wrap: wrap;
}
.hadship-addr-form-actions .hadship-fbtn-primary {
    padding: 11px 28px !important;
    min-width: 160px;
}
@media (max-width: 640px) {
    .hadship-addr-form-grid { grid-template-columns: 1fr; }
    .hadship-addr-form-actions .hadship-fbtn-primary { width: 100%; min-width: 0; }
    .hadship-addr-form-actions { flex-direction: column-reverse; }
    .hadship-addr-form-actions .hadship-fbtn { width: 100%; text-align: center; }
}


/* ================================================================
 * v0.10.5 — Customs modal polish: hide row-delete when single row,
 * Cancel + Save on the same line (no full-width Flatsome gradient).
 * ================================================================ */

/* Single-row mode: hide the per-row delete button entirely.
   Once a second row is added, JS removes this class and the
   button reappears on every row. */
.hadship-customs-rows--single .hadship-row-del {
    display: none !important;
}

/* Per-row delete: subtle icon-button, not the orphaned card it was. */
.hadship-customs-row {
    position: relative;
}
.hadship-front-wide .hadship-row-del {
    background: transparent !important;
    border: 0 !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    color: #8a8170 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s, color 0.15s;
    align-self: flex-start !important;
    margin-top: 24px !important;
}
.hadship-front-wide .hadship-row-del:hover {
    background: #fde6e2 !important;
    color: #c0392b !important;
}

/* Modal actions: Cancel + Save on the SAME line, right-aligned,
   neither stretches to full width. Defeats Flatsome's
   `button[type=submit] { display:block; width:100% }` overrides. */
.hadship-front-wide .hadship-modal-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    width: 100% !important;
    padding-top: 18px !important;
    margin-top: 8px !important;
    border-top: 1.5px solid #ebe6dd !important;
}
.hadship-front-wide .hadship-modal-actions .hadship-fbtn,
.hadship-front-wide .hadship-modal-actions .hadship-fbtn-primary,
.hadship-front-wide .hadship-modal-actions button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 120px !important;
    max-width: none !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}
.hadship-front-wide .hadship-modal-actions .hadship-fbtn-primary {
    min-width: 180px !important;
}

/* Mobile: stack the two buttons but keep both full-width and equal. */
@media (max-width: 480px) {
    .hadship-front-wide .hadship-modal-actions {
        flex-direction: column-reverse !important;
    }
    .hadship-front-wide .hadship-modal-actions .hadship-fbtn,
    .hadship-front-wide .hadship-modal-actions .hadship-fbtn-primary,
    .hadship-front-wide .hadship-modal-actions button {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Polish the customs-row spacing so the delete icon doesn't push
   the inputs around when it shows up. */
.hadship-customs-row {
    align-items: stretch;
}
.hadship-customs-row .hadship-customs-grid {
    min-width: 0;
}


/* ================================================================
 * v0.10.6 — Copy button in address card header, force-orange delete,
 * delivery address picker in consolidation flow, auto-dismiss notice.
 * ================================================================ */

/* ---------- Address card header: title + locker + copy button ---------- */
.hadship-addr-card-top {
    flex-wrap: wrap;
    gap: 12px;
}
.hadship-addr-card-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hadship-addr-card-copy {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer !important;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    box-shadow: none !important;
    text-shadow: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}
.hadship-addr-card-copy:hover {
    background: #f09810 !important;
    border-color: #f09810 !important;
    color: #ffffff !important;
}
.hadship-addr-card-copy-icon { display: inline-block; }
.hadship-addr-card-copy.is-copied {
    background: #2f6b1f !important;
    border-color: #2f6b1f !important;
}

/* ---------- Force-orange delete button on address tiles ---------- */
/* Flatsome was painting the inline form button purple — defeat it. */
.hadship-front-wide .hadship-addr-tile form,
.hadship-front-wide .hadship-addr-tile-actions form {
    display: inline !important;
    background: transparent !important;
}
.hadship-front-wide .hadship-addr-tile-action,
.hadship-front-wide .hadship-addr-tile form button,
.hadship-front-wide .hadship-addr-tile-actions form button {
    display: inline-flex !important;
    align-items: center !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    color: #d97f00 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    width: auto !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    height: auto !important;
}
.hadship-front-wide .hadship-addr-tile-action:hover,
.hadship-front-wide .hadship-addr-tile form button:hover {
    color: #f09810 !important;
    background: transparent !important;
    text-decoration: underline !important;
}
.hadship-front-wide .hadship-addr-tile-action.is-danger {
    color: #d97f00 !important;
    opacity: 0.7;
}
.hadship-front-wide .hadship-addr-tile-action.is-danger:hover {
    color: #c0392b !important;
    opacity: 1;
}

/* ---------- Delivery address picker inside consolidation panel ---------- */
.hadship-consol-addrs {
    background: #faf6ee;
    border: 1px solid #ebe6dd;
    border-radius: 12px;
    padding: 14px 18px;
}
.hadship-consol-addrs .hadship-handling-options-title { margin-bottom: 12px; }

.hadship-consol-addr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.hadship-consol-addr-tile {
    background: #ffffff;
    border: 1.5px solid #ebe6dd;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    position: relative;
}
.hadship-consol-addr-tile:hover {
    border-color: #d97f00;
}
.hadship-consol-addr-tile input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid #cdc4ad;
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    margin: 2px 0 0 0;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
}
.hadship-consol-addr-tile input[type="radio"]:checked {
    border-color: #f09810;
    background: #ffffff;
}
.hadship-consol-addr-tile input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #f09810;
}
.hadship-consol-addr-tile:has(input[type="radio"]:checked) {
    border-color: #f09810;
    background: #fffaf2;
    box-shadow: 0 0 0 3px rgba(240, 152, 16, 0.12);
}
.hadship-consol-addr-tile-body {
    flex: 1;
    min-width: 0;
}
.hadship-consol-addr-tile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.hadship-consol-addr-tile-label {
    font-weight: 700;
    color: #1f1b16;
    font-size: 0.95rem;
}
.hadship-consol-addr-tile-default {
    background: #f09810;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hadship-consol-addr-tile-lines {
    color: #5b5347;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* "+ Add new address" inline tile */
.hadship-consol-addr-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1.5px dashed #cdc4ad;
    border-radius: 12px;
    padding: 14px 16px;
    color: #8a8170;
    text-decoration: none;
    font-weight: 600;
    min-height: 100px;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.hadship-consol-addr-add:hover {
    border-color: #f09810;
    color: #d97f00;
    background: #fffaf2;
    text-decoration: none;
}

.hadship-consol-addr-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}

/* ---------- Auto-dismissable success notice ---------- */
.hadship-fnote {
    transition: opacity 0.4s ease, max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    overflow: hidden;
}
.hadship-fnote.hadship-fnote-dismissing {
    opacity: 0;
    max-height: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* ================================================================
 * v0.10.7 — Customs status row baseline-aligned, address form
 * restyled with ShipSaving-inspired field design (Hadship orange),
 * inline "+Add new address" opens a modal popup instead of routing.
 * ================================================================ */

/* ---------- Customs status row: perfectly aligned badge + Edit ---------- */
.hadship-pkg-customs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap; /* keep badge and edit on one row when possible */
    margin-top: 8px;
    line-height: 1;
}
.hadship-pkg-customs .hadship-pill,
.hadship-pkg-customs .hadship-link.hadship-customs-trigger {
    /* Identical box-model so they sit on the same baseline */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-sizing: border-box;
    white-space: nowrap;
    margin: 0 !important;
    min-width: 0 !important;
    width: auto !important;
}
.hadship-pkg-customs .hadship-pill-success {
    gap: 6px;
}
.hadship-pkg-customs .hadship-pill-icon { display: inline-block; }
@media (max-width: 540px) {
    .hadship-pkg-customs { flex-wrap: wrap; }
}

/* ---------- ShipSaving-inspired modern address form (Hadship orange) ---------- */
/* Applies to .hadship-addr-form everywhere it's used (account + modal) */
.hadship-front-wide .hadship-addr-form,
.hadship-modal .hadship-addr-form,
.hadship-addr-form {
    background: #ffffff;
    border: 1.5px solid #ebe6dd;
    border-radius: 16px;
    padding: 28px 32px;
    margin: 8px 0 24px;
    box-shadow: 0 16px 40px -28px rgba(31, 27, 22, 0.25);
}
.hadship-addr-form h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #1f1b16;
    font-weight: 700;
}
.hadship-addr-form-sub {
    color: #8a8170;
    font-size: 0.92rem;
    margin: 0 0 24px;
}

.hadship-addr-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 22px;
}
.hadship-addr-form-grid .full { grid-column: 1 / -1; }

.hadship-addr-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.78rem;
    color: #5b5347;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

/* The core "ShipSaving-style" input: soft cream background, 2px border,
   12px radius, ~48px min-height, orange focus ring + white background on focus. */
.hadship-front-wide .hadship-addr-form input,
.hadship-front-wide .hadship-addr-form select,
.hadship-modal .hadship-addr-form input,
.hadship-modal .hadship-addr-form select,
.hadship-addr-form input,
.hadship-addr-form select {
    border: 2px solid #ebe6dd !important;
    border-radius: 12px !important;
    padding: 13px 16px !important;
    font-family: inherit !important;
    font-size: 0.97rem !important;
    background: #faf6ee !important;
    color: #1f1b16 !important;
    min-height: 50px !important;
    line-height: 1.4 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 500 !important;
    appearance: auto;
    -webkit-appearance: auto;
}
.hadship-addr-form input::placeholder {
    color: #b3a991;
    font-weight: 500;
}
.hadship-addr-form input:focus,
.hadship-addr-form select:focus {
    outline: 0 !important;
    border-color: #f09810 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(240, 152, 16, 0.18) !important;
}
.hadship-addr-form select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'><path fill='%23f09810' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-color: #faf6ee !important;
    padding-right: 44px !important;
    cursor: pointer;
}
.hadship-addr-form select:focus {
    background-color: #ffffff !important;
}

.hadship-addr-form-actions {
    display: flex !important;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1.5px solid #ebe6dd;
    flex-wrap: wrap;
}
.hadship-addr-form-actions .hadship-fbtn-primary {
    padding: 13px 30px !important;
    min-width: 180px;
    border-radius: 999px !important;  /* Pill, matching ShipSaving */
}
.hadship-addr-form-actions .hadship-fbtn {
    border-radius: 999px !important;
    padding: 13px 26px !important;
}
@media (max-width: 640px) {
    .hadship-addr-form { padding: 22px 20px; }
    .hadship-addr-form-grid { grid-template-columns: 1fr; gap: 16px; }
    .hadship-addr-form-actions { flex-direction: column-reverse; }
    .hadship-addr-form-actions .hadship-fbtn,
    .hadship-addr-form-actions .hadship-fbtn-primary {
        width: 100%;
        min-width: 0;
    }
}

/* ---------- Address modal (for the in-flow "Add new address" popup) ---------- */
/* Re-uses the .hadship-modal shell but caps dialog width so the form looks
   intentional rather than a stretched-out version of the customs modal. */
#hadship-addr-modal .hadship-modal-dialog {
    max-width: 780px;
}
#hadship-addr-modal .hadship-modal-body {
    padding: 0;
}
#hadship-addr-modal .hadship-addr-form {
    border: 0;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
    padding: 26px 32px 28px;
}
#hadship-addr-modal .hadship-modal-loading {
    padding: 60px 0;
    text-align: center;
    color: #8a8170;
}
#hadship-addr-modal .hadship-modal-error {
    background: #fde6e2;
    border: 1px solid #c0392b;
    color: #8a2820;
    padding: 11px 14px;
    border-radius: 10px;
    margin: 14px 32px 0;
    font-size: 0.92rem;
}


/* ================================================================
 * v0.10.8 — Expandable consolidation cards with per-package rows
 * and a nested customs table per package.
 * ================================================================ */

.hadship-consol-card {
    padding: 0;
    overflow: hidden;
}

/* Card header — single-line row: code, status, packages, weight, requested, toggle */
.hadship-consol-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 22px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s ease, background 0.18s ease;
    flex-wrap: nowrap;
}
.hadship-consol-card-head:hover {
    background: #fffaf2;
}
.hadship-consol-card-headinfo {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    overflow: hidden;
}
/* The code + status pill pair sits on the left, never wraps. */
.hadship-consol-card-headinfo > .hadship-pkg-top {
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.hadship-consol-card-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0 22px;
    margin: 0;
    color: #5b5347;
    font-size: 0.9rem;
    min-width: 0;
    overflow: hidden;
}
.hadship-consol-card-meta .hadship-pkg-meta-item {
    white-space: nowrap;
    flex: 0 0 auto;
    line-height: 1.2;
}

/* The View details button — pill, subtle, rotates chevron when open */
.hadship-front-wide .hadship-consol-card-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    background: #ffffff !important;
    border: 1.5px solid #ebe6dd !important;
    color: #5b5347 !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    height: auto !important;
    width: auto !important;
    min-width: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background-image: none !important;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    flex-shrink: 0;
    align-self: center;
}
.hadship-front-wide .hadship-consol-card-toggle:hover {
    border-color: #f09810 !important;
    color: #d97f00 !important;
    background: #ffffff !important;
}
.hadship-consol-card-toggle-icon {
    transition: transform 0.2s ease;
    display: inline-block;
}
.hadship-consol-card-toggle[aria-expanded="true"] .hadship-consol-card-toggle-icon {
    transform: rotate(180deg);
}
.hadship-consol-card-toggle[aria-expanded="true"] {
    background: #fff3df !important;
    border-color: #f9d8a8 !important;
    color: #d97f00 !important;
}

/* Body — only shown when expanded */
.hadship-consol-card-body {
    border-top: 1px solid #ebe6dd;
    background: #faf6ee;
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hadship-consol-card-body[hidden] { display: none; }

/* Each package inside the consolidation */
.hadship-consol-pkg {
    background: #ffffff;
    border: 1px solid #ebe6dd;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hadship-consol-pkg-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hadship-consol-pkg-head-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hadship-consol-pkg-head-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    font-size: 0.88rem;
}

/* Nested customs items table */
.hadship-consol-pkg-customs {
    background: #faf6ee;
    border: 1px solid #ebe6dd;
    border-radius: 10px;
    padding: 12px 14px;
}
.hadship-consol-customs-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #8a8170;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.hadship-consol-customs-empty {
    color: #8a8170;
    font-size: 0.86rem;
    font-style: italic;
}
.hadship-consol-customs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}
.hadship-consol-customs-table th {
    text-align: left;
    color: #8a8170;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 10px 8px;
    border-bottom: 1.5px solid #ebe6dd;
}
.hadship-consol-customs-table td {
    color: #1f1b16;
    padding: 8px 10px;
    border-bottom: 1px solid #f3ecdc;
    vertical-align: top;
}
.hadship-consol-customs-table tr:last-child td {
    border-bottom: 0;
}

/* Tracking row inside the body */
.hadship-consol-card-track {
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #ebe6dd;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1f1b16;
}
.hadship-consol-card-track a {
    color: #d97f00;
    font-weight: 600;
    text-decoration: none;
}
.hadship-consol-card-track a:hover {
    text-decoration: underline;
}

/* Footer CTA when ready to ship */
.hadship-consol-card-actions {
    padding: 14px 22px;
    border-top: 1px solid #ebe6dd;
    background: #ffffff;
    display: flex;
    justify-content: flex-end;
    margin: 0 !important;
}

/* Tablet: allow meta to wrap to a second line if the viewport is tight,
   while still keeping the code+pill+toggle horizontally aligned. */
@media (max-width: 980px) {
    .hadship-consol-card-headinfo {
        flex-wrap: wrap;
        gap: 8px 14px;
    }
    .hadship-consol-card-meta {
        flex-basis: 100%;
        flex-wrap: wrap;
        gap: 4px 18px;
    }
}

/* Mobile: stack header info above the toggle button */
@media (max-width: 640px) {
    .hadship-consol-card-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 16px 18px;
    }
    .hadship-front-wide .hadship-consol-card-toggle {
        align-self: flex-start;
    }
    .hadship-consol-card-body {
        padding: 14px 18px 18px;
    }
    .hadship-consol-pkg {
        padding: 12px 14px;
    }
    /* Make the customs table horizontally scrollable on phones */
    .hadship-consol-pkg-customs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .hadship-consol-customs-table {
        min-width: 540px;
    }
}


/* ================================================================
 * v0.10.9 — Inline rates picker inside the consolidation card, with
 * carrier logos, prettified service names, Hadship orange CTAs, and
 * a 2-section layout (new-box summary + carrier list).
 * ================================================================ */

/* Section dividers inside the expanded body */
.hadship-consol-section {
    background: #ffffff;
    border: 1px solid #ebe6dd;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.hadship-consol-section:last-child { margin-bottom: 0; }
.hadship-consol-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #5b5347;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

/* ----- Section A: New consolidated package info box ----- */
.hadship-consol-section--ready { background: #fffaf2; border-color: #f9d8a8; }
.hadship-consol-newbox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px 22px;
}
.hadship-consol-newbox-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #f3ecdc;
    border-radius: 10px;
}
.hadship-consol-newbox-row .hadship-pkg-meta-label { font-size: 0.7rem; }
.hadship-consol-newbox-row .hadship-pkg-meta-value { font-size: 1rem; }

/* ----- Section B: Carrier rates list ----- */
.hadship-consol-section--rates { background: #ffffff; }
.hadship-consol-rates-sub {
    color: #8a8170;
    font-size: 0.92rem;
    margin: -4px 0 16px;
}
.hadship-rates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hadship-rate-card {
    display: grid;
    grid-template-columns: 96px 1fr auto auto;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1.5px solid #ebe6dd;
    border-radius: 14px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.hadship-rate-card:hover {
    border-color: #f09810;
    box-shadow: 0 10px 24px -18px rgba(240, 152, 16, 0.4);
}
.hadship-rate-logo {
    width: 110px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #ebe6dd;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.hadship-rate-logo img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}
.hadship-rate-logo-fallback {
    font-weight: 800;
    color: #5b5347;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}
.hadship-rate-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hadship-rate-service {
    color: #1f1b16;
    font-weight: 700;
    font-size: 1rem;
}
.hadship-rate-days {
    color: #8a8170;
    font-size: 0.84rem;
}
.hadship-rate-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}
.hadship-rate-price-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f1b16;
    line-height: 1;
}
.hadship-rate-price-currency {
    font-size: 0.72rem;
    color: #8a8170;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hadship-front-wide .hadship-rate-cta {
    border-radius: 999px !important;
    padding: 11px 22px !important;
    font-size: 0.88rem !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.hadship-consol-rates-note {
    margin: 14px 0 0;
    color: #8a8170;
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.5;
    padding: 10px 14px;
    background: #faf6ee;
    border-left: 3px solid #f09810;
    border-radius: 8px;
}

/* Mobile: stack rate card so logo+info on top, price+CTA below */
@media (max-width: 720px) {
    .hadship-rate-card {
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            "logo info"
            "price price"
            "cta cta";
        gap: 10px 14px;
    }
    .hadship-rate-logo { grid-area: logo; width: 72px; height: 40px; }
    .hadship-rate-info { grid-area: info; }
    .hadship-rate-price {
        grid-area: price;
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        gap: 6px;
    }
    .hadship-front-wide .hadship-rate-cta {
        grid-area: cta;
        width: 100% !important;
    }
}


/* ================================================================
 * v0.10.10 — Consolidated card adjustments: header row with package
 * info + delivery address side-by-side; rate card grid updated for
 * the larger carrier logo box.
 * ================================================================ */

/* Two-column header: consolidated info + delivery address */
.hadship-consol-ready-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
.hadship-consol-ready-header .hadship-consol-section {
    margin-bottom: 0;
    height: 100%;
}
@media (max-width: 760px) {
    .hadship-consol-ready-header { grid-template-columns: 1fr; }
}

.hadship-consol-section--deliver {
    background: #ffffff;
    border-color: #ebe6dd;
}
.hadship-consol-deliver-card {
    background: #faf6ee;
    border: 1px solid #f3ecdc;
    border-radius: 10px;
    padding: 14px 16px;
}
.hadship-consol-deliver-label {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1f1b16;
    margin-bottom: 6px;
}
.hadship-consol-deliver-lines {
    color: #5b5347;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Update rate card grid for the larger logo column */
.hadship-rate-card {
    grid-template-columns: 110px 1fr auto auto;
}
@media (max-width: 720px) {
    .hadship-rate-card {
        grid-template-columns: 88px 1fr;
        grid-template-areas:
            "logo info"
            "price price"
            "cta cta";
    }
    .hadship-rate-logo { grid-area: logo; width: 88px; height: 52px; }
}


/* ================================================================
 * v0.10.32 — Customer dashboard two-column overview.
 *
 * Inserts a Wallet / Addresses / My-cards column next to the existing
 * "Your Hadship address" card. All selectors are namespaced under
 * .hadship-front-wide so they only apply on the dashboard, and the
 * key text/display properties carry !important to defeat theme
 * uppercasing/anchor-block overrides (Flatsome being the usual
 * culprit on Hadship installs).
 * ================================================================ */

/* ---- 2-column grid ---- */
.hadship-front-wide .hadship-dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin: 0 0 32px;
}
.hadship-front-wide .hadship-dash-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
@media (max-width: 960px) {
    .hadship-front-wide .hadship-dash-grid { grid-template-columns: 1fr; }
}

/* Address card in left column — drop the centering + max-width. */
.hadship-front-wide .hadship-dash-left .hadship-addr-card {
    max-width: none;
    margin: 0;
}

/* ---- Side card shell ---- */
.hadship-front-wide .hs-side-card {
    background: #ffffff;
    border: 1.5px solid #ebe6dd;
    border-radius: 18px;
    box-shadow: 0 10px 24px -18px rgba(31, 27, 22, 0.28);
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.hadship-front-wide .hs-side-card:hover { border-color: #f09810; }
.hadship-front-wide .hs-side-card.is-expanded {
    border-color: #f09810;
    box-shadow: 0 10px 24px -18px rgba(240, 152, 16, 0.4);
}

/* Header toggle — full-width button */
.hadship-front-wide .hs-side-card-toggle {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #1f1b16;
    text-align: left;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.3 !important;
    min-height: auto;
    box-shadow: none !important;
    transition: background 0.15s;
}
.hadship-front-wide .hs-side-card-toggle:hover { background: #fbf7ee; }
.hadship-front-wide .hs-side-card-toggle:focus-visible {
    outline: 2px solid #f09810;
    outline-offset: -3px;
    border-radius: 18px;
}
.hadship-front-wide .hs-side-card-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #1f1b16 !important;
    text-transform: none !important;
    letter-spacing: 0.005em !important;
}
.hadship-front-wide .hs-side-card-title .ico {
    width: 30px; height: 30px;
    border-radius: 9px;
    background: #f3ecdc; color: #d97f00;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hadship-front-wide .hs-side-card-summary {
    display: flex; align-items: center; gap: 10px;
    margin-left: auto;
}
.hadship-front-wide .hs-side-card-meta {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #1f1b16 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-variant-numeric: tabular-nums;
}
.hadship-front-wide .hs-side-card-meta.muted {
    color: #8a8170 !important;
    font-weight: 600 !important;
    font-size: 0.78rem !important;
}
.hadship-front-wide .hs-chevron {
    color: #8a8170; flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s;
}
.hadship-front-wide .hs-side-card.is-expanded .hs-chevron {
    transform: rotate(180deg);
    color: #d97f00;
}

/* Expand/collapse — grid-template-rows 0→1 trick */
.hadship-front-wide .hs-side-card-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.hadship-front-wide .hs-side-card-content > .hs-side-card-inner {
    overflow: hidden;
    min-height: 0;
}
.hadship-front-wide .hs-side-card.is-expanded .hs-side-card-content {
    grid-template-rows: 1fr;
}
.hadship-front-wide .hs-side-card-inner-pad { padding: 4px 22px 20px; }

/* ---- Wallet card body ---- */
.hadship-front-wide .hs-wallet-amount {
    display: flex; align-items: baseline; gap: 6px; margin: 6px 0 2px;
}
.hadship-front-wide .hs-wallet-currency {
    font-size: 1.05rem; font-weight: 700; color: #8a8170;
    text-transform: none !important;
}
.hadship-front-wide .hs-wallet-balance {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #1f1b16 !important;
    letter-spacing: -0.02em !important;
    line-height: 1 !important;
    text-transform: none !important;
}
.hadship-front-wide .hs-wallet-sub {
    color: #8a8170 !important;
    font-size: 0.85rem !important;
    margin-bottom: 14px;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.hadship-front-wide .hs-wallet-activity {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: #fffaf2;
    border: 1px dashed #ebe6dd;
    border-radius: 10px;
    font-size: 0.82rem !important;
    color: #8a8170 !important;
    margin-bottom: 14px;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.hadship-front-wide .hs-wallet-activity .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #f09810; flex-shrink: 0;
}
.hadship-front-wide .hs-wallet-activity b { color: #1f1b16; font-weight: 700; }

/* ---- Side-card action row + buttons ---- */
.hadship-front-wide .hs-side-actions {
    display: flex !important;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Theme-proof button styling — every consumer of .hs-btn overrides
   the theme's button/anchor defaults that otherwise force display:block,
   uppercase, full-width, or other surprises. */
.hadship-front-wide .hs-btn,
.hadship-front-wide a.hs-btn,
.hadship-front-wide button.hs-btn,
.hadship-front-wide input[type="button"].hs-btn,
.hadship-front-wide input[type="submit"].hs-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto !important;
    min-width: 0 !important;
    max-width: none;
    height: auto !important;
    min-height: 0 !important;
    background: #fff;
    border: 1px solid #e7ddc8 !important;
    color: #1a1a1a !important;
    border-radius: 8px !important;
    padding: 9px 14px !important;
    margin: 0 !important;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
    transform: none !important;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    vertical-align: middle;
}
.hadship-front-wide .hs-btn:hover,
.hadship-front-wide a.hs-btn:hover,
.hadship-front-wide button.hs-btn:hover { border-color: #f09810 !important; }

.hadship-front-wide .hs-btn-primary,
.hadship-front-wide a.hs-btn-primary,
.hadship-front-wide button.hs-btn-primary {
    background: #f09810 !important;
    border-color: #f09810 !important;
    color: #fff !important;
}
.hadship-front-wide .hs-btn-primary:hover,
.hadship-front-wide a.hs-btn-primary:hover,
.hadship-front-wide button.hs-btn-primary:hover {
    background: #d4830a !important;
    border-color: #d4830a !important;
    color: #fff !important;
}

.hadship-front-wide .hs-btn-ghost,
.hadship-front-wide a.hs-btn-ghost {
    background: transparent !important;
    border-color: transparent !important;
    color: #d97f00 !important;
    padding: 9px 6px !important;
}
.hadship-front-wide .hs-btn-ghost:hover,
.hadship-front-wide a.hs-btn-ghost:hover {
    background: transparent !important;
    color: #f09810 !important;
    border-color: transparent !important;
}

/* ---- Address mini card ---- */
.hadship-front-wide .hs-addr-mini {
    background: linear-gradient(180deg, #fffaf2, #fff);
    border: 1px solid #f09810;
    border-radius: 12px;
    padding: 14px 16px;
    position: relative;
    margin: 8px 0 14px;
}
.hadship-front-wide .hs-addr-mini .badge {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f09810;
    color: #fff !important;
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 3px 10px !important;
    border-radius: 999px !important;
    line-height: 1 !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    margin: 0 0 10px !important;
    top: auto !important;
    left: auto !important;
}
.hadship-front-wide .hs-addr-mini-name {
    font-weight: 700 !important;
    color: #1f1b16 !important;
    font-size: 0.95rem !important;
    margin-bottom: 4px;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.hadship-front-wide .hs-addr-mini-body {
    font-size: 0.85rem !important;
    color: #5b5347 !important;
    line-height: 1.55 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* ---- Saved cards list (compact) ---- */
.hadship-front-wide .hs-card-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.hadship-front-wide .hs-card-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px;
    border: 1px solid #ebe6dd; border-radius: 10px;
    background: #fff; transition: border-color 0.15s;
}
.hadship-front-wide .hs-card-row:hover { border-color: #d97f00; }
.hadship-front-wide .hs-card-row.is-default {
    border-color: #f09810;
    background: linear-gradient(180deg, #fffaf2, #fff);
}
.hadship-front-wide .hs-card-brand {
    width: 38px; height: 26px; border-radius: 5px;
    background: #1f1b16; color: #fff !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}
.hadship-front-wide .hs-card-brand.visa { background: #1a1f71; }
.hadship-front-wide .hs-card-brand.mc { background: linear-gradient(90deg, #eb001b 50%, #f79e1b 50%); }
.hadship-front-wide .hs-card-brand.amex { background: #2e77bb; }
.hadship-front-wide .hs-card-brand.disc { background: #ff6000; }
.hadship-front-wide .hs-card-brand.diners { background: #0079be; }
.hadship-front-wide .hs-card-brand.jcb { background: #0e4c96; }
.hadship-front-wide .hs-card-brand.cup { background: #e21836; }

.hadship-front-wide .hs-card-number {
    font-weight: 700 !important;
    color: #1f1b16 !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.04em !important;
    font-variant-numeric: tabular-nums;
    text-transform: none !important;
}
.hadship-front-wide .hs-card-meta-row {
    font-size: 0.74rem !important;
    color: #8a8170 !important;
    margin-top: 2px;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.hadship-front-wide .hs-card-grow { flex: 1; min-width: 0; }
.hadship-front-wide .hs-card-default-pill {
    background: #f09810; color: #fff !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    line-height: 1.4;
}
.hadship-front-wide .hs-card-verify-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: #fff7ed !important;
    color: #c2410c !important;
    border: 1px solid #fed7aa !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    min-height: 0 !important;
}
.hadship-front-wide .hs-card-verify-pill:hover {
    background: #ffedd5 !important;
    border-color: #fdba74 !important;
}
.hadship-front-wide .hs-card-verify-pill:disabled {
    opacity: 0.6;
    cursor: wait;
}
.hadship-front-wide .hs-card-verified-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    line-height: 1.4;
    min-height: 0 !important;
}
.hadship-front-wide .hs-card-icon-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #ebe6dd !important;
    background: #fff !important;
    color: #8a8170 !important;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: none !important;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1 !important;
}
.hadship-front-wide .hs-card-icon-btn:hover { color: #a3281f !important; border-color: #e3b8b8 !important; }
.hadship-front-wide .hs-card-icon-btn:disabled { opacity: .5; cursor: not-allowed; }

/* =========================================================
 * Modals — fixed-position overlays. Selectors are NOT
 * namespaced under .hadship-front-wide because the modal
 * lives in <body> as a sibling of the shell, so we still
 * need the theme-defeat !importants on internal elements.
 * ========================================================= */
.hs-modal-backdrop {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(31, 27, 22, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-start; justify-content: center;
    padding: 60px 20px 40px;
    overflow-y: auto;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.hs-modal-backdrop.is-open {
    display: flex;
    animation: hsBackdropIn 0.2s ease;
}
@keyframes hsBackdropIn { from { opacity: 0; } to { opacity: 1; } }

.hs-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    width: 100%;
    max-width: 680px;
    margin: auto 0;
    animation: hsModalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1f1b16;
}
.hs-modal.hs-modal-wide { max-width: 880px; }
.hs-modal form { margin: 0; }
@keyframes hsModalIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
body.hs-modal-locked { overflow: hidden; }

.hs-modal-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px !important;
    border-bottom: 1px solid #ebe6dd;
    background: #fff;
}
.hs-modal-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1f1b16 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

/* X close button — explicit reset because themes love to add
   massive padding to buttons. */
.hs-modal-x,
button.hs-modal-x {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #ebe6dd !important;
    background: #fff !important;
    cursor: pointer !important;
    color: #8a8170 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    text-transform: none !important;
    font-size: 0 !important;  /* hide any theme-injected pseudo text */
    transition: color .15s, border-color .15s;
}
.hs-modal-x svg { display: block; }
.hs-modal-x:hover { color: #1f1b16 !important; border-color: #1f1b16 !important; }

.hs-modal-body { padding: 22px 24px !important; background: #fff; }
.hs-modal-foot {
    padding: 16px 24px !important;
    border-top: 1px solid #ebe6dd;
    display: flex !important;
    justify-content: flex-end;
    gap: 10px;
    background: #fbf8f1;
}
.hs-modal-toolbar {
    padding: 14px 24px 0; gap: 10px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    background: #fff;
}
.hs-modal-toolbar p {
    margin: 0 !important; color: #8a8170 !important;
    font-size: 0.88rem !important; max-width: 520px;
    text-transform: none !important; letter-spacing: normal !important;
}

/* ---- Top-up modal internals ---- */
.hs-credit-summary {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px;
    background: #fffaf2;
    border: 1px dashed #ebe6dd;
    border-radius: 12px;
    margin-bottom: 18px;
}
.hs-credit-summary .lbl {
    font-size: 0.82rem !important; color: #8a8170 !important;
    font-weight: 500 !important;
    text-transform: none !important; letter-spacing: normal !important;
}
.hs-credit-summary .val {
    font-weight: 800 !important; color: #1f1b16 !important;
    font-size: 1.05rem !important;
    text-transform: none !important; letter-spacing: normal !important;
    font-variant-numeric: tabular-nums;
}

.hs-credit-quick {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px; margin-bottom: 14px;
}
@media (max-width: 560px) { .hs-credit-quick { grid-template-columns: repeat(2, 1fr); } }
.hs-credit-quick button {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    background: #fff !important;
    border: 1.5px solid #ebe6dd !important;
    border-radius: 10px !important;
    padding: 12px 10px !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    font-weight: 700 !important;
    color: #1f1b16 !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: 0.15s;
}
.hs-credit-quick button:hover { border-color: #f09810 !important; color: #d97f00 !important; }
.hs-credit-quick button.active {
    background: #f3ecdc !important;
    border-color: #f09810 !important;
    color: #d97f00 !important;
}

.hs-field {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.hs-field > label {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #8a8170 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.hs-input, .hs-amount {
    border: 1.5px solid #ebe6dd !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 1rem !important;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600 !important;
    color: #1f1b16 !important;
    background: #fff !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.3 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: 0.15s;
}
.hs-input:focus, .hs-amount:focus {
    border-color: #f09810 !important;
    box-shadow: 0 0 0 3px rgba(240, 152, 16, 0.15) !important;
}

.hs-amount-wrap { position: relative; }
.hs-amount-wrap .sym {
    position: absolute !important;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700 !important;
    color: #8a8170 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    pointer-events: none;
    z-index: 1;
    font-family: 'Manrope', sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.hs-amount-wrap .hs-amount {
    padding-left: 30px !important;
    font-size: 1.1rem !important;
}
/* kill native number-spinner arrows for a cleaner look */
.hs-amount-wrap input[type="number"]::-webkit-inner-spin-button,
.hs-amount-wrap input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none; margin: 0;
}
.hs-amount-wrap input[type="number"] { -moz-appearance: textfield; }

/* ---- Address modal — preserves existing .hadship-addr-tile look ---- */
.hs-addr-add-tile {
    display: flex !important;
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px; min-height: 140px;
    background: transparent !important;
    border: 1.5px dashed #e7ddc8 !important;
    border-radius: 14px !important;
    padding: 18px 20px !important;
    margin: 0 !important;
    color: #d97f00 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    font-family: 'Manrope', sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.3 !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: 0.15s;
}
.hs-addr-add-tile:hover {
    border-color: #f09810 !important;
    background: #fffaf2 !important;
    color: #f09810 !important;
}
.hs-addr-add-tile .plus {
    width: 36px; height: 36px; border-radius: 50%;
    background: #f3ecdc; color: #d97f00;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; line-height: 1;
}

/* ---- Cards modal internals ---- */
.hs-pm-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: #fffaf2;
    border: 1px dashed #ebe6dd;
    border-radius: 10px;
    font-size: 0.8rem !important;
    color: #8a8170 !important;
    margin-bottom: 18px;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.5;
}
.hs-pm-header .lock { color: #d97f00; flex-shrink: 0; }

.hs-card-list-full { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.hs-card-row-lg {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid #ebe6dd;
    border-radius: 12px;
    background: #fff;
}
.hs-card-row-lg.is-default {
    border-color: #f09810;
    background: linear-gradient(180deg, #fffaf2, #fff);
}
.hs-card-brand-lg {
    width: 48px; height: 34px; border-radius: 6px;
    display: flex !important; align-items: center; justify-content: center;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    flex-shrink: 0;
    line-height: 1 !important;
}
.hs-card-brand-lg.visa { background: #1a1f71; }
.hs-card-brand-lg.mc { background: linear-gradient(90deg, #eb001b 50%, #f79e1b 50%); }
.hs-card-brand-lg.amex { background: #2e77bb; }
.hs-card-brand-lg.disc { background: #ff6000; }
.hs-card-brand-lg.diners { background: #0079be; }
.hs-card-brand-lg.jcb { background: #0e4c96; }
.hs-card-brand-lg.cup { background: #e21836; }

/* Subtle reveal on first paint */
.hadship-front-wide .hs-side-card,
.hadship-front-wide .hadship-dash-left .hadship-addr-card { animation: hsFadeUp 0.5s ease both; }
.hadship-front-wide .hadship-dash-right .hs-side-card:nth-child(1) { animation-delay: 0.08s; }
.hadship-front-wide .hadship-dash-right .hs-side-card:nth-child(2) { animation-delay: 0.16s; }
.hadship-front-wide .hadship-dash-right .hs-side-card:nth-child(3) { animation-delay: 0.24s; }
@keyframes hsFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* ================================================================
 * v0.10.34 — Theme defeat (Flatsome's uppercase + button quirks),
 * embedded wallet top-up styling, modal X focus, address form
 * inline button row.
 * ================================================================ */

/* Nuclear text-transform override: every element inside our side
   cards and modals stays in normal case unless we explicitly opt
   back into uppercase (badges + brand chips, which set their own
   text-transform: uppercase !important higher up). */
.hadship-front-wide .hs-side-card,
.hadship-front-wide .hs-side-card *,
.hadship-front-wide .hs-side-card *::before,
.hadship-front-wide .hs-side-card *::after,
.hs-modal-backdrop,
.hs-modal-backdrop *,
.hs-modal-backdrop *::before,
.hs-modal-backdrop *::after {
    text-transform: none !important;
    letter-spacing: normal !important;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Re-assert uppercase where we WANT it. */
.hadship-front-wide .hs-side-card .hs-addr-mini .badge,
.hadship-front-wide .hs-side-card .hadship-addr-tile-default,
.hadship-front-wide .hs-side-card .hs-card-default-pill,
.hadship-front-wide .hs-side-card .hs-card-brand,
.hadship-front-wide .hs-side-card .hs-card-brand-lg,
.hs-modal-backdrop .hadship-addr-tile-default,
.hs-modal-backdrop .hs-card-default-pill,
.hs-modal-backdrop .hs-card-brand,
.hs-modal-backdrop .hs-card-brand-lg {
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
}

/* Modal X button — explicit focus + a wider hit target. Also remove
   the browser default blue outline that was showing up in screenshots. */
.hs-modal-x,
button.hs-modal-x {
    outline: none !important;
}
.hs-modal-x:focus-visible,
button.hs-modal-x:focus-visible {
    outline: 2px solid #f09810 !important;
    outline-offset: 2px !important;
    border-color: #f09810 !important;
}
/* No persistent focus ring after a mouse click — only keyboard focus. */
.hs-modal-x:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ebe6dd !important;
}

/* Address form's Cancel + Save buttons — force inline row even
   when the theme tries to stack them. */
.hs-modal-backdrop .hadship-addr-form-actions,
.hadship-front-wide .hadship-addr-form-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin-top: 18px;
}
.hs-modal-backdrop .hadship-addr-form-actions .hadship-fbtn,
.hadship-front-wide .hadship-addr-form-actions .hadship-fbtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 18px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #e7ddc8 !important;
    color: #1a1a1a !important;
    border-radius: 8px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
}
.hs-modal-backdrop .hadship-addr-form-actions .hadship-fbtn:hover,
.hadship-front-wide .hadship-addr-form-actions .hadship-fbtn:hover {
    border-color: #f09810 !important;
}
.hs-modal-backdrop .hadship-addr-form-actions .hadship-fbtn-primary,
.hadship-front-wide .hadship-addr-form-actions .hadship-fbtn-primary {
    background: #f09810 !important;
    border-color: #f09810 !important;
    color: #fff !important;
}
.hs-modal-backdrop .hadship-addr-form-actions .hadship-fbtn-primary:hover,
.hadship-front-wide .hadship-addr-form-actions .hadship-fbtn-primary:hover {
    background: #d4830a !important;
    border-color: #d4830a !important;
}

/* Embedded wallet top-up: success / error message panel */
.hs-modal-backdrop .hs-wallet-msg {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}
.hs-modal-backdrop .hs-wallet-msg.is-info {
    background: #fffaf2;
    border: 1px solid #ebe6dd;
    color: #8a8170 !important;
}
.hs-modal-backdrop .hs-wallet-msg.is-ok {
    background: #ecf7e8;
    border: 1px solid #b8dba9;
    color: #2d6a1d !important;
}
.hs-modal-backdrop .hs-wallet-msg.is-err {
    background: #fbecea;
    border: 1px solid #e3b8b8;
    color: #a3281f !important;
}

/* Disabled / busy state during charge */
.hs-modal-backdrop [aria-busy="true"] {
    opacity: 0.6;
    pointer-events: none;
}

/* "Pay with" gateway radio list — make the entire row a click target */
.hs-modal-backdrop .hs-gateway {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid #ebe6dd !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: 0.15s;
    background: #fff;
    margin: 0;
}
.hs-modal-backdrop .hs-gateway:hover {
    border-color: #d97f00 !important;
}
.hs-modal-backdrop .hs-gateway.is-selected {
    border-color: #f09810 !important;
    background: #fffaf2 !important;
}
.hs-modal-backdrop .hs-gateway .radio {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid #e7ddc8;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: 0.15s;
    background: #fff;
}
.hs-modal-backdrop .hs-gateway.is-selected .radio {
    border-color: #f09810;
}
.hs-modal-backdrop .hs-gateway.is-selected .radio::after {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f09810;
}
.hs-modal-backdrop .hs-gateway-name {
    font-weight: 700 !important;
    color: #1f1b16 !important;
    font-size: 0.92rem !important;
    line-height: 1.3 !important;
}
.hs-modal-backdrop .hs-gateway-sub {
    font-size: 0.78rem !important;
    color: #8a8170 !important;
    line-height: 1.3 !important;
    margin-top: 1px;
}
.hs-modal-backdrop .hs-gateway-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
}

/* v0.10.38 — multiline error with diagnostic */
.hs-modal-backdrop .hs-wallet-msg.is-err {
    white-space: pre-line !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    text-align: left !important;
    max-height: 240px;
    overflow-y: auto;
}

/* ================================================================
 * v0.10.40 — Embedded "Add a new card" form with Stripe Elements.
 * ================================================================ */

.hs-modal-backdrop .hs-card-form {
    border: 1.5px dashed #ebe6dd !important;
    border-radius: 14px !important;
    padding: 16px !important;
    background: #fffaf2 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hs-modal-backdrop .hs-card-form.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

.hs-modal-backdrop .hs-card-form-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #d97f00 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin: 0 0 -2px;
}

/* Stripe Elements mount wrappers — match the regular field styling */
.hs-modal-backdrop .hs-stripe-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff !important;
    border: 1.5px solid #ebe6dd !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    transition: 0.15s;
}
.hs-modal-backdrop .hs-stripe-field:focus-within {
    border-color: #f09810 !important;
    box-shadow: 0 0 0 3px rgba(240, 152, 16, 0.12) !important;
}
.hs-modal-backdrop .hs-stripe-icon {
    color: #8a8170;
    display: inline-flex;
    align-items: center;
}
.hs-modal-backdrop .hs-stripe-mount {
    flex: 1;
    min-height: 22px;
}
.hs-modal-backdrop .hs-stripe-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
}

.hs-modal-backdrop .hs-card-form .hs-input {
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: #1f1b16 !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
.hs-modal-backdrop .hs-card-form .hs-input::placeholder {
    color: #a99e88 !important;
    opacity: 1 !important;
}

/* "Make default" checkbox */
.hs-modal-backdrop .hs-card-checkbox {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem !important;
    color: #1f1b16 !important;
    margin: 4px 0 0 !important;
    line-height: 1.3 !important;
}
.hs-modal-backdrop .hs-card-checkbox input[type=checkbox] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.hs-modal-backdrop .hs-card-checkbox .check {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid #e7ddc8;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s;
    flex-shrink: 0;
}
.hs-modal-backdrop .hs-card-checkbox input[type=checkbox]:checked + .check {
    background: #f09810;
    border-color: #f09810;
}
.hs-modal-backdrop .hs-card-checkbox input[type=checkbox]:checked + .check::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}

/* Action row */
.hs-modal-backdrop .hs-card-form-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px;
    margin-top: 4px;
}

/* Status panel */
.hs-modal-backdrop .hs-card-form-msg {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}
.hs-modal-backdrop .hs-card-form-msg.is-info {
    background: #fff;
    border: 1px solid #ebe6dd;
    color: #8a8170 !important;
}
.hs-modal-backdrop .hs-card-form-msg.is-ok {
    background: #ecf7e8;
    border: 1px solid #b8dba9;
    color: #2d6a1d !important;
}
.hs-modal-backdrop .hs-card-form-msg.is-err {
    background: #fbecea;
    border: 1px solid #e3b8b8;
    color: #a3281f !important;
}

/* v0.10.41 — country dropdown styling in the add-card form */
.hs-modal-backdrop .hs-card-form select.hs-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 100% !important;
    cursor: pointer;
    background:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'><path d='m3.5 6 4.5 4.5L12.5 6' stroke='%231f1b16' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>")
      no-repeat right 0 center / 12px 12px !important;
    padding-right: 18px !important;
}
.hs-modal-backdrop .hs-card-form select.hs-input::-ms-expand {
    display: none !important;
}

/* ================================================================
 * v0.10.43 — Wallet history modal: transaction list
 * ================================================================ */
.hs-modal-backdrop .hs-tx-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    border: 1px solid #ebe6dd;
    border-radius: 12px;
    overflow: hidden;
    max-height: 380px;
    overflow-y: auto;
    background: #fff;
}
.hs-modal-backdrop .hs-tx-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f3ecdc;
}
.hs-modal-backdrop .hs-tx-row:last-child {
    border-bottom: 0;
}
.hs-modal-backdrop .hs-tx-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hs-modal-backdrop .hs-tx-row.is-credit .hs-tx-icon {
    background: #ecf7e8;
    color: #2d6a1d;
}
.hs-modal-backdrop .hs-tx-row.is-debit .hs-tx-icon {
    background: #fbecea;
    color: #a3281f;
}
.hs-modal-backdrop .hs-tx-main {
    flex: 1;
    min-width: 0;
}
.hs-modal-backdrop .hs-tx-details {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #1f1b16 !important;
    line-height: 1.4 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hs-modal-backdrop .hs-tx-details a {
    color: #d97f00 !important;
    text-decoration: none !important;
}
.hs-modal-backdrop .hs-tx-details a:hover {
    text-decoration: underline !important;
}
.hs-modal-backdrop .hs-tx-date {
    font-size: 0.74rem !important;
    color: #8a8170 !important;
    line-height: 1.4 !important;
    margin-top: 1px;
}
.hs-modal-backdrop .hs-tx-amount {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
}
.hs-modal-backdrop .hs-tx-amount.pos { color: #2d6a1d !important; }
.hs-modal-backdrop .hs-tx-amount.neg { color: #a3281f !important; }

.hs-modal-backdrop .hs-tx-loadmore-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

/* ================================================================
 * v0.10.44 — Visually-hidden helper, slimmer DEFAULT badge,
 * real SVG card brand logos.
 * ================================================================ */

/* Hide an input visually but keep it accessible to screen readers and
   functional for form submission. Used by the wallet payment-method
   radio list so the orange custom radio is the only one rendered. */
.hs-modal-backdrop .hs-visually-hidden,
.hadship-front-wide .hs-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Slimmer DEFAULT badges — was too chunky. Cuts vertical padding and
   tightens the text so it reads as a label, not a button. Applies
   to both the address tile pill and the saved-card row pill. */
.hadship-front-wide .hadship-addr-tile-default,
.hs-modal-backdrop .hadship-addr-tile-default,
.hadship-front-wide .hs-card-default-pill,
.hs-modal-backdrop .hs-card-default-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 10px !important;
    line-height: 1 !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border-radius: 999px !important;
    background: #f09810 !important;
    color: #fff !important;
    text-align: center !important;
    white-space: nowrap !important;
    min-height: 0 !important;
    height: auto !important;
}

/* v0.10.44 — Real SVG brand logos inside brand chips */
.hadship-front-wide .hs-card-brand,
.hs-modal-backdrop .hs-card-brand {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 26px !important;
    padding: 0 !important;
    border-radius: 5px !important;
    overflow: hidden;
    flex-shrink: 0;
    /* Override the old text-based chip background — each brand
       sets its own colour below */
    background: #1f1b16;
    color: #fff !important;
    /* Wipe text styles since real chips no longer use a text label */
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;
}
.hadship-front-wide .hs-card-brand-lg,
.hs-modal-backdrop .hs-card-brand-lg {
    width: 46px !important;
    height: 30px !important;
    border-radius: 6px !important;
    padding: 0 !important;
    overflow: hidden;
    flex-shrink: 0;
    background: #1f1b16;
    color: #fff !important;
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Brand-specific chip colours */
.hadship-front-wide .hs-card-brand.visa,
.hs-modal-backdrop  .hs-card-brand.visa,
.hadship-front-wide .hs-card-brand-lg.visa,
.hs-modal-backdrop  .hs-card-brand-lg.visa {
    background: #1a1f71 !important;
}
.hadship-front-wide .hs-card-brand.mc,
.hs-modal-backdrop  .hs-card-brand.mc,
.hadship-front-wide .hs-card-brand-lg.mc,
.hs-modal-backdrop  .hs-card-brand-lg.mc {
    background: #fff !important;
    border: 1px solid #ebe6dd;
}
.hadship-front-wide .hs-card-brand.amex,
.hs-modal-backdrop  .hs-card-brand.amex,
.hadship-front-wide .hs-card-brand-lg.amex,
.hs-modal-backdrop  .hs-card-brand-lg.amex {
    background: #2671b9 !important;
}
.hadship-front-wide .hs-card-brand.disc,
.hs-modal-backdrop  .hs-card-brand.disc,
.hadship-front-wide .hs-card-brand-lg.disc,
.hs-modal-backdrop  .hs-card-brand-lg.disc {
    background: #fff !important;
    border: 1px solid #ebe6dd;
}
.hadship-front-wide .hs-card-brand.jcb,
.hs-modal-backdrop  .hs-card-brand.jcb,
.hadship-front-wide .hs-card-brand-lg.jcb,
.hs-modal-backdrop  .hs-card-brand-lg.jcb {
    background: #fff !important;
    border: 1px solid #ebe6dd;
}
.hadship-front-wide .hs-card-brand.diners,
.hs-modal-backdrop  .hs-card-brand.diners,
.hadship-front-wide .hs-card-brand-lg.diners,
.hs-modal-backdrop  .hs-card-brand-lg.diners {
    background: #0079be !important;
}
.hadship-front-wide .hs-card-brand.cup,
.hs-modal-backdrop  .hs-card-brand.cup,
.hadship-front-wide .hs-card-brand-lg.cup,
.hs-modal-backdrop  .hs-card-brand-lg.cup {
    background: #fff !important;
    border: 1px solid #ebe6dd;
}

/* Size the SVG inside the chip */
.hadship-front-wide .hs-card-brand.has-svg svg,
.hs-modal-backdrop  .hs-card-brand.has-svg svg,
.hadship-front-wide .hs-card-brand-lg.has-svg svg,
.hs-modal-backdrop  .hs-card-brand-lg.has-svg svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* =========================================================================
 * MOBILE RESPONSIVE — saved-card rows (parity with the ShipSaving fix)
 * ─────────────────────────────────────────────────────────────────────────
 * On phones the card row crammed brand + "Visa ending in 4242" + VERIFIED
 * pill + DEFAULT pill + trash onto one nowrap line, so the label wrapped
 * vertically and the pills jammed into the middle of the text. Fix: at
 * <=600px the row flex-wraps into two clean lines — brand + number + trash
 * on line 1, action pills (verify/verified + default/make-default) on a
 * second full-width line. A flex line-break pseudo-element (order:3 +
 * flex-basis:100%) forces the wrap right after the trash button.
 *
 * Applies to BOTH the cards modal (.hs-modal-backdrop) and the dashboard
 * side-card list (.hadship-front-wide).
 * ========================================================================= */
@media (max-width: 600px) {

    .hs-modal-backdrop .hs-card-row-lg,
    .hadship-front-wide .hs-card-row-lg {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px 8px !important;
        padding: 12px !important;
        position: relative !important;
    }
    /* Brand chip: fixed, top-left, line 1 */
    .hs-modal-backdrop .hs-card-row-lg > .hs-card-brand,
    .hs-modal-backdrop .hs-card-row-lg > .hs-card-brand-lg,
    .hadship-front-wide .hs-card-row-lg > .hs-card-brand,
    .hadship-front-wide .hs-card-row-lg > .hs-card-brand-lg {
        order: 1 !important;
        flex: 0 0 auto !important;
    }
    /* Number + expiry: fills line 1 */
    .hs-modal-backdrop .hs-card-row-lg > .hs-card-grow,
    .hadship-front-wide .hs-card-row-lg > .hs-card-grow {
        order: 2 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    /* Trash: pinned right of line 1 */
    .hs-modal-backdrop .hs-card-row-lg > .hs-card-icon-btn,
    .hadship-front-wide .hs-card-row-lg > .hs-card-icon-btn {
        order: 3 !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }
    /* Forced line break after the trash button */
    .hs-modal-backdrop .hs-card-row-lg::after,
    .hadship-front-wide .hs-card-row-lg::after {
        content: "" !important;
        order: 3 !important;
        flex-basis: 100% !important;
        height: 0 !important;
    }
    /* Verify / Verified pill → line 2, left */
    .hs-modal-backdrop .hs-card-row-lg > .hs-card-verify-pill,
    .hs-modal-backdrop .hs-card-row-lg > .hs-card-verified-pill,
    .hadship-front-wide .hs-card-row-lg > .hs-card-verify-pill,
    .hadship-front-wide .hs-card-row-lg > .hs-card-verified-pill {
        order: 4 !important;
        flex: 0 0 auto !important;
    }
    /* Default pill / Make-default button → line 2, right */
    .hs-modal-backdrop .hs-card-row-lg > .hs-card-default-pill,
    .hs-modal-backdrop .hs-card-row-lg > .hs-btn,
    .hadship-front-wide .hs-card-row-lg > .hs-card-default-pill,
    .hadship-front-wide .hs-card-row-lg > .hs-btn {
        order: 5 !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    /* Comfortable touch targets + keep the card label on one line */
    .hs-modal-backdrop .hs-card-number,
    .hadship-front-wide .hs-card-row-lg .hs-card-number {
        font-size: 0.95rem !important;
        white-space: nowrap !important;
    }
    .hs-modal-backdrop .hs-card-meta-row,
    .hadship-front-wide .hs-card-row-lg .hs-card-meta-row {
        white-space: nowrap !important;
    }
    .hs-modal-backdrop .hs-card-verify-pill,
    .hs-modal-backdrop .hs-card-verified-pill,
    .hs-modal-backdrop .hs-card-default-pill,
    .hs-modal-backdrop .hs-card-row-lg .hs-btn {
        padding: 7px 13px !important;
        font-size: 0.7rem !important;
    }
    .hs-modal-backdrop .hs-card-icon-btn,
    .hadship-front-wide .hs-card-row-lg .hs-card-icon-btn {
        width: 34px !important;
        height: 34px !important;
        max-width: 34px !important;
        flex: 0 0 auto !important;
    }

    /* Modal sizing: less wasted top gap, fuller width */
    .hs-modal-backdrop {
        padding: 16px 10px !important;
        align-items: flex-start !important;
    }
    .hs-modal-backdrop .hs-modal {
        max-width: 100% !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 380px) {
    .hs-modal-backdrop .hs-card-number,
    .hadship-front-wide .hs-card-row-lg .hs-card-number { font-size: 0.9rem !important; }
}
