/* The shopping account uses the same warm paper, charcoal and fine silver rules as the collection. */
.tdmc-centre {
    --mc-ink: #232523;
    --mc-muted: #555a52;
    --mc-line: #d4d2c9;
    --mc-paper: #faf9f5;
    --mc-pressed: #e6e5dd;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(148px, .29fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(16px, 2.3vw, 36px);
    margin: 0 0 clamp(22px, 3vw, 44px);
    color: var(--mc-ink);
    font-family: Inter, "Noto Sans HK", "Noto Sans CJK HK", "PingFang HK", sans-serif;
    line-height: 1.55;
}
.tdmc-centre *, .tdmc-centre *::before, .tdmc-centre *::after {box-sizing: border-box}
.tdmc-centre [hidden] {display: none !important}
.shell.td-ac.tdmc-shell {--ac-ink:#232523;--ac-muted:#555a52;--ac-line:#d4d2c9;margin: 0 auto; padding: clamp(24px, 3.5vw, 52px) 0 clamp(40px, 5vw, 72px); color: #232523}
.td-ac.tdmc-shell .td-ac-head {padding-bottom: 13px; border-bottom: 1px solid #898b81}
.td-ac.tdmc-shell .td-ac-head h1 {font-size: clamp(2.3rem, 4vw, 4rem); color: #232523}
.tdmc-nav {
    min-width: 0;
    display: grid;
    align-content: start;
    padding: 5px;
    background: #222423;
    border: 1px solid #222423;
}
.tdmc-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 49px;
    padding: 9px 12px;
    border: 0;
    border-bottom: 1px solid #51534f;
    color: #f2f0e9;
    text-decoration: none;
    font-weight: 650;
    line-height: 1.4;
}
.tdmc-nav a:last-child {border-bottom-color: transparent}
.tdmc-nav a:hover {background: #373a36}
.tdmc-nav a[aria-current="page"], .tdmc-nav a[aria-current="true"] {
    color: #242522;
    background: #f1efe7;
    border-bottom-color: transparent;
}
.tdmc-nav a[aria-current="page"]::after, .tdmc-nav a[aria-current="true"]::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: 0 3px 0 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}
.tdmc-panel {
    min-width: 0;
    padding: clamp(16px, 2.6vw, 37px);
    border: 1px solid var(--mc-line);
    border-top: 3px solid var(--mc-ink);
    background: #fff;
    overflow-wrap: anywhere;
}
.tdmc-panel > h2, .tdmc-panel > header h2 {margin: 0 0 12px; color: var(--mc-ink); font: inherit; font-size: clamp(1.45rem, 2.1vw, 2.15rem); font-weight: 760; line-height: 1.2; letter-spacing: -.04em}
.tdmc-centre h3 {color: var(--mc-ink); font-size: clamp(1.06rem, 1.4vw, 1.3rem); font-weight: 720; line-height: 1.35}
.tdmc-centre a:not(.tdmc-link) {text-underline-offset: .19em}
.tdmc-panel > p {margin: 8px 0; color: var(--mc-muted)}
.tdmc-list {margin: 16px 0 0; padding: 0; list-style: none}
.tdmc-order-row {margin: 0; padding: 17px 0 12px; border-top: 1px solid var(--mc-line)}
.tdmc-order-row:last-child {padding-bottom: 0}
.tdmc-order-heading, .tdmc-order-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 12px;
}
.tdmc-order-heading a {font-weight: 730; color: var(--mc-ink)}
.tdmc-order-heading time {font-size: .83rem; color: var(--mc-muted); white-space: nowrap}
.tdmc-status {
    display: inline-block;
    max-width: 100%;
    padding: 3px 10px;
    color: #41453e;
    border: 1px solid #cccec2;
    border-radius: 2px;
    background: #f1f2eb;
    font-size: .81rem;
    font-weight: 680;
    line-height: 1.5;
}
.tdmc-status[data-status="pending"], .tdmc-status[data-status="on-hold"] {background: #f7efdc; border-color: #dfcda6; color: #654719}
.tdmc-status[data-status="processing"], .tdmc-status[data-status="completed"] {background: #eaf1e8; border-color: #bac9b5; color: #304831}
.tdmc-status[data-status="failed"], .tdmc-status[data-status="cancelled"] {background: #f5ebe8; border-color: #ddc4be; color: #7a4035}
.tdmc-centre .tdmc-order-items {margin: 8px 0; color: var(--mc-muted); line-height: 1.55}
.tdmc-order-foot strong {font-variant-numeric: tabular-nums; color: var(--mc-ink); font-weight: 740}
.tdmc-order-foot a + a, .tdmc-pager a + a {margin-left: 6px}
.tdmc-centre .tdmc-link, .tdmc-pager a, .tdmc-panel .woocommerce .button {
    display:inline-flex; align-items:center; justify-content:center;
    min-height:44px; max-width:100%; padding:6px 13px;
    border:1px solid #555a50; border-radius:1px; background:var(--mc-paper);
    color:var(--mc-ink); font:inherit; font-size:.91rem; font-weight:680; line-height:1.3;
    text-decoration:none; text-align:center; cursor:pointer;
}
.tdmc-order-foot .tdmc-link::after {content:"";width:6px;height:6px;margin:0 0 0 9px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg)}
.tdmc-preorder-item .tdmc-order-heading {margin-bottom:10px}
.tdmc-preorder-item .tdmc-order-foot {margin-top:8px}
.tdmc-order-heading time {display:inline-block;margin-left:4px}
.tdmc-centre .woocommerce-notices-wrapper {min-width:0}
.tdmc-centre .woocommerce-error,.tdmc-centre .woocommerce-message,.tdmc-centre .woocommerce-info {margin:0 0 15px;overflow-wrap:anywhere}
#tdmc-centre,.tdmc-shell #wishlist {scroll-margin-top:100px}
.tdmc-centre .tdmc-link:hover, .tdmc-pager a:hover {background: var(--mc-pressed)}
.tdmc-centre .tdmc-empty {
    padding: clamp(16px, 2.1vw, 28px);
    margin: 16px 0 0;
    background: var(--mc-paper);
    border: 1px dashed #c6c6ba;
    color: var(--mc-muted);
}
.tdmc-empty > p {margin: 0; line-height: 1.65}
.tdmc-empty .tdmc-link {margin-top: 12px; background: var(--mc-ink); border-color:var(--mc-ink); color:#fff}
.tdmc-empty .tdmc-link:hover {color:#fff;background:#484a44}
.tdmc-pager {display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;margin-top:15px;padding-top:12px;border-top:1px solid var(--mc-line);font-size:.87rem}
.tdmc-preorder-item {margin:12px 0 0;padding:13px 15px;border-left:2px solid #868b7b;background:var(--mc-paper)}
.tdmc-preorder-item h3 {margin:0}
.tdmc-preorder-item > p {margin:3px 0 0;color:var(--mc-muted)}
.tdmc-facts {margin:10px 0 0;padding:0}
.tdmc-facts > div {display:grid;grid-template-columns:minmax(70px,.4fr) minmax(0,1fr);gap:4px 12px;padding:5px 0;border-top:1px solid var(--mc-line)}
.tdmc-facts dt {font-size:.87rem;color:var(--mc-muted)}
.tdmc-facts dd {margin:0;color:var(--mc-ink);font-weight:580}
.tdmc-summary > h2,.tdmc-order-detail .woocommerce-order-details__title {margin:0 0 10px;color:var(--mc-ink);font-size:clamp(1.45rem,2vw,1.9rem);line-height:1.25}
.tdmc-actions {display:flex;align-items:center;flex-wrap:wrap;margin:10px 0 0}
.tdmc-actions .button {min-height:44px;white-space:normal;padding:8px 13px;margin:0 6px 4px 0;background:var(--mc-ink);color:white;border:1px solid var(--mc-ink);border-radius:1px}
.tdmc-order-detail > .woocommerce-order-details,.tdmc-order-detail > .woocommerce-customer-details,.tdmc-order-updates {margin-top:20px}
.tdmc-order-detail .wc-item-meta, .tdmc-order-updates ol {padding-left:18px}
.tdmc-order-detail .tdmc-item-detail,.tdmc-order-detail .wc-item-meta {margin:4px 0 0;color:var(--mc-muted);font-size:.84rem}
.tdmc-order-detail .wc-item-meta p {display:inline}
.tdmc-order-updates li {margin:8px 0}
.tdmc-panel .tdmc-notice {padding:12px; border-left:2px solid #918166; background:#f7f3e8}
.tdmc-order-detail table,.tdmc-panel .woocommerce table {width:100%;margin:16px 0;border:0;border-spacing:0;border-collapse:collapse;border-radius:0;font-size:.94rem;font-variant-numeric:tabular-nums}
.tdmc-order-detail td,.tdmc-order-detail th,.tdmc-panel .woocommerce table td,.tdmc-panel .woocommerce table th {padding:9px 6px;vertical-align:top;text-align:start;border:0;border-bottom:1px solid var(--mc-line)}
.tdmc-order-detail thead,.tdmc-panel .woocommerce table thead {background:var(--mc-paper)}
.tdmc-panel .woocommerce::after,.tdmc-panel .woocommerce .col2-set::after {content:"";display:block;clear:both}
.tdmc-panel .woocommerce .col2-set.addresses {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px}
.tdmc-panel .woocommerce .addresses > div {width:auto;float:none;min-width:0;padding:14px;border:1px solid var(--mc-line);background:var(--mc-paper)}
.tdmc-panel .woocommerce .addresses h2, .tdmc-panel .woocommerce .addresses h3 {margin:0;float:none;font-size:1.04rem;line-height:1.4}
.tdmc-panel .woocommerce .addresses header {display:flex;align-items:baseline;justify-content:space-between;gap:6px;flex-wrap:wrap}
.tdmc-panel .woocommerce .addresses .edit {display:inline-flex;align-items:center;min-height:44px;float:none;color:var(--mc-ink);font-size:.9rem}
.tdmc-panel address {margin:5px 0;font-style:normal;line-height:1.65}
.tdmc-panel .woocommerce form {margin:14px 0 0}
.tdmc-panel .woocommerce form .form-row {margin:0 0 12px;padding:0}
.tdmc-panel .woocommerce .form-row label {display:block;margin-bottom:3px;font-size:.91rem;font-weight:620}
.tdmc-panel .woocommerce .input-text,.tdmc-panel .woocommerce select,.tdmc-panel .woocommerce textarea {
    width:100%;max-width:100%;min-width:0;min-height:44px;padding:8px 10px;
    border:1px solid #a6aa9e;border-radius:1px;background:#fff;color:var(--mc-ink);font:inherit;font-size:16px;line-height:1.4;
}
.tdmc-panel .woocommerce fieldset {min-width:0;margin:18px 0;padding:11px 14px;border:1px solid var(--mc-line)}
.tdmc-panel .woocommerce button.button {background:var(--mc-ink);color:#fff;border-color:var(--mc-ink)}
.tdmc-centre a:focus-visible,.tdmc-centre button:focus-visible,.tdmc-centre input:focus-visible,.tdmc-centre select:focus-visible,.tdmc-centre textarea:focus-visible {outline:2px solid #36564a;outline-offset:3px}
.tdmc-nav a:focus-visible {outline-color:#f4eacb;outline-offset:-3px}
.tdmc-nav a[aria-current]:focus-visible {outline-color:#36564a}
.tdmc-centre ~ .td-ac-membergrid {--ac-line:#d4d2c9;--ac-ink:#232523;--ac-muted:#555a52}
.tdmc-centre ~ .td-ac-membergrid .td-ac-card {border-color:#d4d2c9;border-radius:1px}
.tdmc-centre ~ .td-ac-membergrid .td-ac-profile-head {background:#272a27;color:#fff;border-radius:0}
.tdmc-centre ~ .td-ac-membergrid .td-ac-profile-icon {background:#363a35;border-color:#676d61;border-radius:2px}
.tdmc-centre ~ .td-ac-membergrid .td-ac-name-form button {border-radius:1px;background:#292c28}
.tdmc-centre ~ .td-ac-membergrid .td-ac-name-form input {border-radius:1px}
@media(max-width:850px) {
    .tdmc-centre {grid-template-columns:minmax(0,1fr);gap:12px}
    .tdmc-nav {display:flex;flex-wrap:wrap;padding:4px}
    .tdmc-nav a {flex:1 1 auto;justify-content:center;min-height:44px;padding:7px 9px;border:0}
    .tdmc-nav a[aria-current]::after {display:none}
}
@media(max-width:560px) {
    .tdmc-nav {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px}
    .tdmc-nav a {grid-column:span 2;text-align:center;font-size:.93rem}
    .tdmc-nav a:first-child:nth-last-child(4),.tdmc-nav a:first-child:nth-last-child(4) ~ a {grid-column:span 3}
    .tdmc-nav a:nth-child(4):nth-last-child(2),.tdmc-nav a:nth-child(5):last-child {grid-column:span 3}
    .tdmc-panel {padding:15px 12px}
    .tdmc-order-heading,.tdmc-order-foot {align-items:center}
    .tdmc-order-row {padding:13px 0}
    .tdmc-preorder-item {padding:10px}
    .tdmc-order-detail td,.tdmc-order-detail th {font-size:.87rem}
    .tdmc-panel .woocommerce .form-row-first,.tdmc-panel .woocommerce .form-row-last {float:none;width:100%}
}
