/* ==========================================================================
   Hyatt Vacation Club Name Badge Ordering (Halo)
   Brand: Halo navy #0c1466, Halo magenta #c4007a
   ========================================================================== */

:root {
    --navy: #0c1466;
    --navy-dark: #080e4a;
    --magenta: #c4007a;
    --ink: #2f3440;
    --text: #4a4f5c;
    --muted: #8a8f9c;
    --line: #e6e8ef;
    --line-strong: #d5d8e2;
    --surface: #f7f8fb;
    --page: #f1f3f7;
    --success: #1f8a4c;
    --success-bg: #e7f5ec;
    --warning: #9a6700;
    --warning-bg: #fff4d6;
    --radius: 8px;
}

/* ---------- Base ---------- */
body {
    background: var(--page);
    color: var(--text);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding: 32px 0 48px;
}
a { color: var(--navy); text-decoration: none; }
a:hover, a:focus { color: var(--magenta); text-decoration: none; }
h3, h4 { color: var(--ink); }
.muted { color: var(--muted); }
.red-highlight { color: var(--magenta) !important; }
.nowrap { white-space: nowrap; }
.strong { font-weight: bold; color: var(--ink); }
address { margin: 0; }

/* ---------- Buttons ---------- */
.custom-button, .custom-button-sm,
button, input[type="button"], input[type="submit"], input[type="reset"] {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    border: 1px solid var(--navy);
    border-radius: 6px;
    font-family: inherit;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.3px;
    line-height: 1.2;
    padding: 11px 22px;
    cursor: pointer;
    text-align: center;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.custom-button-sm { font-size: 13px; padding: 8px 16px; }
.custom-button:hover, .custom-button-sm:hover,
button:hover, input[type="submit"]:hover,
.custom-button:focus, .custom-button-sm:focus, button:focus {
    background: var(--magenta);
    border-color: var(--magenta);
    color: #fff !important;
    outline: none;
}
button:disabled, button[disabled] { opacity: .6; cursor: default; }
.btn-secondary, .custom-button-sm.btn-secondary {
    background: #fff;
    color: var(--navy) !important;
    border-color: var(--line-strong);
}
.btn-secondary:hover, .custom-button-sm.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--navy);
    color: var(--navy) !important;
}
.btn-block { display: block; width: 100%; }
.text-link { font-weight: bold; font-size: 13px; }

/* ---------- Page frame ---------- */
.wrap {
    background: #fff;
    width: 1120px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 0;
    min-height: 480px;
    border-radius: var(--radius);
    border-top: 5px solid var(--navy);
    box-shadow: 0 4px 24px rgba(12, 20, 102, 0.07);
    overflow: hidden;
}
.content { padding: 28px 32px 36px; }
.content > .alert { border-radius: 6px; }

/* ---------- Brand lockup (Halo | Hyatt Vacation Club) ---------- */
.brand-lockup { display: flex; align-items: center; justify-content: center; }
.brand-lockup .brand-divider {
    display: block;
    flex: 0 0 2px;
    width: 2px;
    align-self: stretch;
    background: var(--line-strong);
    border-radius: 1px;
}
.brand-lockup-sm .brand-logo-seller { height: 36px; }
.brand-lockup-sm .brand-logo-client { height: 46px; }
.brand-lockup-sm .brand-divider { margin: 0 20px; min-height: 46px; }
.brand-lockup-lg .brand-logo-seller { height: 62px; }
.brand-lockup-lg .brand-logo-client { height: 80px; }
.brand-lockup-lg .brand-divider { margin: 0 34px; min-height: 88px; }

/* ---------- App header + nav ---------- */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    border-bottom: 1px solid var(--line);
}
.app-header-brand .brand-lockup { justify-content: flex-start; }
.app-header-meta { text-align: right; }
.app-header-title { font-size: 20px; font-weight: 300; color: var(--navy); letter-spacing: .4px; }
.app-header-user { margin-top: 2px; font-size: 12px; color: var(--muted); }
.app-header-user .sep { color: var(--line-strong); margin: 0 6px; }
.app-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0 32px;
    min-height: 50px;
}
.app-nav-store {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 16px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-nav-store strong { color: var(--ink); }
.app-nav-store-label {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--magenta);
    font-weight: bold;
    margin-right: 8px;
}
.app-nav-store-change { margin-left: 10px; font-size: 12px; font-weight: bold; text-decoration: underline; }
.app-nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex: 0 0 auto; }
.app-nav-links li a {
    display: block;
    padding: 15px 14px 12px;
    white-space: nowrap;
    color: var(--text) !important;
    font-weight: bold;
    font-size: 13px;
    border-bottom: 3px solid transparent;
}
.app-nav-links li a:hover { color: var(--navy) !important; }
.app-nav-links li.active a { color: var(--navy) !important; border-bottom-color: var(--magenta); }

