/* Account dashboard layout — aligned to the Lazada "playground" scaffold:
 * outer 1188px centered, 158px left nav, 988px right content,
 * #eff0f4 page bg, #424242 base text, #1a9cb7 teal accent.
 */
.simple h1 {
    text-align: left;
    text-transform: uppercase;
}

/* Account page: let the content wrapper span the full column instead of the
 * global .simple 1045px cap. .account-wrap handles its own centering. */
.simple.content {
    max-width: none;
    margin: 0;
}

.account-wrap {
    display: flex;
    gap: 43px;
    padding: 16px 0 40px;
    align-items: flex-start;
    max-width: 1188px;
    min-width: 0;
    color: #424242;
}

.account-sidebar {
    width: 200px;
    flex-shrink: 0;
    padding-top: 16px;
    color: #424242;
}

.account-main {
    flex: 1;
    min-width: 0;
    max-width: 988px;
}

.account-greeting {
    font-size: 12px;
    line-height: 22px;
    color: #424242;
    margin: 0 0 16px;
}

.account-nav-group { margin-top: 16px; }
.account-nav-group:first-of-type { margin-top: 0; }

.account-nav-group-title {
    display: block;
    font-size: 16px;
    line-height: 24px;
    color: #424242;
    text-decoration: none;
    font-weight: 700;
}
/* Beat the global a:visited{color:#399fd2} rule so clicked links keep their color. */
.account-nav-group-title:visited { color: #424242; }
.account-nav-group-title.active,
.account-nav-group-title.active:visited { color: #1a9cb7; }

.account-nav-group ul {
    list-style: none;
    padding: 0 0 0 16px;
    margin: 0;
}
.account-nav-group ul li { padding: 0; line-height: 22px; }
.account-nav-group ul li a {
    color: #757575;
    text-decoration: none;
    font-size: 14px;
    line-height: 22px;
}
.account-nav-group ul li a:visited { color: #757575; }
.account-nav-group ul li.active a,
.account-nav-group ul li a:hover { color: #1a9cb7; }
.account-nav-group ul li.active a { font-weight: 500; }

.account-main h1 {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 24px;
}

.account-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 24px;
    margin-bottom: 16px;
}

.account-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.account-row .account-card { margin-bottom: 0; }

.account-card-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 16px;
}

.account-card-header h3 {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.account-card-header .edit-link {
    color: #0a7cb9;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-card-header .edit-link::before {
    content: '|';
    color: #d0d0d0;
    margin: 0 10px 0 0;
}

.account-meta-label {
    font-size: 11px;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.profile-line { margin: 4px 0; color: #333; }

.address-block { margin-bottom: 16px; }
.address-block .name { font-weight: 600; color: #111; }
.address-block .line { color: #555; font-size: 14px; margin: 2px 0; }
.address-empty { color: #888; font-style: italic; }

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    text-align: left;
    padding: 16px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.orders-table th {
    background: #fafafa;
    color: #666;
    font-weight: normal;
    font-size: 13px;
}

.order-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    background: #111;
    display: inline-block;
}

.order-status { text-transform: capitalize; }
.order-status-paid,
.order-status-delivered { color: #0a7c4a; }
.order-status-unpaid { color: #c00; }
.order-status-processing,
.order-status-shipped { color: #0a7cb9; }
.order-status-refund { color: #888; }

.orders-empty {
    padding: 24px;
    color: #888;
    text-align: center;
}

.orders-pagination {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 16px 4px 4px;
}
.orders-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    color: #424242 !important;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    background: #fff;
}
.orders-page:hover { border-color: #1a9cb7; color: #1a9cb7 !important; }
.orders-page.is-active {
    background: #1a9cb7;
    border-color: #1a9cb7;
    color: #fff !important;
    font-weight: 600;
}
.orders-page.is-disabled {
    color: #c7c7c7 !important;
    cursor: default;
    pointer-events: none;
}

.account-section h2 {
    font-size: 18px;
    margin: 0 0 16px;
}

.account-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.account-form-msg {
    margin-left: 12px;
    font-size: 13px;
}
.account-form-msg.success { color: #0a7c4a; }
.account-form-msg.error   { color: #c00; }

.account-login-required {
    padding: 32px;
    text-align: center;
}

/* Edit Profile (?section=profile) layout */
.edit-profile-form { padding: 8px 0; }

.edit-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px 48px;
    margin-bottom: 32px;
}

.edit-profile-field { min-width: 0; }
.edit-profile-field-half { max-width: calc((100% - 96px) / 3); margin-bottom: 32px; }

.edit-profile-label {
    display: block;
    color: #555;
    font-size: 14px;
    margin-bottom: 12px;
}

.edit-profile-toggle {
    color: #0a7cb9;
    text-decoration: none;
    margin-left: 4px;
}
.edit-profile-toggle:hover { text-decoration: underline; }

.edit-profile-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}
.edit-profile-input:focus {
    outline: none;
    border-color: #0a7cb9;
}
.edit-profile-input.is-hidden { display: none; }

.edit-profile-readonly,
.edit-profile-placeholder {
    color: #333;
    font-size: 14px;
    padding: 10px 0;
}
.edit-profile-placeholder { color: #aaa; }

.edit-profile-birthday {
    display: flex;
    gap: 8px;
}
.edit-profile-input-narrow {
    width: 80px;
}

.edit-profile-actions {
    margin-top: 16px;
}

.btn-save-changes {
    background: #f57224;
    color: #fff;
    padding: 14px 48px;
    border: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
}
.btn-save-changes:hover { background: #d95f15; }
.btn-save-changes:disabled { opacity: 0.6; cursor: not-allowed; }

/* Address Book list */
.address-book-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 16px;
}
.address-book-header h1 { flex: 1; margin: 0; font-size: 22px; font-weight: 400; }
.address-book-header-actions a {
    color: #0a7cb9;
    text-decoration: none;
    font-size: 14px;
}
.address-book-header-actions a:hover { text-decoration: underline; }
.address-book-header-actions .sep { color: #d0d0d0; margin: 0 8px; }

.address-book-hint {
    background: #fff7e6;
    border: 1px solid #f0c674;
    color: #886200;
    padding: 10px 14px;
    margin: 0 0 16px;
    font-size: 13px;
}

.address-book-card { padding: 30px 40px; }

.address-book-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    text-align: left;
}
/* The global .content table{} rules in style.css add full cell borders, a
 * serif-ish 14px font and a bold first row to any table inside .simple.content.
 * The .address-book-card prefix raises specificity so the flat Lazada look wins,
 * and `border:0` clears the left/top/right edges the global shorthand sets. */
.address-book-card .address-book-table th,
.address-book-card .address-book-table td {
    border: 0;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    font-weight: 400;
}
/* Ties .content table tr:first-child td (same specificity) and wins on load
 * order, so the first address row is no longer forced bold. */
.address-book-card .address-book-table tbody tr td { font-weight: 400; }
.address-book-card .address-book-table td { padding: 24px 16px; }
.address-book-card .address-book-table th {
    background: #fafafa;
    color: #666;
    padding: 12px 16px;
}
.address-book-card .address-book-table tbody tr:last-child td { border-bottom: 0; }

.address-line { margin: 0 0 8px; color: #333; }
.address-label-prompt { margin: 8px 0 8px; color: #888; font-size: 13px; }

.address-labels {
    display: flex;
    gap: 12px;
}

.address-label-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    color: #555;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.address-label-btn input[type="radio"] { display: none; }
.address-label-btn .fa { color: #999; }
.address-label-btn:hover { border-color: #0a7cb9; }

.address-label-btn.is-active { font-weight: 600; }
.address-label-btn.is-active.office { border-color: #0a7cb9; color: #0a7cb9; }
.address-label-btn.is-active.office .fa { color: #0a7cb9; }
.address-label-btn.is-active.home   { background: #fff1f0; border-color: #f3b6b0; color: #c0392b; }
.address-label-btn.is-active.home .fa { color: #c0392b; }

.address-defaults div {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}
.address-edit a {
    color: #0a7cb9;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 13px;
}

.address-book-footer {
    text-align: right;
    padding: 24px;
    border-top: 1px solid #eee;
}

.btn-add-address {
    display: inline-block;
    background: #1a9aaf;
    /* Global a{color:#444!important} in style.css washes out the label,
     * so force white with !important. */
    color: #fff !important;
    padding: 14px 32px;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 2px;
    font-size: 13px;
}
.btn-add-address:hover { background: #168092; color: #fff !important; }

.address-default-row {
    display: flex;
    gap: 24px;
    margin: 0 0 24px;
    font-size: 14px;
}
.address-default-row label { color: #333; }

.address-form-cancel {
    margin-left: 16px;
    color: #666;
    text-decoration: none;
}
.address-form-cancel:hover { text-decoration: underline; }

.address-form-delete {
    margin-left: 16px;
    background: none;
    border: 0;
    color: #c0392b;
    cursor: pointer;
    font-size: 14px;
}
.address-form-delete:hover { text-decoration: underline; }
.address-form-delete.header-delete { margin: 0; font-size: 15px; color: #0a7cb9; }
.address-form-delete.header-delete:hover { color: #c0392b; }

/* Edit-address form (Lazada-style two-column) */
.address-form { padding: 16px 8px; }

.address-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 48px;
    margin-bottom: 32px;
}

.address-form-col { display: flex; flex-direction: column; gap: 24px; }
.address-form-field { display: flex; flex-direction: column; }

.address-form-field-select {
    position: relative;
}
.address-form-field-select::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 38px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #999;
    pointer-events: none;
}
.address-form-field-select .edit-profile-input { padding-right: 36px; }

.address-form-label-section { margin: 16px 0 24px; }
.address-form-label-section .address-label-prompt { margin: 0 0 12px; }

.address-form-defaults {
    display: flex;
    gap: 32px;
    margin: 0 0 32px;
    font-size: 14px;
    color: #555;
}

.address-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #eee;
    padding-top: 24px;
}

.btn-cancel {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 14px 36px;
    text-decoration: none;
    text-transform: capitalize;
    border-radius: 2px;
    font-size: 14px;
}
.btn-cancel:hover { background: #e0e0e0; color: #333; }

.address-form-actions .btn-save-changes { padding: 14px 36px; }

/* My Payment Options */
.payment-card { padding: 32px; }
.payment-section-title { margin: 0 0 24px; font-size: 16px; font-weight: 600; }

.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.payment-table th,
.payment-table td {
    text-align: left;
    padding: 16px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.payment-table th {
    color: #666;
    font-weight: normal;
    font-size: 14px;
}
.payment-table tbody tr:last-child td { border-bottom: 1px solid #eee; }
.payment-empty { color: #888; text-align: center; padding: 24px 8px; }

.payment-brand {
    display: inline-block;
    margin-right: 16px;
    font-weight: 700;
    color: #1a1f71;
    letter-spacing: 1px;
    font-style: italic;
}
.payment-brand-mastercard { color: #eb001b; }
.payment-brand-amex       { color: #2e77bb; }
.payment-brand-discover   { color: #ff6000; }
.payment-brand-jcb        { color: #0e4c96; }
.payment-brand-unknown    { color: #555; font-style: normal; }

.payment-number { color: #333; font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* Image-based card brand logo (e.g. Mastercard) */
.payment-brand-logo {
    display: inline-block;
    height: 40px;
    width: 40px;
    vertical-align: middle;
    margin-right: 16px;
}
.payment-modal-brands .payment-brand-logo { margin-right: 0; }

.payment-delete-cell { text-align: right; }
.payment-delete {
    background: none;
    border: 0;
    color: #0a7cb9;
    cursor: pointer;
    font-size: 14px;
}
.payment-delete:hover { text-decoration: underline; color: #c0392b; }

.payment-add-row { padding-top: 16px; }
.payment-add-link {
    color: #0a7cb9;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.payment-add-link:hover { text-decoration: underline; }
.payment-add-plus { font-size: 18px; margin-left: 4px; }

.payment-warning {
    background: #fff7e6;
    border: 1px solid #f0c674;
    color: #886200;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    border-radius: 2px;
}

.payment-expiry-row { display: flex; gap: 8px; }

/* Add Card modal / drawer */
.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}
.payment-modal[aria-hidden="false"] { pointer-events: auto; }

.payment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
}
.payment-modal[aria-hidden="false"] .payment-modal-backdrop {
    background: rgba(0, 0, 0, 0.4);
}

.payment-modal-drawer {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 480px;
    max-width: 100%;
    background: #fff;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    padding: 24px 28px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-sizing: border-box;
}
.payment-modal[aria-hidden="false"] .payment-modal-drawer {
    transform: translateX(0);
}

.payment-modal-trust {
    background: #e8f6ee;
    color: #207f44;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-weight: 500;
    text-align: center;
    font-size: 14px;
}
.payment-modal-trust-check {
    display: inline-block;
    background: #207f44;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    margin-right: 8px;
    font-size: 11px;
}

.payment-modal-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.payment-modal-card-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 6px;
}
.payment-modal-brands {
    display: flex;
    gap: 8px;
    font-size: 12px;
}
.payment-modal-brands .payment-brand {
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #eee;
    border-radius: 2px;
    background: #fafafa;
}

.payment-modal-label {
    display: block;
    color: #333;
    font-size: 14px;
    margin: 16px 0 6px;
}
.payment-modal-label .req { color: #c0392b; margin-right: 2px; }
.payment-modal-info { color: #888; cursor: help; margin-left: 4px; font-size: 13px; }

.payment-modal-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    font-size: 14px;
    box-sizing: border-box;
}
.payment-modal-input:focus { outline: none; border-color: #0a7cb9; }

.payment-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.payment-modal-col { display: flex; flex-direction: column; }

.payment-modal-demo-note {
    color: #886200;
    background: #fff7e6;
    border: 1px solid #f0c674;
    padding: 10px 12px;
    margin: 24px 0 0;
    font-size: 12px;
    border-radius: 2px;
    line-height: 1.5;
}

.payment-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
}

.payment-modal-cancel,
.payment-modal-confirm {
    padding: 12px 36px;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}
.payment-modal-cancel  { background: #f0f0f0; color: #555; }
.payment-modal-cancel:hover  { background: #e0e0e0; }
.payment-modal-confirm { background: #1a9aaf; color: #fff; }
.payment-modal-confirm:hover { background: #168092; }
.payment-modal-confirm:disabled { opacity: 0.6; cursor: not-allowed; }

/* My Orders — Lazada-aligned DOM/CSS */
.orders-title { margin: 0 0 16px; font-size: 22px; font-weight: 400; color: #424242; }

.order-list-container { background: transparent; padding: 0; }
.order-list { color: #424242; }

.order-list-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0 24px;
    margin-bottom: 0;
}
.order-tab-item {
    padding: 16px 20px;
    color: #424242;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.order-tab-item:hover { color: #1a9cb7; }
.order-tab-item-active {
    color: #1a9cb7;
    border-bottom-color: #1a9cb7;
    font-weight: 500;
}

.order-filter-search {
    background: #fff;
    padding: 16px 24px;
    margin: 0 0 16px;
}
.voucher-input-col {
    position: relative;
    background: #eff0f4;
    border-radius: 4px;
    padding: 10px 14px 10px 40px;
}
.order-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #757575;
    font-size: 14px;
}
.next-input.order-search-input { display: block; width: 100%; }
.next-input.order-search-input input {
    width: 100%;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 14px;
    color: #424242;
}
.next-input.order-search-input input::placeholder { color: #757575; }

.orders { display: flex; flex-direction: column; gap: 16px; }

.shop {
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
}
.shop.shop-empty { padding: 32px; text-align: center; color: #888; }

.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}
.shop-header.border-bottom { border-bottom: 1px solid #eee; }

.shop-left { display: flex; align-items: center; }
.shop-left-info { display: flex; align-items: center; gap: 12px; }
.shop-left-info-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border-radius: 6px;
    color: #757575;
    font-size: 16px;
}
.shop-left-info-name {
    font-size: 14px;
    color: #424242;
    font-weight: 500;
}

.shop-right { display: flex; align-items: center; gap: 16px; }
.shop-right-status {
    padding: 5px 16px;
    border-radius: 14px;
    background: #eff0f4;
    color: #5d5d5d;
    font-size: 13px;
}
.shop-right-action {}

.shop-body { background: #fff; }

.order-item {
    display: grid;
    grid-template-columns: 96px 1fr 140px 80px;
    gap: 16px;
    padding: 20px 24px;
    align-items: flex-start;
}
.order-item + .order-item { border-top: 1px solid #f3f3f3; }

.item-pic {
    width: 80px;
    height: 80px;
    background: #111;
    overflow: hidden;
    display: block;
}
.item-pic a { display: block; width: 100%; height: 100%; }
.item-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.order-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #111;
}

.item-main { min-width: 0; }
.item-title {
    color: #424242;
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-sku {
    color: #9e9e9e;
    font-size: 13px;
    margin-bottom: 8px;
}

.badge-list-wrapper { display: flex; gap: 8px; margin-top: 6px; }
.badge-item {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid currentColor;
    color: #49A1FE;
    font-size: 12px;
    border-radius: 2px;
    line-height: 18px;
}

.item-status { text-align: right; }
.item-price { color: #424242; font-size: 14px; font-weight: 500; }
.text.bold { font-weight: 500; }

.item-quantity { color: #757575; font-size: 13px; text-align: right; }
.item-quantity .text.desc.info.multiply { color: #757575; }

.clear { clear: both; }

.orders-empty { color: #888; text-align: center; padding: 24px; margin: 0; }

/* Coming-soon stub view */
.account-stub-card {
    padding: 64px 24px;
    text-align: center;
}
.account-stub-message { color: #555; }
.account-stub-icon {
    font-size: 48px;
    color: #d0d0d0;
    margin-bottom: 16px;
}
.account-stub-message p { margin: 4px 0; font-size: 16px; }
.account-stub-sub { color: #888; font-size: 14px; }

/* My Cancellations */
.cancellations-section .cancel-card { padding: 0; margin-bottom: 20px; overflow: hidden; }

.cancel-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
}
.cancel-card-date {
    margin: 0 0 4px;
    color: #424242;
    font-size: 15px;
}
.cancel-card-order {
    margin: 0;
    color: #757575;
    font-size: 14px;
}
.cancel-card-order a { color: #2673dd; text-decoration: none; }
.cancel-card-order a:hover { text-decoration: underline; }
.cancel-more-details {
    flex: none;
    color: #2673dd;
    font-size: 14px;
    letter-spacing: .02em;
    text-decoration: none;
    white-space: nowrap;
}
.cancel-more-details:hover { text-decoration: underline; }

.cancel-card-body { background: #fff; }

.cancel-item {
    display: grid;
    grid-template-columns: 96px 1fr 100px 120px;
    gap: 16px;
    padding: 20px 24px;
    align-items: center;
}
.cancel-item + .cancel-item { border-top: 1px solid #f3f3f3; }

.cancel-item-pic {
    width: 80px;
    height: 80px;
    background: #111;
    overflow: hidden;
    display: block;
}
.cancel-item-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cancel-item-title {
    min-width: 0;
    color: #424242;
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cancel-item-qty { color: #9e9e9e; font-size: 14px; }
.cancel-item-qty-label { margin-right: 4px; }

.cancel-item-status { text-align: left; }
.cancel-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 14px;
    background: #eff0f4;
    color: #5d5d5d;
    font-size: 13px;
}

/* Empty cancellations state */
.cancel-empty-card {
    padding: 56px 24px;
    text-align: center;
    color: #424242;
}
.cancel-empty-icon { font-size: 48px; color: #d0d0d0; margin-bottom: 16px; }
.cancel-empty-title { margin: 0 0 4px; font-size: 16px; }
.cancel-empty-sub { color: #888; font-size: 14px; margin: 0; }

@media (max-width: 600px) {
    .cancel-item {
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            "pic title"
            "pic qty"
            "pic status";
        row-gap: 6px;
    }
    .cancel-item-pic { grid-area: pic; width: 72px; height: 72px; }
    .cancel-item-title { grid-area: title; }
    .cancel-item-qty { grid-area: qty; }
    .cancel-item-status { grid-area: status; }
}

/* Cancellation Details */
.cancel-detail-head { padding: 18px 24px; margin-bottom: 16px; }
.cancel-detail-body { padding: 32px 24px 24px; }

.cancel-timeline { padding: 16px 8% 8px; }
.cancel-timeline-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.cancel-timeline-line {
    position: absolute;
    top: 9px;
    left: 9px;
    right: 9px;
    height: 4px;
    background: #6cb24a;
    border-radius: 2px;
}
.cancel-timeline-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}
.cancel-timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-sizing: border-box;
}
.cancel-timeline-dot.is-filled { background: #6cb24a; }
.cancel-timeline-dot.is-hollow { background: #fff; border: 4px solid #6cb24a; }
.cancel-timeline-label { color: #424242; font-size: 16px; }

.cancel-timeline-event {
    position: relative;
    margin: 18px 0 8px;
    padding: 18px 24px;
    background: #f4f5f7;
    border-radius: 6px;
    color: #424242;
    font-size: 14px;
}
.cancel-timeline-event::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 18%;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 8px solid #f4f5f7;
}
.cancel-event-time { color: #9e9e9e; margin-right: 24px; }
.cancel-event-text { color: #424242; }

.cancel-detail-items { margin-top: 24px; }
.cancel-detail-item {
    display: grid;
    grid-template-columns: 96px 1fr 140px 80px;
    gap: 16px;
    padding: 16px 0;
    align-items: flex-start;
}
.cancel-detail-item + .cancel-detail-item { border-top: 1px solid #f3f3f3; }
.cancel-detail-item-main { min-width: 0; }
.cancel-item-reason { margin: 6px 0 0; color: #757575; font-size: 14px; }
.cancel-item-reason-label { color: #757575; margin-right: 4px; }
.cancel-detail-item-price { color: #424242; font-size: 15px; }

@media (max-width: 600px) {
    .cancel-timeline { padding: 16px 0 8px; }
    .cancel-timeline-label { font-size: 14px; }
    .cancel-detail-item {
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            "pic main"
            "pic price"
            "pic qty";
        row-gap: 6px;
    }
    .cancel-detail-item .cancel-item-pic { grid-area: pic; width: 72px; height: 72px; }
    .cancel-detail-item-main { grid-area: main; }
    .cancel-detail-item-price { grid-area: price; }
    .cancel-detail-item .cancel-item-qty { grid-area: qty; }
}

/* Clickable order card on the My Orders list */
.order-component-link { display: block; text-decoration: none; color: inherit; }
.order-component-link:hover .shop { box-shadow: 0 2px 10px rgba(0,0,0,.08); }

/* Order Details */
.order-detail-section .account-card { margin-bottom: 16px; }

.order-detail-shop { padding: 0; }
.order-detail-shop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
}
.order-detail-seller { display: flex; align-items: center; gap: 12px; }
.order-detail-seller > .fa-store { font-size: 18px; color: #424242; }
.order-detail-seller-name { font-weight: 600; color: #424242; font-size: 15px; }
.order-detail-chat { color: #2673dd; font-size: 14px; text-decoration: none; }
.order-detail-chat:hover { text-decoration: underline; }
.order-detail-status { flex: none; }

.order-detail-delivery {
    margin: 16px 24px;
    padding: 16px 20px;
    background: #f7f8fa;
    border-radius: 6px;
}
.order-detail-delivery-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.order-detail-delivery-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-left: 3px solid #2673dd;
    padding-left: 12px;
    color: #424242;
}
.order-detail-delivery-method { font-weight: 500; }
.order-detail-delivery-track { font-weight: 600; }
.order-detail-delivery-amount { font-weight: 600; }
.order-detail-i { color: #9e9e9e; cursor: help; }
.order-detail-track-btn {
    flex: none;
    background: #2673dd;
    color: #fff;
    padding: 9px 22px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.order-detail-track-btn:hover { background: #1f63c0; }
.order-detail-delivery-status {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    padding-left: 15px;
    font-size: 14px;
    color: #424242;
}
.order-detail-delivery-status-date { color: #9e9e9e; }

.order-detail-items { padding: 0 24px 12px; }
.order-detail-item {
    display: grid;
    grid-template-columns: 96px 1fr 120px 90px 150px;
    gap: 16px;
    padding: 16px 0;
    align-items: flex-start;
}
.order-detail-item + .order-detail-item { border-top: 1px solid #f3f3f3; }
.order-detail-item-main { min-width: 0; }
.order-detail-item-main .item-title { display: block; color: #424242; text-decoration: none; }
.order-detail-item-main .item-title:hover { color: #2673dd; }
.order-detail-variants { color: #9e9e9e; font-size: 13px; margin: 4px 0 8px; }
.order-detail-warranty { color: #9e9e9e; font-size: 13px; margin-top: 8px; }
.order-detail-item-price { color: #424242; font-size: 14px; }
.order-detail-item-qty { color: #9e9e9e; font-size: 14px; text-align: right; }
.order-detail-item-actions { text-align: right; }
.order-detail-cancel { display: block; color: #757575; font-size: 14px; }
.order-detail-cancel .fa { color: #bdbdbd; }
.order-detail-review { display: inline-block; margin-top: 8px; color: #2673dd; font-size: 14px; text-decoration: none; }
.order-detail-review:hover { text-decoration: underline; }

.order-detail-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
}
.order-detail-meta-title { margin: 0 0 10px; font-size: 17px; color: #424242; font-weight: 500; }
.order-detail-meta-line { margin: 2px 0; color: #9e9e9e; font-size: 14px; }
.order-detail-paidby { margin-top: 10px; color: #424242; }
.order-detail-buyagain {
    flex: none;
    display: inline-block;
    background: #ee632b;
    color: #fff;
    padding: 11px 40px;
    border-radius: 4px;
    font-size: 15px;
    text-decoration: none;
}
.order-detail-buyagain:hover { background: #dd5620; }

.order-detail-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}
.order-detail-bottom .account-card { margin-bottom: 0; }
.order-detail-address { padding: 22px 24px; }
.order-detail-address-name { margin: 0 0 8px; font-weight: 600; color: #424242; }
.order-detail-address-line { margin: 2px 0; color: #424242; font-size: 14px; line-height: 1.6; }

.order-detail-summary { padding: 22px 24px; }
.order-detail-summary-title { margin: 0 0 16px; font-size: 18px; color: #424242; font-weight: 500; }
.order-detail-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0;
    color: #424242;
    font-size: 14px;
}
.order-detail-summary-discount { color: #ee632b; }
.order-detail-summary-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 18px;
    font-weight: 600;
}
.order-detail-summary-paid { color: #757575; }

@media (max-width: 768px) {
    .order-detail-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .order-detail-shop-head { flex-wrap: wrap; }
    .order-detail-delivery-top { flex-direction: column; align-items: stretch; }
    .order-detail-item {
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            "pic main"
            "pic price"
            "pic qty"
            "pic actions";
        row-gap: 6px;
    }
    .order-detail-item .item-pic { grid-area: pic; width: 72px; height: 72px; }
    .order-detail-item-main { grid-area: main; }
    .order-detail-item-price { grid-area: price; text-align: left; }
    .order-detail-item-qty { grid-area: qty; text-align: left; }
    .order-detail-item-actions { grid-area: actions; text-align: left; }
    .order-detail-meta { flex-direction: column; }
    .order-detail-buyagain { width: 100%; text-align: center; }
}

/* My Reviews */
.reviews-section .review-card { padding: 20px 24px; margin-bottom: 16px; }

.review-empty-card {
    padding: 56px 24px;
    text-align: center;
    color: #424242;
}
.review-empty-icon {
    font-size: 48px;
    color: #d0d0d0;
    margin-bottom: 16px;
    display: block;
}
.review-empty-title { font-size: 16px; margin: 4px 0; }
.review-empty-sub   { color: #757575; font-size: 14px; margin: 4px 0 16px; }
.review-empty-cta   { display: inline-block; margin-top: 4px; }

.review-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}
.review-product {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #424242;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}
.review-product:hover .review-product-title { color: #1a9cb7; }

.review-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    background: #111;
    border-radius: 2px;
    flex-shrink: 0;
}
.review-thumb-placeholder { display: inline-block; }

.review-product-title {
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-date { color: #9e9e9e; font-size: 13px; white-space: nowrap; margin-left: 16px; }

.review-rating-row { margin: 8px 0 4px; }
.review-stars { color: #fbbc05; font-size: 14px; }
.review-stars .fa-star-o { color: #d0d0d0; }

.review-body { color: #424242; font-size: 14px; line-height: 1.55; margin: 8px 0 0; }
.review-body p { margin: 0 0 8px; }

.review-images { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.review-images a { display: block; width: 80px; height: 80px; overflow: hidden; border-radius: 2px; background: #111; }
.review-images img { width: 100%; height: 100%; object-fit: cover; }
