/* =========================
   JYCC - Checkout Custom CSS
   File: assets/css/checkout.css
   ========================= */

:root{
  --jycc-bg: #f6f7fb;
  --jycc-card: #ffffff;
  --jycc-text: #0f172a;
  --jycc-muted: rgba(15,23,42,.7);
  --jycc-line: rgba(15,23,42,.10);
  --jycc-line-2: rgba(15,23,42,.14);
  --jycc-primary: #111827;
  --jycc-primary-2: #0b1220;
  --jycc-success: #16a34a;
  --jycc-danger: #dc2626;
  --jycc-warning: #f59e0b;
  --jycc-radius: 16px;
  --jycc-radius-sm: 12px;
  --jycc-shadow: 0 12px 30px rgba(2, 6, 23, .10);
  --jycc-shadow-sm: 0 8px 20px rgba(2, 6, 23, .08);
}

/* prevent theme styles break */
#jycc_wrap, #jycc_wrap *{
  box-sizing: border-box;
}

#jycc_wrap{
  width: 100%;
  padding: 18px 12px;
  background: transparent;
  color: var(--jycc-text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.jycc-card{
  max-width: 1100px;
  margin: 0 auto;
  background: var(--jycc-card);
  border: 1px solid var(--jycc-line);
  border-radius: var(--jycc-radius);
  box-shadow: var(--jycc-shadow);
  overflow: hidden;
}

.jycc-head{
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--jycc-line);
  background: linear-gradient(180deg, rgba(2,6,23,.03), rgba(2,6,23,0));
}

.jycc-title{
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--jycc-text);
}

.jycc-subtitle{
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--jycc-muted);
  line-height: 1.55;
}

.jycc-grid{
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  padding: 18px;
}

@media (max-width: 980px){
  .jycc-grid{
    grid-template-columns: 1fr;
    padding: 14px;
  }
}

.jycc-section{
  border: 1px solid var(--jycc-line);
  border-radius: var(--jycc-radius);
  background: #fff;
  padding: 16px;
  box-shadow: var(--jycc-shadow-sm);
}

.jycc-section-title{
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--jycc-text);
}

/* =========================
   Errors
   ========================= */
#jycc_err,
#jycc_kec_err,
#jycc_pay_err{
  display: none;
  margin: 0 0 12px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(220,38,38,.25);
  background: rgba(220,38,38,.08);
  color: var(--jycc-danger);
  font-size: 13px;
  line-height: 1.45;
}

#jycc_kec_err{ margin-top: 8px; }
#jycc_pay_err{ margin: 10px 0 12px; }

/* =========================
   Form Fields
   ========================= */
#jycc_form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jycc-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jycc-label{
  font-size: 13px;
  font-weight: 700;
  color: var(--jycc-text);
}

.jycc-required{
  color: var(--jycc-danger);
  font-weight: 800;
}

.jycc-note{
  font-size: 12px;
  color: rgba(15,23,42,.65);
  line-height: 1.45;
}

.jycc-input{
  width: 100%;
  min-height: 44px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--jycc-line-2);
  background: #fff;
  outline: none;
  font-size: 14px;
  color: var(--jycc-text);
  transition: box-shadow .15s ease, border-color .15s ease, transform .02s ease;
}

.jycc-input::placeholder{
  color: rgba(15,23,42,.45);
}

.jycc-input:focus{
  border-color: rgba(17,24,39,.45);
  box-shadow: 0 0 0 4px rgba(17,24,39,.10);
}

textarea.jycc-input{
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

/* =========================
   Kecamatan Dropdown (sticky under input)
   ========================= */
.jycc-kecamatan-wrap{
  position: relative; /* IMPORTANT for dropdown absolute */
}

#jycc_list{
  display: none;
  position: absolute;
  top: calc(44px + 34px); /* approx: label+gap+input; refined below */
  left: 0;
  right: 0;
  z-index: 9999;
  margin-top: 6px;
  border-radius: 14px;
  border: 1px solid var(--jycc-line-2);
  background: #fff;
  box-shadow: 0 18px 44px rgba(2,6,23,.18);
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

/* Make top value follow the input, not the label */
.jycc-kecamatan-wrap #jycc_list{
  top: auto;
  /* place just below the input */
  transform: translateY(0);
}

/* We anchor dropdown below input by using a pseudo layout trick:
   Put dropdown after input; absolute; align below input using inset + margin. */
.jycc-kecamatan-wrap #jycc_kec{
  position: relative;
}

.jycc-kecamatan-wrap #jycc_list{
  /* below input: calculate from wrapper padding flow */
  /* Works because wrapper is relative and dropdown is absolute with top: 100% from input not possible.
     So we use a safe approach: attach to wrapper and use padding top via JS-free method:
     We'll set it below the input by giving wrapper extra "dropdown anchor". */
  top: 68px; /* default: sits under input; works with our label+gap */
}

