/* ========== eSIM Access — Order / Thank You / My Account (dark theme) ========== */

:root{
  --esim-bg1:#141b2e;
  --esim-bg2:#0d1220;
  --esim-card:rgba(255,255,255,.04);
  --esim-border:rgba(255,255,255,.08);
  --esim-text:#e8ecf5;
  --esim-muted:#9aa4bd;
  --esim-muted2:#7a869f;
  --esim-accent:#5d87ff;
  --esim-accent2:#7a5cff;
}

/* ---- Page wrapper ---- */
.woocommerce-order,
.woocommerce-account .woocommerce,
.woocommerce-order-received .entry-content,
.woocommerce-view-order .woocommerce{
  color:var(--esim-text);
  font-family:inherit;
}

.woocommerce-order p,
.woocommerce-account .woocommerce p{
  color:var(--esim-muted);
}

/* ---- "Thank you" heading / message ---- */
.woocommerce-thankyou-order-received,
.woocommerce-notice--success{
  background:linear-gradient(135deg,rgba(93,135,255,.14),rgba(122,92,255,.14));
  border:1px solid var(--esim-border);
  color:#fff !important;
  font-size:20px;
  font-weight:700;
  padding:22px 26px;
  border-radius:16px;
  margin-bottom:28px;
}

/* ========== 50/50 SPLIT LAYOUT ========== */
.esim-order-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  margin:28px 0;
}
.esim-order-left,
.esim-order-right{
  min-width:0; /* prevent overflow */
}

@media(max-width:900px){
  .esim-order-split{
    grid-template-columns:1fr;
  }
  .esim-order-right{
    order:-1; /* QR first on mobile */
  }
}

/* ---- Section titles ---- */
.woocommerce-column__title,
.woocommerce-order-details__title,
.woocommerce-customer-details h2,
h2.woocommerce-order-details__title{
  color:#fff;
  font-size:18px;
  font-weight:700;
  margin:0 0 14px;
}