/* ---------- Page heading / notices / sections ---------- */
.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.page-heading h3 { margin: 0; font-size: 24px; font-weight: 300; color: var(--navy); }
.page-heading p { margin: 4px 0 0; color: var(--muted); }
.page-heading > div:last-child:not(:first-child) { flex: 0 0 auto; }
.notice {
    background: #fdf2f8;
    border: 1px solid #f5d0e6;
    border-left: 4px solid var(--magenta);
    color: #7a1d52;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 22px;
    font-size: 13px;
}
.notice .fa { margin-right: 6px; }
.section-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    font-weight: bold;
    color: var(--muted);
    margin: 0 0 10px;
}
.empty-state { padding: 36px 16px; text-align: center; color: var(--muted); }

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 20px;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}
.card-header h4 { margin: 0; font-size: 15px; font-weight: bold; color: var(--ink); }
.card-header-count { font-size: 12px; color: var(--muted); }
.card-body { padding: 18px 20px 6px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.card-flush { overflow: hidden; }
.card > .card-header:not(:first-child) { border-top: 1px solid var(--line); }

/* ---------- Forms ---------- */
.form-control {
    height: 40px;
    border-radius: 6px;
    border-color: var(--line-strong);
    box-shadow: none;
    color: var(--ink);
}
select.form-control { padding-top: 6px; padding-bottom: 6px; }
.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(12, 20, 102, 0.12); }
.control-label, .form-group > label { font-size: 12px; font-weight: bold; color: var(--text); margin-bottom: 5px; }
.help-block { font-size: 12px; margin-top: 4px; }
.has-success .control-label, .has-success .form-control { color: inherit; border-color: var(--line-strong); }
.has-error .form-control { border-color: #d64545; }
.has-error .help-block, .has-error .control-label { color: #c03434; }
.checkbox label { font-weight: normal; color: var(--text); }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }

/* ---------- Login ---------- */
body.is-guest .wrap { width: 640px; padding: 50px 40px 40px; }
.login-page .brand-lockup { margin-bottom: 30px; }
.login-heading { text-align: center; margin-bottom: 28px; }
.login-heading h1 { font-size: 28px; font-weight: 300; color: var(--navy); margin: 0 0 6px; letter-spacing: .5px; }
.login-heading p { color: var(--muted); font-size: 14px; margin: 0; }
.login-card {
    max-width: 380px;
    margin: 0 auto;
    padding: 28px 30px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfbfd;
}
.login-card h2 { font-size: 16px; font-weight: bold; color: var(--ink); margin: 0 0 18px; }
.login-card .form-control { height: 42px; font-size: 15px; }
.login-card .checkbox label { color: var(--muted); font-size: 12px; }
.login-card .login-button { width: 100%; padding: 12px 20px; margin: 4px 0 8px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Order Badges: badge tiles ---------- */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.badge-tile, .product-row {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.badge-tile:hover, .badge-tile:focus, .product-row:hover, .product-row:focus {
    border-color: var(--navy);
    box-shadow: 0 6px 18px rgba(12, 20, 102, 0.10);
    transform: translateY(-1px);
    outline: none;
}
.badge-tile { display: flex; flex-direction: column; overflow: hidden; }
.badge-tile-image {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.badge-tile-image img { max-width: 100%; max-height: 110px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.12)); }
.badge-tile-body { padding: 12px 16px 4px; flex: 1; }
.badge-tile-name { font-weight: bold; color: var(--ink); font-size: 15px; }
.badge-tile-price { color: var(--muted); font-size: 13px; }
.badge-tile-action { padding: 8px 16px 14px; color: var(--navy); font-weight: bold; font-size: 13px; }
.badge-tile:hover .badge-tile-action, .product-row:hover .badge-tile-action { color: var(--magenta); }
.product-list { margin-bottom: 24px; }
.product-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; margin-bottom: 10px; }
.product-row-image { width: 64px; height: 48px; object-fit: contain; }
.product-row-name { flex: 1; font-weight: bold; color: var(--ink); }
.product-row .badge-tile-action { padding: 0; }

/* ---------- Order Badges: item forms ---------- */
.response-block:empty { display: none; }
.response-message-block .alert { border-radius: 6px; }
.item-form { padding: 0 0 4px; }
.item-form > form { padding: 0 20px; }
.item-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}
.item-form-header h4 { margin: 0; font-size: 18px; }
.item-form-header p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.item-form-price { font-size: 20px; font-weight: bold; color: var(--navy); text-align: right; white-space: nowrap; }
.item-form-price small { display: block; font-size: 11px; font-weight: normal; color: var(--muted); }
.container-items { counter-reset: badge; }
.badge-entry {
    counter-increment: badge;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 16px 2px;
    margin-bottom: 12px;
}
.badge-entry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.badge-entry-label { font-weight: bold; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }
.badge-entry-label::after { content: " " counter(badge); }
.remove-item { color: var(--muted); font-size: 12px; cursor: pointer; }
.remove-item:hover { color: #c03434; }
.container-items .badge-entry:only-child .remove-item { visibility: hidden; }
.item-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0 18px;
}
.item-form-actions button[type="submit"]:only-child { margin-left: auto; }
.form-note {
    margin: 0 20px 16px;
    padding: 12px 14px;
    background: var(--surface);
    border-radius: 6px;
    font-size: 12px;
    color: var(--muted);
}
.form-note strong { color: var(--text); }
.qty-list { margin-bottom: 8px; }
.qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.qty-row:last-child { border-bottom: none; }
.qty-row-image { flex: 0 0 110px; text-align: center; }
.qty-row-image img { max-width: 110px; max-height: 70px; }
.qty-row-name { flex: 1; font-weight: bold; color: var(--ink); }
.qty-row-name small { display: block; font-weight: normal; color: var(--muted); }
.qty-row-inputs { display: flex; gap: 12px; }
.qty-input { display: flex; flex-direction: column; margin: 0; font-size: 11px; color: var(--muted); font-weight: bold; text-transform: uppercase; letter-spacing: .6px; }
.qty-input .form-control { width: 90px; margin-top: 4px; text-align: center; }