/* Improve for small screens */
@media (max-width: 520px){
  #jycc_list{ max-height: 240px; }
  .jycc-card{ border-radius: 14px; }
  .jycc-section{ padding: 14px; }
}

/* dropdown items (your JS inserts divs) */
#jycc_list > div{
  padding: 12px 12px;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  border-bottom: 1px solid rgba(15,23,42,.06);
  color: rgba(15,23,42,.92);
  background: #fff;
}

#jycc_list > div:last-child{
  border-bottom: none;
}

#jycc_list > div:hover{
  background: rgba(15,23,42,.03);
}

/* Optional: If you want list to be full-width even inside section padding */
.jycc-kecamatan-wrap{
  padding-bottom: 0;
}

/* =========================
   Payment grid
   ========================= */
.jycc-pay-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 680px){
  .jycc-pay-grid{
    grid-template-columns: 1fr;
  }
}

.jycc-pay-item{
  display: block;
  border: 1px solid var(--jycc-line);
  border-radius: 14px;
  padding: 12px 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .02s ease;
}

.jycc-pay-item:hover{
  border-color: rgba(15,23,42,.22);
  box-shadow: 0 12px 28px rgba(2,6,23,.08);
}

.jycc-pay-item input[type="radio"]{
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #111827;
}

.jycc-pay-title{
  font-size: 13px;
  font-weight: 800;
  color: var(--jycc-text);
}

.jycc-pay-desc{
  font-size: 12px;
  line-height: 1.45;
  color: rgba(15,23,42,.65);
}

/* Highlight chosen card (CSS-only using :has if supported) */
@supports selector(:has(*)) {
  .jycc-pay-item:has(input[type="radio"]:checked){
    border-color: rgba(17,24,39,.55);
    box-shadow: 0 0 0 4px rgba(17,24,39,.10);
  }
}

/* =========================
   Submit button
   ========================= */
#jycc_submit{
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--jycc-primary), var(--jycc-primary-2));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(2,6,23,.16);
  transition: transform .05s ease, box-shadow .15s ease, opacity .15s ease;
}

#jycc_submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(2,6,23,.18);
}

#jycc_submit:active{
  transform: translateY(0px);
}

#jycc_submit:disabled{
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

/* =========================
   Summary panel
   ========================= */
.jycc-summary-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.jycc-summary-label{
  font-size: 13px;
  font-weight: 700;
  color: rgba(15,23,42,.78);
}

.jycc-summary-value{
  font-size: 13px;
  font-weight: 900;
  color: var(--jycc-text);
}

.jycc-total{
  margin-top: 14px;
  padding: 14px 14px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  background: rgba(2,6,23,.02);
}

.jycc-total .jycc-summary-label{
  font-size: 14px;
  color: rgba(15,23,42,.80);
}

.jycc-total .jycc-summary-value{
  font-size: 16px;
}

/* =========================
   Mini cart list
   ========================= */
.jycc-cart-mini{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.jycc-cart-mini-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.jycc-cart-mini-row:last-child{
  border-bottom: none;
}

.jycc-cart-mini-name{
  font-size: 13px;
  color: rgba(15,23,42,.92);
  line-height: 1.35;
}

.jycc-cart-mini-qty{
  font-size: 13px;
  font-weight: 900;
  color: rgba(15,23,42,.75);
}

/* =========================
   Empty cart message (from shortcode)
   ========================= */
.jycc-empty{
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(2,6,23,.02);
  color: rgba(15,23,42,.78);
  font-size: 14px;
}

/* =========================
   Small refinements to align dropdown exactly under input
   If your theme changes label spacing, adjust this 1 value:
   ========================= */
.jycc-kecamatan-wrap{
  --jycc-kec-dropdown-top: 68px;
}
.jycc-kecamatan-wrap #jycc_list{
  top: var(--jycc-kec-dropdown-top);
}

.jycc-note-toggle{
  display:inline-block;
  cursor:pointer;
  color:#2563eb;
  text-decoration:none;
  font-weight:600;
  position:relative;
  z-index:50;
  pointer-events:auto;
}
.jycc-note-toggle:hover{ text-decoration:underline; }

