:root{--ck-border:#e6e6e6;--ck-focus:#1a1a1a;--ck-bg:#fafafa;--ck-text:#1a1a1a;--ck-muted:#6b7280;--ck-radius:10px;}
#checkout-page{background:#fff;min-height:100vh;color:var(--ck-text);}
#checkout-page .ck-container{max-width:1080px;margin:0 auto;padding:40px 24px 80px;}
#checkout-page .ck-logo{margin-bottom:40px;}
#checkout-page .ck-logo img{height:36px;}
#checkout-page .ck-grid{display:grid;grid-template-columns:1fr 400px;gap:60px;align-items:start;}
@media(max-width:900px){#checkout-page .ck-grid{grid-template-columns:1fr;gap:32px;}}
#checkout-page .ck-title{font-size:26px;font-weight:700;margin-bottom:28px;letter-spacing:-.5px; text-transform: uppercase;}
#checkout-page .ck-section-label{font-size:14px;font-weight:700;margin:28px 0 12px;}
#checkout-page .ck-input,#checkout-page .ck-select,#checkout-page .ck-textarea{width:100%;border:1px solid var(--ck-border);border-radius:var(--ck-radius);padding:14px 16px;font-size:15px;background:#fff;color:var(--ck-text);outline:none;transition:border-color .15s,box-shadow .15s;}
#checkout-page .ck-input:focus,#checkout-page .ck-select:focus,#checkout-page .ck-textarea:focus{border-color:var(--ck-focus);box-shadow:0 0 0 1px var(--ck-focus);}
#checkout-page .ck-input::placeholder,#checkout-page .ck-textarea::placeholder{color:#9ca3af;}
#checkout-page .ck-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
@media(max-width:560px){#checkout-page .ck-row2{grid-template-columns:1fr;}}
#checkout-page .ck-field{margin-bottom:12px;}
#checkout-page .ck-radio-list{border:1px solid var(--ck-border);border-radius:var(--ck-radius);overflow:hidden;}
#checkout-page .ck-radio-item{display:flex;align-items:center;gap:14px;padding:16px;cursor:pointer;border-bottom:1px solid var(--ck-border);transition:background .12s;}
#checkout-page .ck-radio-item:last-child{border-bottom:0;}
#checkout-page .ck-radio-item:hover{background:#f9f9f9;}
#checkout-page .ck-radio-item input[type=radio]{width:18px;height:18px;accent-color:var(--ck-text);flex-shrink:0;}
#checkout-page .ck-r-icon{width:44px;flex-shrink:0;}
#checkout-page .ck-r-icon img{max-width:32px;max-height:32px;}
#checkout-page .ck-r-body{flex-grow:1;}
#checkout-page .ck-r-name{font-weight:600;font-size:15px;}
#checkout-page .ck-r-note{font-size:13px;color:var(--ck-muted);}
#checkout-page .ck-r-fee{font-weight:700;text-align:right;white-space:nowrap;}
#checkout-page .ck-check{display:flex;align-items:center;gap:10px;margin-top:20px;font-size:14px;}
#checkout-page .ck-check input{width:18px;height:18px;accent-color:var(--ck-text);}
#checkout-page .ck-notice{border:1px dashed var(--ck-border);border-radius:var(--ck-radius);padding:24px;text-align:center;color:var(--ck-muted);font-size:14px;}
#checkout-page .ck-summary{background:var(--ck-bg);border:1px solid var(--ck-border);border-radius:14px;padding:28px 24px;position:sticky;top:24px;}
#checkout-page .ck-summary-title{font-size:15px;font-weight:700;margin-bottom:20px;}
#checkout-page .ck-cart-item{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--ck-border);}
#checkout-page .ck-cart-thumb{position:relative;width:64px;height:64px;flex-shrink:0;}
#checkout-page .ck-cart-thumb img{width:64px;height:64px;object-fit:cover;border-radius:8px;border:1px solid var(--ck-border);}
#checkout-page .ck-cart-qty-badge{position:absolute;top:-8px;right:-8px;background:var(--ck-text);color:#fff;font-size:11px;font-weight:700;min-width:20px;height:20px;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0 5px;}
#checkout-page .ck-cart-info{flex-grow:1;min-width:0;}
#checkout-page .ck-cart-name{font-size:13px;font-weight:600;line-height:1.35;margin-bottom:3px;}
#checkout-page .ck-cart-attr{font-size:12px;color:var(--ck-muted);}
#checkout-page .ck-cart-price{font-weight:700;font-size:13px;white-space:nowrap;text-align:right;}
#checkout-page .ck-sum-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;font-size:15px;}
#checkout-page .ck-sum-row.total{border-top:1px solid var(--ck-border);margin-top:12px;padding-top:16px;font-size:19px;font-weight:700;}
#checkout-page .ck-muted{color:var(--ck-muted);}
#checkout-page .ck-submit{width:100%;border:0;border-radius:var(--ck-radius);
    background: #22c55e;
    color:#fff;padding:16px;font-size:16px;font-weight:700;cursor:pointer;margin-top:20px;display:flex;align-items:center;justify-content:center;gap:8px;transition:opacity .15s;}
#checkout-page .ck-submit:hover{opacity:.88;}
#checkout-page .ck-submit:disabled{opacity:.5;cursor:not-allowed;}
#checkout-page .ck-discount-toggle{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--ck-border);cursor:pointer;font-size:14px;}
#loading_overlay{position:fixed;inset:0;background:rgba(255,255,255,.9);z-index:9999;display:none;align-items:center;justify-content:center;flex-direction:column;}
#loading_overlay.show{display:flex;}
.bg-success-light{background-color:#e8f5e9 !important;transition: background-color 0.5s ease;}
/* --- FOOTER TIKI STYLE --- */
.ck-footer {
    text-align: center;
    padding: 30px 24px 20px;
    margin-top: 100px;
    font-size: 13px;
    color: var(--ck-muted);
}
.ck-footer p {
    margin: 0;
}
.ck-footer .ck-f-title {
    margin-bottom: 10px;
}
.ck-footer .ck-f-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}
.ck-footer .ck-f-links a {
    color: var(--ck-text);
    text-decoration: none;
    transition: color 0.15s, opacity 0.15s;
    white-space: nowrap;
}
.ck-footer .ck-f-links a:hover {
    color: #0b5fb6; /* Màu xanh link đặc trưng */
    text-decoration: underline;
}
.ck-footer .ck-f-links i {
    display: inline-block;
    width: 1px;
    height: 12px;
    background-color: var(--ck-border);
    margin: 0 12px;
}
.ck-footer .ck-f-copyright {
    font-size: 12px;
}
/* ============================================================
   MODAL THẺ QUỐC TẾ — CSS
   Thêm vào cuối file style checkout của bạn
   ============================================================ */

.cc-overlay{
    position:fixed; inset:0; z-index:9999;
    background:rgba(15,23,42,.55);
    display:flex; align-items:center; justify-content:center;
    padding:16px; overflow-y:auto;
  }
  .cc-modal{
    position:relative;
    width:100%; max-width:600px;
    background:#fff; border-radius:16px;
    padding:28px 24px 24px;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    box-sizing:border-box;
  }
  .cc-close{
    position:absolute; top:16px; right:16px;
    width:32px; height:32px; border:0; border-radius:8px;
    background:#f1f5f9; color:#64748b; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:background .15s;
  }
  .cc-close:hover{ background:#e2e8f0; }
  
  .cc-title{ font-size:19px; font-weight:600; margin:0 0 4px; color:#0f172a; }
  .cc-sub{ font-size:13px; color:#64748b; margin:0 0 22px; }
  
  /* ---- LAYOUT GRID ---- */
  .cc-grid{
    display:grid; grid-template-columns:1fr 1fr;
    gap:24px; align-items:start;
  }
  @media (max-width:540px){
    .cc-grid{ grid-template-columns:1fr; }
    .cc-cardcol{ max-width:330px; margin:0 auto; width:100%; }
    .cc-modal{ padding:24px 16px 16px; }
  }
  
  /* ---- THẺ ẢO 3D ---- */
  .cc-flip{ perspective:1000px; aspect-ratio:1.586; }
  .cc-flip-inner{
    position:relative; width:100%; height:100%;
    transition:transform .55s cubic-bezier(.4,0,.2,1);
    transform-style:preserve-3d;
  }
  .cc-flip.flipped .cc-flip-inner{ transform:rotateY(180deg); }
  .cc-card{
    position:absolute; inset:0; border-radius:14px;
    -webkit-backface-visibility:hidden; backface-visibility:hidden;
    box-sizing:border-box; overflow:hidden;
    color:#fff;
  }
  .cc-front{
    padding:16px; display:flex; flex-direction:column; justify-content:space-between;
    background:linear-gradient(135deg,#1e293b,#334155);
    transition:background .3s;
  }
  .cc-front.visa{ background:linear-gradient(135deg,#1a1f71,#2b3a9e); }
  .cc-front.mc{   background:linear-gradient(135deg,#c0392b,#e67e22); }
  .cc-front.jcb{  background:linear-gradient(135deg,#0b3d91,#0e7a4a); }
  .cc-back{
    transform:rotateY(180deg);
    background:linear-gradient(135deg,#1e293b,#334155);
  }
  .cc-front-top{ display:flex; justify-content:space-between; align-items:flex-start; }
  .cc-chip{ width:44px; height:32px; border-radius:6px; background:linear-gradient(135deg,#e6c66a,#c9a13c); }
  .cc-brand{ height:32px; display:flex; align-items:center; }
  .cc-num{ font-size:clamp(16px,4.5vw,21px); letter-spacing:2px; font-family:monospace; margin:8px 0; }
  .cc-front-bottom{ display:flex; justify-content:space-between; align-items:flex-end; }
  .cc-label{ font-size:9px; color:rgba(255,255,255,.6); letter-spacing:1px; }
  .cc-value{ font-size:14px; text-transform:uppercase; }
  .cc-mono{ font-family:monospace; }
  /* mặt sau */
  .cc-strip{ height:38px; background:#000; margin:18px 0 12px; }
  .cc-sig-row{ display:flex; align-items:center; padding:0 16px; gap:8px; }
  .cc-sig{ flex:1; height:28px; border-radius:3px;
    background:repeating-linear-gradient(#fff,#fff 6px,#e5e5e5 6px,#e5e5e5 8px); }
  .cc-cvv-box{ min-width:44px; height:28px; background:#fff; border-radius:3px;
    display:flex; align-items:center; justify-content:center;
    font-family:monospace; font-size:13px; color:#111; }
  .cc-secure{ text-align:right; padding:8px 16px 0; font-size:11px; letter-spacing:2px; color:rgba(255,255,255,.5); }
  
  /* ---- FORM ---- */
  .cc-fg{ margin-bottom:14px; }
  .cc-fg label{ display:block; font-size:13px; color:#64748b; margin:0 0 5px; }
  .cc-fg input{
    width:100%; box-sizing:border-box;
    height:42px; padding:0 14px;
    border:1px solid #e2e8f0; border-radius:9px;
    font-size:15px; outline:none; transition:border-color .15s, box-shadow .15s;
  }
  .cc-fg input:focus{ border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
  .cc-fg-row{ display:flex; gap:12px; }
  .cc-fg-row .cc-fg{ flex:1; }
  
  /* ---- NÚT ---- */
  .cc-actions{ display:flex; gap:12px; margin-top:22px; }
  .cc-btn{
    flex:1; height:46px; border-radius:10px; cursor:pointer;
    font-size:15px; font-weight:600;
    display:flex; align-items:center; justify-content:center; gap:8px;
    transition:filter .15s, background .15s;
  }
  .cc-btn-ghost{ background:#f1f5f9; color:#475569; border:1px solid #e2e8f0; }
  .cc-btn-ghost:hover{ background:#e2e8f0; }
  .cc-btn-primary{ background:#16a34a; color:#fff; border:1px solid #16a34a; }
  .cc-btn-primary:hover{ filter:brightness(1.06); }
/* ================================================================= */
/* NEW ADVANCED UIX DISCOUNT & LOYALTY COMPONENT (TIKI STYLE)        */
/* ================================================================= */
.wh-discount-container {
    background: #fff;
    border-radius: 14px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Phần 1: Voucher khuyến mãi */
.wh-promo-section {
    background: #fff;
    border: 1px solid var(--ck-border);
    border-radius: 12px;
    padding: 16px;
}
.wh-promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.wh-promo-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ck-text);
}
.wh-promo-sub {
    font-size: 13px;
    color: var(--ck-muted);
}
.wh-promo-sub i {
    font-size: 12px;
    margin-left: 2px;
}

/* Thẻ Voucher */
.wh-voucher-card {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.wh-v-left {
    background: #22c55e; /* Màu xanh lá đặc trưng icon */
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wh-v-icon-box {
    display: flex;
    align-items: center;
}
.wh-v-body {
    flex-grow: 1;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wh-v-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ck-text);
}
.wh-v-info-icon {
    color: #0b5fb6;
    font-size: 13px;
    cursor: pointer;
}
.wh-v-right {
    padding-right: 14px;
}
.wh-v-btn-apply {
    background: #0060df;
    color: #fff;
    border: none;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.wh-v-btn-apply:hover {
    background: #004bbd;
}

/* Nút kích hoạt mở rộng ô nhập mã */
.wh-promo-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed var(--ck-border);
    cursor: pointer;
}
.wh-trigger-txt {
    font-size: 13px;
    font-weight: 600;
    color: #0060df;
    display: flex;
    align-items: center;
    gap: 8px;
}
.text-blue { color: #0060df; }
.fs-12 { font-size: 12px; }

/* Phần 2: Khối dùng điểm tích lũy */
.wh-loyalty-section {
    border: 1px solid var(--ck-border);
    border-radius: 12px;
    padding: 4px 16px;
    background: #fff;
}
.wh-loyalty-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}
.wh-loyalty-item:last-child {
    border-bottom: none;
}
.wh-l-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}
/* Định danh icon theo màu hệ thống */
.wh-l-icon.vip { background: #eff6ff; color: #1d4ed8; font-size: 10px; }
.wh-l-icon.asa { background: #f3e8ff; color: #7e22ce; }
.wh-l-icon.coin { background: #fef3c7; color: #d97706; }

.wh-l-body {
    flex-grow: 1;
    text-align: left;
}
.wh-l-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ck-text);
    margin-bottom: 2px;
}
.wh-l-desc {
    font-size: 12px;
    color: var(--ck-muted);
}

/* Trạng thái bị khóa (Disabled) */
.wh-loyalty-item.disabled {
    opacity: 0.6;
}
.wh-loyalty-item.disabled .wh-l-title {
    font-weight: 600;
    color: #374151;
}

/* ĐỊNH DẠNG NÚT GẠT (SWITCH SLIDER STYLE) */
.wh-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}
.wh-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.wh-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #e5e7eb;
    transition: .2s;
    border-radius: 34px;
}
.wh-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.wh-switch input:checked + .wh-slider {
    background-color: #0060df; /* Bật switch lên màu xanh dương */
}
.wh-switch input:focus + .wh-slider {
    box-shadow: 0 0 1px #0060df;
}
.wh-switch input:checked + .wh-slider:before {
    transform: translateX(18px);
}
.wh-switch input:disabled + .wh-slider {
    background-color: #f3f4f6;
    cursor: not-allowed;
}