/* ---------- Cart ---------- */
.cart-card .cart-group { padding: 12px 20px 4px; }
.cart-card .cart-group + .cart-group { border-top: 1px solid var(--line); }
.cart-group-title { text-transform: uppercase; letter-spacing: 1px; font-size: 11px; font-weight: bold; color: var(--muted); margin-bottom: 6px; }
.cart-empty .card-body { text-align: center; padding: 32px 20px; color: var(--muted); }
.cart-empty .fa { font-size: 30px; color: var(--line-strong); margin-bottom: 10px; }
.line-items { list-style: none; margin: 0; padding: 0; }
.line-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}
.line-item:last-child { border-bottom: none; }
.line-item-title { font-weight: bold; color: var(--ink); }
.line-item-sub { font-size: 12px; color: var(--text); }
.line-item-meta { font-size: 12px; color: var(--muted); }
.line-item-side { display: flex; align-items: flex-start; gap: 12px; white-space: nowrap; }
.line-item-qty { font-weight: bold; color: var(--navy); }
.remove-cart-item { color: var(--muted); cursor: pointer; }
.remove-cart-item:hover { color: #c03434; }
.preview-body .line-item { padding: 12px 0; }
.preview-body .line-item-title { font-size: 18px; }

/* ---------- Order summary ---------- */
.summary-table { width: 100%; margin: 4px 0 8px; }
.summary-table td { padding: 8px 20px; vertical-align: top; }
.summary-table .amount { text-align: right; white-space: nowrap; color: var(--ink); }
.summary-table .muted { font-size: 12px; }
.summary-table .summary-sub td { border-top: 1px solid var(--line); color: var(--muted); }
.summary-table .summary-total td {
    border-top: 2px solid var(--ink);
    font-weight: bold;
    font-size: 16px;
    color: var(--navy);
    padding-top: 10px;
}
.summary-table .summary-total .amount { color: var(--navy); }

/* ---------- Shipping ---------- */
.ship-to { line-height: 1.7; color: var(--ink); margin-bottom: 14px; }
.authorize-card .card-body p { color: var(--muted); font-size: 13px; }
.place-order-button { padding: 14px 20px; font-size: 16px; margin: 4px 0 14px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Confirmation / error ---------- */
.confirmation-card { max-width: 560px; margin: 10px auto; padding: 36px 36px 20px; text-align: center; }
.confirmation-icon {
    width: 64px; height: 64px;
    line-height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    font-size: 30px;
}
.confirmation-icon.is-error { background: #fdecec; color: #c03434; }
.confirmation-card h3 { margin: 0 0 6px; font-weight: 300; color: var(--navy); font-size: 24px; }
.confirmation-number { font-size: 18px; font-weight: bold; color: var(--ink); margin-bottom: 4px; }
.confirmation-summary { text-align: left; margin: 20px 0 8px; }
.confirmation-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin: 8px 0 12px; }

/* ---------- Tables / grids ---------- */
.data-table { margin: 0; }
.data-table > thead > tr > th {
    background: var(--surface);
    border-bottom: 1px solid var(--line) !important;
    border-top: none !important;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 12px 16px;
    white-space: nowrap;
}
.data-table > thead > tr > th a { color: var(--muted); }
.data-table > thead > tr > th a.asc, .data-table > thead > tr > th a.desc { color: var(--navy); }
.data-table > tbody > tr > td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.data-table > tbody > tr:hover > td { background: #fafbfd; }
.data-table.clickable-rows > tbody > tr[data-order-id] { cursor: pointer; }
.data-table > tbody > tr.is-active > td { background: #eef0fb; }
.data-table .muted { font-size: 12px; }
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}
.table-footer .pagination { margin: 0; }
.pagination > li > a, .pagination > li > span { color: var(--navy); border-color: var(--line); padding: 5px 11px; }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > span { background: var(--navy); border-color: var(--navy); }
.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .3px;
    white-space: nowrap;
    vertical-align: middle;
}
.page-heading h3 .status-pill { margin-left: 8px; font-size: 12px; }
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-shipped { background: var(--success-bg); color: var(--success); }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.segmented a { padding: 7px 14px; font-size: 13px; font-weight: bold; color: var(--text); }
.segmented a + a { border-left: 1px solid var(--line-strong); }
.segmented a.active { background: var(--navy); color: #fff; }
.detail-list { margin: 0 0 12px; }
.detail-list dt { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: bold; }
.detail-list dd { margin: 0 0 10px; color: var(--ink); }

/* ---------- Locations ---------- */
.store-search { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; }
.search-input { position: relative; flex: 1; }
.search-input .fa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-input input[type='text'] {
    width: 100%;
    height: 42px;
    padding: 8px 14px 8px 38px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    font-size: 14px;
    color: var(--ink);
}
.search-input input[type='text']:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(12, 20, 102, 0.12); }
.store-search .custom-button-sm { height: 42px; }
.store-edit-link { margin-right: 12px; }

/* ---------- Modal ---------- */
.modal-content { border: none; border-radius: 10px; box-shadow: 0 20px 50px rgba(12, 20, 102, 0.25); }
.modal-header { border-bottom: 1px solid var(--line); padding: 18px 24px 14px; }
.modal-title { color: var(--navy); font-size: 18px; font-weight: bold; }
.modal-subtitle { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.modal-body { padding: 8px 24px; }
.modal-footer { border-top: 1px solid var(--line); padding: 14px 24px; display: flex; justify-content: flex-end; gap: 10px; }
.modal-footer > * { margin-left: 0 !important; }
.blockUI h1 { color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 991px) {
    .app-header, .app-nav { flex-wrap: wrap; }
    .app-nav-links { overflow-x: auto; }
    .content { padding: 20px 16px 28px; }
}
@media (max-width: 767px) {
    .badge-grid { grid-template-columns: 1fr; }
    .page-heading { flex-direction: column; align-items: flex-start; }
    .app-header-meta { text-align: left; margin-top: 10px; }
}
.other-feature .control-label { white-space: nowrap; }
.item-form-price-list { text-align: right; white-space: nowrap; font-weight: bold; color: var(--navy); font-size: 14px; line-height: 1.6; }
.line-item-hometown { color: var(--ink); font-size: 13px; }
.preview-body .line-item-hometown { font-size: 15px; }
.help-block { color: var(--muted); }
.card-header h4 .card-header-count { font-weight: normal; margin-left: 6px; }
.summary-line.has-details { cursor: pointer; }
.summary-line.has-details:hover td { background: #fafbfd; }
.summary-chevron { width: 12px; color: var(--muted); transition: transform .15s ease; }
.summary-line.is-open .summary-chevron { transform: rotate(90deg); color: var(--navy); }
.summary-details td { padding-top: 0 !important; }
.summary-names { list-style: none; margin: 0 0 4px 16px; padding: 8px 12px; background: var(--surface); border-radius: 6px; }
.summary-names li { padding: 3px 0; font-size: 13px; color: var(--ink); }
.summary-names li span { color: var(--muted); margin-left: 8px; }
.summary-names li em { color: var(--navy); font-style: normal; font-weight: bold; margin-left: 8px; }
.hint-block { color: var(--muted); font-size: 12px; margin-top: 4px; }
