.ttcm{max-width:1100px;margin:30px auto;padding:0 16px;font:inherit;color:#1f2937}
.ttcm *{box-sizing:border-box}
.ttcm-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:28px;box-shadow:0 8px 28px rgba(15,23,42,.04)}
.ttcm--guest>.ttcm-card{max-width:520px;margin:0 auto}
.ttcm h2,.ttcm h3{margin:0 0 18px;color:#111827;line-height:1.35}
.ttcm h2{font-size:25px}.ttcm h3{font-size:20px}.ttcm p{color:#6b7280}
.ttcm-tabs{display:flex;gap:8px;border-bottom:1px solid #e5e7eb;margin-bottom:23px}
.ttcm-tabs a{flex:1;display:block;padding:10px 14px;text-align:center;color:#6b7280;text-decoration:none!important;border-bottom:3px solid transparent;font-weight:600}
.ttcm-tabs a.is-active{color:#8a6700;border-color:#d4a30f}
.ttcm-form{display:grid;gap:15px}.ttcm-form>label{display:grid;gap:7px;font-weight:600;font-size:14px}
.ttcm input:not([type="checkbox"]),.ttcm textarea{display:block;width:100%;max-width:100%;border:1px solid #d1d5db;border-radius:9px;padding:12px 13px;background:#fff;color:#111827;font:inherit;font-weight:400;line-height:1.45}
.ttcm input:focus,.ttcm textarea:focus{outline:2px solid #f8e6ad;outline-offset:1px;border-color:#d4a30f}
/* Fallback shared button tokens when this plugin runs without the TT theme. */
:root{--tt-btn-gold:#d4a30f;--tt-btn-gold-hover:#b98c0a;--tt-btn-ink:#946b00;--tt-btn-pale:#fff8e5}
.ttcm .tt-btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:11px 18px;border:1px solid var(--tt-btn-gold);border-radius:10px;background-image:none;box-shadow:none;text-decoration:none;font:inherit;font-size:14px;font-weight:700;line-height:1.35;cursor:pointer;transition:background-color .2s,border-color .2s,color .2s}
.ttcm .tt-btn--block{width:100%}
.ttcm .tt-btn--solid{background:var(--tt-btn-gold);color:#fff}
.ttcm .tt-btn--solid:hover{background:var(--tt-btn-gold-hover);border-color:var(--tt-btn-gold-hover);color:#fff}
.ttcm .tt-btn--outline{background:#fff;color:var(--tt-btn-ink);border-color:var(--tt-btn-gold)}
.ttcm .tt-btn--outline:hover{background:var(--tt-btn-pale);color:var(--tt-btn-ink)}
.ttcm .tt-btn:focus-visible{outline:2px solid #886500;outline-offset:3px}

.ttcm-alert{max-width:1100px;margin:0 auto 20px;padding:14px 16px;border-radius:9px}
.ttcm-alert--success{background:#f0fdf4;border:1px solid #86efac;color:#166534}
.ttcm-alert--error{background:#fff7ed;border:1px solid #fdba74;color:#9a3412}
/* Form Đăng ký trên trang Tài khoản: hai cột desktop, một cột mobile. */
.ttcm.ttcm--guest>.ttcm-card--register{max-width:860px;margin:0 auto;padding:0;overflow:hidden;border-color:#eae5d8;box-shadow:0 14px 38px rgba(34,38,46,.055)}
.ttcm-card--register .ttcm-tabs{margin:0;padding:0 30px;background:linear-gradient(90deg,#fffaf0,#fff);border-color:#f1eadb;gap:14px}
.ttcm-card--register .ttcm-tabs a{flex:0 1 180px;padding:14px 16px;margin:0;font-size:13px;font-weight:750;transition:color .18s,border-color .18s}
.ttcm-card--register .ttcm-tabs a:hover{color:#8a6700}
.ttcm-register-heading{display:flex;align-items:center;gap:13px;padding:24px 30px 19px}
.ttcm-register-heading__icon{display:grid;place-items:center;flex:none;width:43px;height:43px;border:1px solid #f1e0b6;border-radius:12px;background:#fff4d7;color:#997200}
.ttcm-register-heading__icon svg{width:21px;height:21px}
.ttcm-register-heading__eyebrow{display:block;margin-bottom:4px;color:#9f7606;font-size:10px;font-weight:800;line-height:1.35;letter-spacing:.09em}
.ttcm.ttcm--guest .ttcm-register-heading h2{margin:0 0 4px;font-size:23px;line-height:1.35;font-weight:750;color:#202a36}
.ttcm-register-heading p{margin:0;color:#76818e;font-size:13px;line-height:1.55}
.ttcm .ttcm-register-form{display:block;padding:0 30px 26px}
.ttcm-register-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px;row-gap:17px}
.ttcm .ttcm-register-fields>label{display:grid;align-content:start;gap:7px;min-width:0;margin:0;color:#364252;font-size:12px;font-weight:750;line-height:1.5}
.ttcm-register-field--full{grid-column:1/-1}
.ttcm .ttcm-register-fields input:not([type="checkbox"]),.ttcm .ttcm-register-fields textarea{min-height:45px;margin:0;padding:10px 13px;background:#fff;border:1px solid #dfe3e8;border-radius:9px;box-shadow:none;font-size:13px;font-weight:450;line-height:1.45;color:#243144;transition:border-color .16s,box-shadow .16s}
.ttcm .ttcm-register-fields textarea{min-height:80px;resize:vertical}
.ttcm .ttcm-register-fields input:hover,.ttcm .ttcm-register-fields textarea:hover{border-color:#bdc5cf}
.ttcm .ttcm-register-fields input:focus,.ttcm .ttcm-register-fields textarea:focus{border-color:#d4a30f;outline:0;box-shadow:0 0 0 3px rgba(212,163,15,.16)}
.ttcm-register-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:23px;padding-top:20px;border-top:1px solid #f1eee8}
.ttcm-register-footer__hint{font-size:12px;color:#7a8795;line-height:1.5}
.ttcm .ttcm-register-footer .tt-btn{min-width:218px;min-height:44px;margin:0;padding:10px 18px;font-size:13px}
@media(max-width:700px){
  .ttcm.ttcm--guest>.ttcm-card--register{border-radius:13px}
  .ttcm-card--register .ttcm-tabs{padding:0 20px;gap:0}
  .ttcm-card--register .ttcm-tabs a{flex:1;padding:12px 8px}
  .ttcm-register-heading{padding:21px 20px 17px}
  .ttcm.ttcm--guest .ttcm-register-heading h2{font-size:20px}
  .ttcm .ttcm-register-form{padding:0 20px 22px}
  .ttcm-register-fields{grid-template-columns:1fr;gap:14px}
  .ttcm-register-footer{margin-top:19px;padding-top:17px;flex-direction:column;align-items:stretch;gap:11px}
  .ttcm .ttcm-register-footer .tt-btn{width:100%;min-width:0}
}
@media(max-width:390px){
  .ttcm.ttcm--guest>.ttcm-card--register{border-radius:11px}
  .ttcm-register-heading__icon{width:38px;height:38px}
  .ttcm-register-heading{gap:10px}
  .ttcm-register-heading p{font-size:12px}
}

/* TT Customer Manager 1.3.2 - Dashboard tài khoản: scope riêng, không ảnh hưởng WooCommerce. */
.ttcm.ttcm--authenticated{max-width:1160px;margin:16px auto 40px;padding:0 8px}
.ttcm-dashboard{--ttcm-gold:#d4a30f;--ttcm-gold-dark:#8b6800;display:grid;grid-template-columns:246px minmax(0,1fr);gap:18px;align-items:stretch;color:#1c2939}
.ttcm-dashboard__icon{display:block;width:18px;height:18px;flex:none}
.ttcm-dashboard__sidebar,.ttcm-dashboard__main{min-width:0;background:#fff;border:1px solid #e9e6df;border-radius:16px;box-shadow:0 10px 34px rgba(28,39,56,.035)}
.ttcm-dashboard__sidebar{display:flex;flex-direction:column;padding:18px 12px 14px}
.ttcm-dashboard__brand{display:flex;align-items:center;gap:9px;padding:0 7px 16px;border-bottom:1px solid #f1eee7}
.ttcm-dashboard__brand-mark{width:36px;height:36px;flex:none;display:grid;place-items:center;background:#fdf3d7;color:#a57600;border-radius:10px}
.ttcm-dashboard__overline{display:block;color:#9a7a39;font-size:9px;font-weight:800;letter-spacing:.075em;line-height:1.4}
.ttcm-dashboard__brand-name{display:block;margin-top:2px;font-size:15px;font-weight:750;line-height:1.3;color:#1d2836}
.ttcm-dashboard__member{display:flex;align-items:center;gap:10px;padding:17px 7px 18px;min-width:0}
.ttcm-dashboard__avatar{flex:none;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(140deg,#f9e9b5,#d4a30f);color:#614a00;border:2px solid #fff7e0}
.ttcm-dashboard__avatar .ttcm-dashboard__icon{width:19px;height:19px}
.ttcm-dashboard__member-info{display:flex;flex-direction:column;min-width:0;gap:2px}
.ttcm-dashboard__member-caption{font-size:11px;color:#89909a}
.ttcm-dashboard__member-info strong{font-size:13px;color:#172233;font-weight:750;overflow-wrap:anywhere;line-height:1.45}
.ttcm-dashboard__member-role{align-self:start;background:#fff7e3;color:#977000;border:1px solid #f5e5b9;padding:2px 7px;border-radius:30px;font-size:10px;font-weight:700}
.ttcm-dashboard__nav{display:grid;gap:5px}
.ttcm .ttcm-dashboard__nav-link{width:100%;display:flex;align-items:center;gap:9px;min-height:42px;padding:9px 11px;border-radius:10px;border:1px solid transparent;background:transparent;color:#596474;text-align:left;text-decoration:none!important;font:inherit;font-size:13px;font-weight:650;line-height:1.35;box-shadow:none;cursor:pointer;transition:background-color .18s,border-color .18s,color .18s}
.ttcm .ttcm-dashboard__nav-link:hover{background:#fbf6ec;border-color:#f5ebd6;color:#725300}
.ttcm .ttcm-dashboard__nav-link.is-active{background:#fff5d8;border-color:#f4dfaa;color:#886000;font-weight:750}
.ttcm .ttcm-dashboard__nav-link:focus-visible{outline:2px solid var(--ttcm-gold);outline-offset:2px}
.ttcm-dashboard__side-footer{margin-top:auto;padding-top:14px}
.ttcm-dashboard__side-footer:before{content:"";display:block;height:1px;background:#f1eee7;margin:0 8px 10px}
.ttcm.ttcm--authenticated .ttcm-dashboard__logout{display:block;margin:0}
.ttcm .ttcm-dashboard__nav-link--logout{color:#a45a38}
.ttcm .ttcm-dashboard__nav-link--logout:hover{background:#fff5f0;border-color:#fae6db;color:#8c4224}
.ttcm-dashboard__main{overflow:hidden}
.ttcm-dashboard__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 28px 22px;background:linear-gradient(115deg,#fff9eb 0%,#fffdf9 48%,#fff 100%);border-bottom:1px solid #f2ece0}
.ttcm-dashboard__kicker{display:block;margin-bottom:6px;color:#9d7600;letter-spacing:.115em;font-weight:800;font-size:10px}
.ttcm.ttcm--authenticated .ttcm-dashboard__header h2{font-size:23px;font-weight:750;color:#192535;line-height:1.32;margin:0 0 5px}
.ttcm.ttcm--authenticated .ttcm-dashboard__header p{font-size:13px;color:#77818e;margin:0;line-height:1.6}
.ttcm-dashboard__header-icon{width:45px;height:45px;display:grid;place-items:center;flex:none;border:1px solid #f2e0ae;color:#a17700;background:#fff5d9;border-radius:12px}
.ttcm-dashboard__header-icon .ttcm-dashboard__icon{width:21px;height:21px}
.ttcm-dashboard__content{padding:24px 28px 26px}
.ttcm-dashboard__section-heading{display:flex;align-items:center;gap:10px;margin-bottom:20px}
.ttcm-dashboard__section-icon{height:36px;width:36px;border-radius:11px;display:grid;place-items:center;color:#987000;background:#fdf6e4;flex:none}
.ttcm.ttcm--authenticated .ttcm-dashboard__section-heading h3{margin:0 0 3px;font-size:16px;font-weight:750;line-height:1.35;color:#273140}
.ttcm-dashboard__section-heading p{font-size:12px;line-height:1.45;margin:0;color:#8a929c}
/* Hồ sơ mặc định hiển thị text; chỉ chuyển thành input khi bấm Chỉnh sửa. */
.ttcm-dashboard__section-title{min-width:0;flex:1}
.ttcm .ttcm-dashboard__edit-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:36px;padding:7px 12px;border:1px solid #e9ce7b;background:#fffaf0;border-radius:9px;color:#926a00;font-size:12px;font-weight:750;line-height:1.35;text-decoration:none!important;white-space:nowrap;transition:background-color .18s,border-color .18s}
.ttcm .ttcm-dashboard__edit-trigger:hover{background:#fff0c7;border-color:#d4a30f;color:#7b5700}
.ttcm .ttcm-dashboard__edit-trigger:focus-visible{outline:2px solid #d4a30f;outline-offset:2px}
.ttcm-dashboard__edit-trigger .ttcm-dashboard__icon{width:16px;height:16px}
.ttcm-dashboard__details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
.ttcm-dashboard__detail{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:13px 15px;background:#fcfcfb;border:1px solid #eceae5;border-radius:10px}
.ttcm-dashboard__detail--full{grid-column:1/-1}
.ttcm-dashboard__detail-label{font-size:11px;line-height:1.4;font-weight:700;color:#89909c}
.ttcm-dashboard__detail-value{display:block;max-width:100%;color:#253142;font-size:13px;line-height:1.55;font-weight:650;overflow-wrap:anywhere;white-space:pre-wrap}
.ttcm-dashboard__detail-value--address{font-weight:500;min-height:26px}
.ttcm-dashboard__action-buttons{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.ttcm.ttcm--authenticated .ttcm-dashboard__action-buttons .tt-btn{min-width:110px}
.ttcm-dashboard__form{gap:0}
.ttcm-dashboard__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;row-gap:16px}
.ttcm-dashboard__fields>label{display:grid;align-content:start;gap:6px;min-width:0;font-size:12px;font-weight:700;color:#384457}
.ttcm-dashboard__fields .ttcm-dashboard__field--full{grid-column:1/-1}
.ttcm.ttcm--authenticated .ttcm-dashboard__fields input,.ttcm.ttcm--authenticated .ttcm-dashboard__fields textarea{min-height:44px;background:#fff;border:1px solid #dfe3e9;border-radius:9px;padding:10px 12px;box-shadow:none;font-size:13px;color:#26313d;line-height:1.45}
.ttcm.ttcm--authenticated .ttcm-dashboard__fields textarea{min-height:92px;resize:vertical}
.ttcm.ttcm--authenticated .ttcm-dashboard__fields input:hover,.ttcm.ttcm--authenticated .ttcm-dashboard__fields textarea:hover{border-color:#bfc6cf}
.ttcm.ttcm--authenticated .ttcm-dashboard__fields input:focus,.ttcm.ttcm--authenticated .ttcm-dashboard__fields textarea:focus{border-color:#d4a30f;outline:3px solid rgba(212,163,15,.16);outline-offset:0}
.ttcm-dashboard__actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #f0f1f3;margin-top:20px;padding-top:16px}
.ttcm-dashboard__actions--end{justify-content:flex-end}
.ttcm.ttcm--authenticated .ttcm-dashboard__actions .tt-btn{min-width:156px;max-width:100%;min-height:42px;padding:9px 15px;font-size:13px;margin:0}
.ttcm-dashboard__security-note{display:flex;align-items:flex-start;gap:8px;padding:11px 12px;margin-top:18px;border-radius:11px;background:#fff9e9;border:1px solid #f6e8c2;color:#7d652b;font-size:12px;line-height:1.6}
.ttcm-dashboard__security-note .ttcm-dashboard__icon{width:16px;height:16px;margin-top:1px}
@media(max-width:900px){
  .ttcm-dashboard{grid-template-columns:1fr;gap:16px}
  .ttcm-dashboard__sidebar{padding:14px}
  .ttcm-dashboard__brand{padding:0 4px 13px}
  .ttcm-dashboard__member{padding:13px 4px 14px}
  .ttcm-dashboard__nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ttcm-dashboard__side-footer{margin-top:10px;padding-top:0}
  .ttcm-dashboard__side-footer:before{margin:0 4px 8px}
}
@media(max-width:590px){
  .ttcm.ttcm--authenticated{margin:10px auto 28px;padding:0}
  .ttcm-dashboard{gap:12px}
  .ttcm-dashboard__sidebar,.ttcm-dashboard__main{border-radius:14px}
  .ttcm-dashboard__sidebar{padding:13px}
  .ttcm-dashboard__nav{gap:6px}
  .ttcm .ttcm-dashboard__nav-link{min-height:42px;padding:8px 9px;gap:7px;font-size:12px}
  .ttcm-dashboard__nav-link .ttcm-dashboard__icon{width:16px;height:16px}
  .ttcm-dashboard__header{padding:20px 18px}
  .ttcm.ttcm--authenticated .ttcm-dashboard__header h2{font-size:21px}
  .ttcm-dashboard__header-icon{height:40px;width:40px}
  .ttcm-dashboard__header-icon .ttcm-dashboard__icon{height:19px;width:19px}
  .ttcm-dashboard__content{padding:20px 17px 22px}
  .ttcm-dashboard__fields,.ttcm-dashboard__details{grid-template-columns:1fr;row-gap:14px}
  .ttcm-dashboard__section-heading{margin-bottom:17px;flex-wrap:wrap}
  .ttcm-dashboard__edit-trigger{margin-left:auto}
  .ttcm-dashboard__actions{flex-direction:column;align-items:stretch;gap:12px}
  .ttcm.ttcm--authenticated .ttcm-dashboard__actions .tt-btn{width:100%;min-width:0}
  .ttcm-dashboard__action-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:100%}
  .ttcm.ttcm--authenticated .ttcm-dashboard__action-buttons .tt-btn{min-width:0}
}
@media(prefers-reduced-motion:reduce){.ttcm .ttcm-dashboard__nav-link{transition:none}}

/* Header desktop: form của TT Customer Manager, tách biệt WordPress login. */
.ttcm.ttcm-header-auth{max-width:none;margin:0;padding:0;font-size:13px;color:#1f2937}
.ttcm-header-radio{position:absolute!important;width:1px!important;height:1px!important;opacity:0;overflow:hidden;clip-path:inset(50%)}
.ttcm-header-tabs{display:flex;gap:5px;margin-bottom:12px}
.ttcm-header-tabs label{flex:1;margin:0;padding:9px 3px;border-bottom:2px solid #ddd;text-align:center;font-weight:700;cursor:pointer}
#ttcm-header-login:checked~.ttcm-header-tabs label[for="ttcm-header-login"],
#ttcm-header-register:checked~.ttcm-header-tabs label[for="ttcm-header-register"]{border-color:#d4a30f;color:#8a6700}
.ttcm-header-panel{display:none}
#ttcm-header-login:checked~.ttcm-header-panel--login,
#ttcm-header-register:checked~.ttcm-header-panel--register{display:block}
.ttcm-header-auth .ttcm-form{gap:10px}
.ttcm-header-auth .ttcm-form>label{gap:4px;margin:0;font-size:12px}
.ttcm-header-auth input:not([type="checkbox"]),.ttcm-header-auth textarea{font-size:13px;padding:9px}
.ttcm-header-auth .ttcm-form .tt-btn{--tt-btn-height:40px;min-height:40px;padding:9px 12px}
.ttcm-header-more{display:block;margin-top:9px;text-align:center;text-decoration:underline}

/* Customer Manager checkout & đơn hàng – giữ tông vàng của theme. */
.ttcm-checkout{margin:20px auto 40px;max-width:1130px;color:#263142}
.ttcm-checkout__layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(315px,.9fr);gap:24px;align-items:start}
.ttcm-checkout__panel,.ttcm-received{background:#fff;border:1px solid #e9e6df;border-radius:13px;padding:27px;box-shadow:0 5px 22px rgba(31,41,55,.045)}
.ttcm-checkout__panel h2,.ttcm-received h2{font-size:22px;font-weight:750;color:#232d3c;margin:0 0 13px}
.ttcm-checkout__panel>p{color:#7c8491;margin:0 0 20px;font-size:13px}
.ttcm-checkout__panel label{display:block;font-weight:650;font-size:13px;margin:16px 0 7px}
.ttcm-checkout__panel label span{color:#c43d2d}
.ttcm-checkout__panel input,.ttcm-checkout__panel textarea{display:block;width:100%;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid #d8dce2;border-radius:8px;background:#fff;box-sizing:border-box;color:#263142;font-size:14px}
.ttcm-checkout__panel input:focus,.ttcm-checkout__panel textarea:focus{border-color:#d4a30f;outline:3px solid rgba(212,163,15,.17)}
.ttcm-checkout__panel textarea{min-height:90px;resize:vertical}
.ttcm-checkout__items{border-top:1px solid #edf0f2;border-bottom:1px solid #edf0f2;padding:13px 0;margin:16px 0}
.ttcm-checkout__item,.ttcm-checkout__row{display:flex;justify-content:space-between;align-items:start;gap:16px;padding:10px 0;font-size:14px}
.ttcm-checkout__item span{min-width:0;overflow-wrap:anywhere}.ttcm-checkout__item strong,.ttcm-checkout__row strong{flex:none;white-space:nowrap}
.ttcm-checkout__row{border-bottom:1px solid #f1f1f1;color:#596579}.ttcm-checkout__grand{border-bottom:0;font-size:17px;font-weight:750;color:#253044}.ttcm-checkout__grand strong{color:#966c00;font-size:21px}
.ttcm-checkout__payment{background:#fff9e8;border:1px solid #f3e3b8;padding:14px 16px;margin:12px 0 20px;border-radius:9px;font-size:13px}
.ttcm-checkout__payment p{margin:7px 0 0;color:#736540;font-size:12px}
.ttcm-checkout__submit{width:100%;min-height:48px;font-weight:750;cursor:pointer}
.ttcm-received{max-width:850px;margin:20px auto 36px}.ttcm-received h2{color:#187343}.ttcm-received__meta{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;background:#f8fafb;padding:14px;border-radius:9px;margin:18px 0}.ttcm-received h3{font-size:17px;margin-top:21px}
.ttcm-orders-table-wrap{overflow-x:auto}.ttcm-orders-table{border-collapse:collapse;width:100%;min-width:510px;font-size:13px}.ttcm-orders-table th,.ttcm-orders-table td{padding:13px 9px;border-bottom:1px solid #e9edf0;text-align:left}.ttcm-orders-table th{color:#5b6677;font-weight:700}
@media(max-width:800px){.ttcm-checkout__layout{grid-template-columns:1fr}.ttcm-checkout__panel{padding:20px}.ttcm-checkout__item strong{white-space:normal;text-align:right}.ttcm-dashboard__nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.ttcm-checkout__panel,.ttcm-received{padding:17px}.ttcm-checkout__panel h2{font-size:19px}.ttcm-checkout__grand strong{font-size:18px}}

/* v1.5.1 — Tài khoản / Đơn hàng: chỉ hiển thị nội dung đơn, thẻ gọn theo layout theme. */
.ttcm-account-orders{min-width:0;color:#283446}
.ttcm-orders-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:22px 26px;background:linear-gradient(105deg,#fffaf0 0%,#fff 80%);border-bottom:1px solid #f0e9dc}
.ttcm.ttcm--authenticated .ttcm-orders-header h2{font-size:22px;line-height:1.3;font-weight:780;letter-spacing:-.02em;color:#1f2937;margin:0 0 5px}
.ttcm-orders-header p{margin:0;color:#758091;font-size:12px;line-height:1.6}
.ttcm-account-orders__content{padding:21px 24px 25px}
.ttcm .ttcm-orders-back{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:9px 12px;border:1px solid #e8d6a0;border-radius:9px;color:#806000;background:#fffaf0;font-size:12px;font-weight:740;text-decoration:none!important}
.ttcm .ttcm-orders-back:hover{background:#fff1c7}
.ttcm-orders-summary{display:flex;align-items:center;gap:8px 17px;flex-wrap:wrap;margin-bottom:14px;padding:12px 15px;background:#f9fafb;border:1px solid #edf0f3;border-radius:11px;font-size:11px;color:#738093}
.ttcm-orders-summary>span:first-child{color:#253448;font-size:12px;margin-right:auto}
.ttcm-orders-summary strong{font-size:16px;color:#222f41}
.ttcm-order-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#bb8d14;margin-right:5px;vertical-align:1px}
.ttcm-order-dot--processing{background:#3885ce}
.ttcm-order-dot--done{background:#30a169}
.ttcm-orders-list{display:grid;gap:11px}
.ttcm-order-card{padding:17px 19px;background:#fff;border:1px solid #e5e9ee;border-radius:12px;box-shadow:0 2px 9px rgba(21,37,61,.025);transition:border-color .2s,box-shadow .2s}
.ttcm-order-card:hover{border-color:#e5cc86;box-shadow:0 4px 15px rgba(39,43,53,.045)}
.ttcm-order-card__top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.ttcm-order-card__top>div{display:flex;align-items:baseline;gap:7px 11px;flex-wrap:wrap;min-width:0}
.ttcm-orders-label{display:block;color:#97a1ae;font-size:9px;font-weight:800;letter-spacing:.08em}
.ttcm-order-card__top strong{font-size:16px;font-weight:770;color:#1c293a;letter-spacing:.01em}
.ttcm-order-card__top time{font-size:11px;color:#8d98a4;white-space:nowrap}
.ttcm-order-badge{display:inline-flex;align-items:center;white-space:nowrap;border-radius:20px;padding:5px 9px;background:#fff4d5;color:#906910;font-size:11px;font-weight:750;line-height:1.3;border:1px solid #f3e6bb}
.ttcm-order-badge--processing{background:#eaf3ff;color:#2365ae;border-color:#d3e7fc}
.ttcm-order-badge--done{background:#e6f6ee;color:#177e4b;border-color:#ccebdc}
.ttcm-order-card__preview{font-size:12px;color:#778291;overflow-wrap:anywhere;line-height:1.65;margin:10px 0 12px;max-height:3.5em;overflow:hidden}
.ttcm-order-card__bottom{border-top:1px solid #f1f2f4;padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.ttcm-order-card__bottom>div{display:flex;flex-direction:column;gap:3px}
.ttcm-order-card__bottom>div>span{font-size:11px;color:#929baa}
.ttcm-order-card__bottom>div>strong{font-size:17px;font-weight:780;color:#9c7300}
.ttcm .ttcm-order-card__action{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;color:#836100;background:#fff9e9;border:1px solid #f0deab;border-radius:9px;font-size:12px;font-weight:770;text-decoration:none!important;white-space:nowrap}
.ttcm .ttcm-order-card__action:hover{background:#fff0c5}
.ttcm-orders-empty{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:270px;padding:25px;color:#778393}
.ttcm-orders-empty>span{font-size:35px;line-height:1;color:#c59b30;width:64px;height:64px;background:#fff7e7;border-radius:20px;display:grid;place-items:center}
.ttcm.ttcm--authenticated .ttcm-orders-empty h3{font-size:17px;margin:3px 0 0;color:#263548}
.ttcm-orders-empty p{margin:0;max-width:310px;font-size:13px;line-height:1.65}
.ttcm-orders-empty .tt-btn{margin-top:8px}
.ttcm-order-view__top{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:15px;padding:16px 19px;background:#faf9f5;border:1px solid #eee9dd;border-radius:12px}
.ttcm.ttcm--authenticated .ttcm-order-view__top h3{font-size:22px;margin:4px 0 4px;color:#1e2d40;font-weight:800}
.ttcm-order-view__top p{font-size:12px;color:#7f8b99;margin:0}
.ttcm-order-view__grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:13px}
.ttcm-order-view__panel{min-width:0;padding:18px;background:#fff;border:1px solid #e9edf0;border-radius:12px}
.ttcm.ttcm--authenticated .ttcm-order-view__panel h3{color:#253044;font-size:14px;margin:0 0 14px;font-weight:780}
.ttcm-order-view__panel h3 span{color:#8490a0;font-size:12px;font-weight:500}
.ttcm-order-view__panel dl{display:grid;grid-template-columns:minmax(90px,.43fr) minmax(0,1fr);gap:10px;margin:0;font-size:12px;line-height:1.65}
.ttcm-order-view__panel dt{color:#8a96a4}
.ttcm-order-view__panel dd{color:#263346;font-weight:630;margin:0;overflow-wrap:anywhere}
.ttcm-order-view__products{padding-bottom:6px}
.ttcm-order-view__product{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #f1f3f5}
.ttcm-order-view__thumb{flex:0 0 53px;height:53px;border-radius:10px;background:#f5f6f8;display:grid;place-items:center;overflow:hidden;font-size:20px}
.ttcm-order-view__thumb img{width:100%;height:100%;object-fit:contain}
.ttcm-order-view__product-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.ttcm-order-view__product-main strong{font-size:12px;line-height:1.5;font-weight:740;overflow-wrap:anywhere}
.ttcm-order-view__product-main>span{font-size:11px;color:#8390a0;line-height:1.5}
.ttcm-order-view__line-total{font-size:12px;white-space:nowrap;font-weight:760;color:#2a3545}
.ttcm-order-view__totals{display:grid;gap:9px;border-top:1px solid #edf0f3;margin:5px 0 0 auto;padding:14px 0;max-width:380px;font-size:12px}
.ttcm-order-view__totals>div{display:flex;justify-content:space-between;align-items:center;gap:25px}
.ttcm-order-view__totals>div span{color:#7d8998}
.ttcm-order-view__totals>div strong{color:#344051}
.ttcm-order-view__totals .ttcm-order-view__grand{border-top:1px dashed #e2e5e9;padding-top:13px;margin-top:4px;font-size:14px}
.ttcm-order-view__totals .ttcm-order-view__grand span{color:#253346;font-weight:750}
.ttcm-order-view__totals .ttcm-order-view__grand strong{color:#9c7200;font-size:19px}
@media(max-width:800px){.ttcm-order-view__grid{grid-template-columns:1fr}.ttcm-orders-header{padding:18px}.ttcm-account-orders__content{padding:16px}}
@media(max-width:500px){.ttcm-orders-summary{gap:7px 14px}.ttcm-order-card{padding:14px}.ttcm-order-card__top{flex-wrap:wrap}.ttcm-order-card__top>div{gap:5px 8px}.ttcm-order-card__top time{width:100%}.ttcm-order-view__panel{padding:14px}.ttcm-order-view__panel dl{grid-template-columns:1fr;gap:4px}.ttcm-order-view__panel dd{margin-bottom:8px}.ttcm-order-view__product{align-items:flex-start}.ttcm-order-view__thumb{flex-basis:43px;height:43px}.ttcm-order-view__line-total{align-self:center}.ttcm-order-view__product-main>span{font-size:10px}}

/* Trang xác nhận đơn hàng — tách khỏi trang Thanh toán. */
.ttcm-received{max-width:900px;margin:20px auto 44px;padding:0;border:1px solid #eee9df;border-radius:17px;box-shadow:0 8px 32px rgba(20,39,64,.045);overflow:hidden;background:#fff}
.ttcm-received__hero{text-align:center;padding:32px 22px 25px;background:linear-gradient(180deg,#f5fbf6 0%,#fff 100%)}
.ttcm-received__check{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 17px;border:2px solid #bce4cd;background:#e6f7ec;color:#178346;border-radius:50%;font-size:34px;font-weight:800}
.ttcm-received__eyebrow{font-size:10px;font-weight:800;letter-spacing:.11em;color:#26834f}
.ttcm-received .ttcm-received__hero h2{font-size:26px;font-weight:800;color:#173d2a;margin:7px 0 9px}
.ttcm-received__hero p{font-size:13px;line-height:1.75;color:#657584;max-width:510px;margin:0 auto}
.ttcm-received__facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#eaeef0;border-top:1px solid #eaeef0;border-bottom:1px solid #eaeef0}
.ttcm-received__facts>div{background:#fff;display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;padding:18px 8px;text-align:center}
.ttcm-received__facts>div>span{font-size:11px;color:#818b99}
.ttcm-received__facts strong{font-size:13px;color:#263748}
.ttcm-received__facts .ttcm-received__amount{color:#a37700;font-size:17px}
.ttcm-received__body{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;padding:25px 30px 5px}
.ttcm-received__section{min-width:0}
.ttcm-received .ttcm-received__section h3{font-size:14px;margin:0 0 12px;color:#1f303d;font-weight:770}
.ttcm-received__items{border-top:1px solid #edf0f2}
.ttcm-received__item{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #edf0f2;padding:12px 0;font-size:12px}
.ttcm-received__item>span{overflow-wrap:anywhere;line-height:1.55;font-weight:650}
.ttcm-received__item small{display:block;color:#8b95a1;font-size:11px;margin-top:4px;font-weight:400}
.ttcm-received__item strong{white-space:nowrap;font-size:12px;color:#354455}
.ttcm-received__delivery{background:#f9fafc;border:1px solid #edf0f2;border-radius:11px;padding:15px;display:flex;flex-direction:column;gap:8px;font-size:12px;line-height:1.6}
.ttcm-received__delivery strong{font-size:13px;color:#2b3745}
.ttcm-received__delivery span{color:#7a8492}
.ttcm-received__delivery p{margin:0;overflow-wrap:anywhere;color:#455267}
.ttcm-received__actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;padding:23px 20px 29px}
.ttcm-received__actions .tt-btn{min-width:160px;text-align:center;justify-content:center}
.ttcm-received--invalid{text-align:center;padding:35px 20px}
.ttcm-received--invalid p{margin:12px 0 20px;color:#758393}
@media(max-width:750px){.ttcm-received__facts{grid-template-columns:repeat(2,minmax(0,1fr))}.ttcm-received__body{grid-template-columns:1fr;gap:20px;padding:22px}.ttcm-received .ttcm-received__hero h2{font-size:23px}}
@media(max-width:450px){.ttcm-received{margin-top:12px}.ttcm-received__facts>div{padding:14px 7px}.ttcm-received__facts strong{font-size:12px}.ttcm-received__item strong{white-space:normal;text-align:right}.ttcm-received__actions .tt-btn{width:100%}}
.ttcm-orders-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:18px;flex-wrap:wrap;font-size:12px}
.ttcm-orders-pagination span{color:#8390a0}
.ttcm .ttcm-orders-pagination a{display:inline-flex;padding:8px 12px;border:1px solid #e4d39b;border-radius:8px;background:#fffaf0;color:#836000;font-weight:730;text-decoration:none!important}
.ttcm .ttcm-orders-pagination a:hover{background:#fff0c4}