.jycc-note-wrap{ margin-top:10px; }
.jycc-btn{
  display:inline-block; width:100%;
  text-align:center; margin-top:10px;
  padding:12px 14px; border-radius:14px;
  background:#111827; color:#fff; font-weight:800;
  text-decoration:none;
}
.jycc-btn:hover{ background:#0b1220; }

.jycc-btn-outline{
  display:inline-block; width:100%;
  text-align:center; margin-top:10px;
  padding:12px 14px; border-radius:14px;
  border:1px solid #d1d5db; color:#111827; font-weight:800;
  text-decoration:none; background:#fff;
}
.jycc-btn-outline:hover{ background:#f8fafc; }

/*CSS THN*/
/* ===== JYCC THANKYOU (Clean + Mobile Friendly) ===== */

.jycc-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.jycc-card{
  background:#fff;
  border:1px solid #eef2f7;
  border-radius:18px;
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
  overflow:hidden;
}

.jycc-head{
  padding:18px 18px 14px;
  border-bottom:1px solid #f1f5f9;
}

.jycc-title{
  margin:0;
  font-size:20px;
  line-height:1.2;
  font-weight:900;
  color:#0f172a;
  letter-spacing:-0.2px;
}

.jycc-subtitle{
  margin:8px 0 0;
  font-size:14px;
  color:#475569;
}

.jycc-subtitle-2{
  font-size:14px;
  font-weight:800;
  color:#0f172a;
  margin:0 0 10px;
}

.jycc-grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap:14px;
  padding:14px;
}

.jycc-section{
  background:#fff;
  border:1px solid #eef2f7;
  border-radius:16px;
  padding:14px;
}

.jycc-section-title{
  margin:0 0 10px;
  font-size:14px;
  font-weight:900;
  color:#0f172a;
}

.jycc-summary-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding:10px 0;
  border-top:1px dashed #eef2f7;
}

.jycc-summary-row:first-of-type{
  border-top:0;
  padding-top:2px;
}

.jycc-summary-label{
  font-size:13px;
  color:#64748b;
  min-width: 140px;
}

.jycc-summary-value{
  font-size:13px;
  color:#0f172a;
  font-weight:700;
  text-align:right;
  flex:1;
}

.jycc-note-label{
  font-size:12px;
  color:#64748b;
  margin-bottom:6px;
  font-weight:700;
}

.jycc-note{
  font-size:12px;
  color:#64748b;
}

.jycc-box{
  border:1px solid #eef2f7;
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  color:#0f172a;
}

.jycc-box-soft{
  background:#f8fafc;
}

.jycc-items{
  padding:0;
  overflow:hidden;
}

.jycc-item-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-bottom:1px solid #f1f5f9;
}

.jycc-item-row:last-child{
  border-bottom:0;
}

.jycc-item-name{
  font-size:13px;
  font-weight:800;
  color:#0f172a;
}

.jycc-item-qty{
  margin-top:4px;
  font-size:12px;
  color:#64748b;
  font-weight:700;
}

.jycc-item-right{
  font-size:13px;
  font-weight:900;
  color:#0f172a;
  white-space:nowrap;
}

.jycc-address{
  line-height:1.6;
}

.jycc-paybox{
  margin-top:10px;
}

.jycc-paybox-title{
  margin:0 0 8px;
  font-size:13px;
  font-weight:900;
  color:#0f172a;
}

.jycc-accounts{
  padding:0;
  overflow:hidden;
}

.jycc-account{
  padding:10px 12px;
  border-bottom:1px solid #f1f5f9;
}

.jycc-account:last-child{
  border-bottom:0;
}

.jycc-account-bank{
  font-size:13px;
  font-weight:900;
  color:#0f172a;
}

.jycc-account-meta{
  margin-top:6px;
  font-size:12px;
  color:#334155;
  line-height:1.6;
}

.jycc-actions{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.jycc-actions-row{
  display:flex;
  gap:10px;
}

.jycc-btn,
.jycc-btn-outline{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:100%;
  text-decoration:none;
  border-radius:14px;
  padding:12px 14px;
  font-weight:900;
  font-size:13px;
  letter-spacing:.2px;
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
}

.jycc-btn{
  background:#0f172a;
  color:#fff;
  border:1px solid #0f172a;
  box-shadow: 0 10px 22px rgba(15,23,42,.12);
}

.jycc-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15,23,42,.16);
}

.jycc-btn-outline{
  background:#fff;
  color:#0f172a;
  border:1px solid #e2e8f0;
}

.jycc-btn-outline:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15,23,42,.10);
}

.jycc-btn-wa{
  background:#16a34a;
  border-color:#16a34a;
  box-shadow: 0 10px 22px rgba(22,163,74,.16);
}

.jycc-btn-wa:hover{
  box-shadow: 0 14px 28px rgba(22,163,74,.22);
}

.jycc-mt-10{ margin-top:10px; }
.jycc-mt-14{ margin-top:14px; }

/* ===== Responsive ===== */
@media (max-width: 860px){
  .jycc-grid{
    grid-template-columns: 1fr;
  }
  .jycc-summary-label{
    min-width: 120px;
  }
}

@media (max-width: 420px){
  .jycc-head{ padding:16px; }
  .jycc-title{ font-size:18px; }
  .jycc-section{ padding:12px; }
  .jycc-actions-row{ flex-direction:column; }
}