/* ---- Order + address tables ---- */
.woocommerce-table,
.woocommerce table.shop_table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:var(--esim-card);
  border:1px solid var(--esim-border);
  border-radius:16px;
  overflow:hidden;
  color:var(--esim-text);
  margin-bottom:22px;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td{
  border:0;
  border-bottom:1px solid var(--esim-border);
  padding:14px 18px;
  color:var(--esim-text);
}
.woocommerce table.shop_table thead th{
  background:rgba(255,255,255,.03);
  color:var(--esim-muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.woocommerce table.shop_table tbody tr:last-child td{border-bottom:0;}
.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td{
  background:rgba(255,255,255,.02);
  color:#fff;
  font-weight:600;
}
.woocommerce table.shop_table tfoot tr:last-child th,
.woocommerce table.shop_table tfoot tr:last-child td{
  font-size:16px;
}
.woocommerce table.shop_table a{color:var(--esim-accent);text-decoration:none;}
.woocommerce table.shop_table a:hover{text-decoration:underline;}

/* ---- Customer / address blocks ---- */
.woocommerce-customer-details{margin-top:22px;}
.woocommerce-customer-details address{
  background:var(--esim-card);
  border:1px solid var(--esim-border);
  border-radius:14px;
  padding:16px 18px;
  color:var(--esim-text);
  font-style:normal;
  line-height:1.6;
}

/* ---- Buttons ---- */
.woocommerce-order .button,
.woocommerce-account .button,
.woocommerce #payment .button,
.woocommerce a.button,
.woocommerce button.button{
  background:linear-gradient(135deg,var(--esim-accent),var(--esim-accent2));
  color:#fff;
  border:0;
  border-radius:999px;
  padding:11px 26px;
  font-weight:600;
  font-size:14px;
  box-shadow:0 8px 22px rgba(93,135,255,.25);
  transition:transform .15s ease,box-shadow .15s ease;
}
.woocommerce-order .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 26px rgba(93,135,255,.35);
  color:#fff;
}

/* ---- My Account: navigation ---- */
.woocommerce-MyAccount-navigation ul{
  list-style:none;margin:0;padding:0;
  background:var(--esim-card);
  border:1px solid var(--esim-border);
  border-radius:14px;
  overflow:hidden;
}
.woocommerce-MyAccount-navigation ul li{
  border-bottom:1px solid var(--esim-border);
}
.woocommerce-MyAccount-navigation ul li:last-child{border-bottom:0;}
.woocommerce-MyAccount-navigation ul li a{
  display:block;padding:14px 18px;
  color:var(--esim-muted);text-decoration:none;font-weight:500;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover{
  background:rgba(93,135,255,.12);
  color:#fff;
}
.woocommerce-MyAccount-content{
  color:var(--esim-text);
}
.woocommerce-orders-table__cell-order-actions .button{padding:8px 16px;font-size:13px;}

/* ========== QR SECTION (Vertical, narrow column) ========== */
.esim-qr-box{
  padding:28px;border-radius:20px;
  background:linear-gradient(160deg,var(--esim-bg1) 0%,var(--esim-bg2) 100%);
  border:1px solid var(--esim-border);
  box-shadow:0 20px 50px rgba(0,0,0,.35);
  color:var(--esim-text);font-family:inherit;
}
.esim-qr-head{
  display:flex;align-items:center;gap:10px;margin-bottom:20px;
}
.esim-qr-ico{
  flex:0 0 auto;
  width:38px;height:38px;border-radius:10px;background:rgba(93,135,255,.15);font-size:20px;
  display:flex;align-items:center;justify-content:center;
}
.esim-qr-head div{flex:1;}
.esim-qr-box h2{margin:0 0 4px;font-size:20px;font-weight:700;color:#fff;}
.esim-qr-sub{margin:0;color:var(--esim-muted);font-size:13px;line-height:1.4;}

.esim-qr-code{
  text-align:center;margin-bottom:20px;
}
.esim-qr-code-inner{
  background:#fff;padding:14px;border-radius:16px;display:inline-block;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
}
.esim-qr-code-inner img{display:block;width:220px;height:220px;}
.esim-qr-btn{
  display:inline-block;margin-top:12px;padding:10px 22px;border-radius:999px;
  background:linear-gradient(135deg,var(--esim-accent),var(--esim-accent2));
  color:#fff !important;text-decoration:none !important;font-weight:600;font-size:14px;
  border:0;text-shadow:none;
}
.esim-qr-btn:visited{color:#fff !important;}
.esim-qr-btn:hover,
.esim-qr-btn:focus{color:#fff !important;opacity:.92;text-decoration:none !important;}

.esim-qr-iccid{
  background:var(--esim-card);border:1px solid var(--esim-border);
  border-radius:14px;padding:14px 16px;margin-bottom:20px;
}
.esim-qr-iccid-label{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--esim-muted2);margin-bottom:4px;}
.esim-qr-iccid-val{font-size:14px;font-weight:600;color:#fff;word-break:break-all;line-height:1.4;}

.esim-qr-info h3{margin:0 0 12px;font-size:15px;color:#fff;font-weight:700;}
.esim-qr-steps{margin:0;padding:0;list-style:none;}
.esim-qr-steps li{
  display:flex;gap:10px;align-items:flex-start;
  padding:0 0 12px 0;color:var(--esim-muted);font-size:13px;line-height:1.5;
}
.esim-qr-step-num{
  flex:0 0 auto;width:24px;height:24px;border-radius:50%;
  background:rgba(93,135,255,.18);color:#8ba6ff;font-weight:700;font-size:12px;
  display:flex;align-items:center;justify-content:center;
}
.esim-qr-steps li strong{color:#dfe4f2;}

/* Pending state */
.esim-qr-pending{text-align:center;}
.esim-qr-pending-ico{font-size:40px;margin-bottom:12px;}
.esim-qr-pending h2{margin:0 0 10px;}
.esim-qr-pending p{margin:0 auto 6px;max-width:360px;color:var(--esim-muted);font-size:13px;line-height:1.6;}
.esim-qr-orderno{color:var(--esim-muted2) !important;font-size:12px;}
.esim-qr-orderno strong{color:#c4cbe0;}

@media(max-width:600px){
  .esim-qr-box{padding:20px;}
  .esim-qr-code-inner img{width:180px;height:180px;}
}