?>
<style>
    
    /* ===== JYCC THANKYOU (Clean + Mobile Friendly) ===== */

.jycc-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.jycc-card{
  background:#fff;
  border:1px solid #eef2f7;
  border-radius:18px;
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
  overflow:hidden;
}

.jycc-head{
  padding:18px 18px 14px;
  border-bottom:1px solid #f1f5f9;
}

.jycc-title{
  margin:0;
  font-size:20px;
  line-height:1.2;
  font-weight:900;
  color:#0f172a;
  letter-spacing:-0.2px;
}

.jycc-subtitle{
  margin:8px 0 0;
  font-size:14px;
  color:#475569;
}

.jycc-subtitle-2{
  font-size:14px;
  font-weight:800;
  color:#0f172a;
  margin:0 0 10px;
}

.jycc-grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap:14px;
  padding:14px;
}

.jycc-section{
  background:#fff;
  border:1px solid #eef2f7;
  border-radius:16px;
  padding:14px;
}

.jycc-section-title{
  margin:0 0 10px;
  font-size:14px;
  font-weight:900;
  color:#0f172a;
}

.jycc-summary-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding:10px 0;
  border-top:1px dashed #eef2f7;
}

.jycc-summary-row:first-of-type{
  border-top:0;
  padding-top:2px;
}

.jycc-summary-label{
  font-size:13px;
  color:#64748b;
  min-width: 140px;
}

.jycc-summary-value{
  font-size:13px;
  color:#0f172a;
  font-weight:700;
  text-align:right;
  flex:1;
}

.jycc-note-label{
  font-size:12px;
  color:#64748b;
  margin-bottom:6px;
  font-weight:700;
}

.jycc-note{
  font-size:12px;
  color:#64748b;
}

.jycc-box{
  border:1px solid #eef2f7;
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  color:#0f172a;
}

.jycc-box-soft{
  background:#f8fafc;
}

.jycc-items{
  padding:0;
  overflow:hidden;
}

.jycc-item-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-bottom:1px solid #f1f5f9;
}

.jycc-item-row:last-child{
  border-bottom:0;
}

.jycc-item-name{
  font-size:13px;
  font-weight:800;
  color:#0f172a;
}

.jycc-item-qty{
  margin-top:4px;
  font-size:12px;
  color:#64748b;
  font-weight:700;
}

.jycc-item-right{
  font-size:13px;
  font-weight:900;
  color:#0f172a;
  white-space:nowrap;
}

.jycc-address{
  line-height:1.6;
}

.jycc-paybox{
  margin-top:10px;
}

.jycc-paybox-title{
  margin:0 0 8px;
  font-size:13px;
  font-weight:900;
  color:#0f172a;
}

.jycc-accounts{
  padding:0;
  overflow:hidden;
}

.jycc-account{
  padding:10px 12px;
  border-bottom:1px solid #f1f5f9;
}

.jycc-account:last-child{
  border-bottom:0;
}

.jycc-account-bank{
  font-size:13px;
  font-weight:900;
  color:#0f172a;
}

.jycc-account-meta{
  margin-top:6px;
  font-size:12px;
  color:#334155;
  line-height:1.6;
}

.jycc-actions{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.jycc-actions-row{
  display:flex;
  gap:10px;
}

.jycc-btn,
.jycc-btn-outline{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:100%;
  text-decoration:none;
  border-radius:14px;
  padding:12px 14px;
  font-weight:900;
  font-size:13px;
  letter-spacing:.2px;
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
}

.jycc-btn{
  background:#0f172a;
  color:#fff;
  border:1px solid #0f172a;
  box-shadow: 0 10px 22px rgba(15,23,42,.12);
}

.jycc-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15,23,42,.16);
}

.jycc-btn-outline{
  background:#fff;
  color:#0f172a;
  border:1px solid #e2e8f0;
}

.jycc-btn-outline:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15,23,42,.10);
}

.jycc-btn-wa{
  background:#16a34a;
  border-color:#16a34a;
  box-shadow: 0 10px 22px rgba(22,163,74,.16);
}

.jycc-btn-wa:hover{
  box-shadow: 0 14px 28px rgba(22,163,74,.22);
}

.jycc-mt-10{ margin-top:10px; }
.jycc-mt-14{ margin-top:14px; }

/* ===== Responsive ===== */
@media (max-width: 860px){
  .jycc-grid{
    grid-template-columns: 1fr;
  }
  .jycc-summary-label{
    min-width: 120px;
  }
}

@media (max-width: 420px){
  .jycc-head{ padding:16px; }
  .jycc-title{ font-size:18px; }
  .jycc-section{ padding:12px; }
  .jycc-actions-row{ flex-direction:column; }
}





