/* ==========================================================================
   Bikaoo COD order form — matches the theme's section language
   (#151719 ink, coral accent, 16px radii, uppercase micro-labels).
   Self-contained: works with the Bikaoo theme or any other.
   ========================================================================== */

.bikaoo-cod{
  --bk-cod-ink:#151719;
  --bk-cod-coral:#ff735f;
  --bk-cod-coral-dark:#ff654f;
  --bk-cod-line:rgba(23,25,27,.12);
  --bk-cod-soft:#f7f3ec;
  box-sizing:border-box;
  margin:28px 0 0;
  padding:26px;
  background:#fff;
  border:1px solid var(--bk-cod-line);
  border-radius:20px;
  box-shadow:0 18px 44px rgba(23,25,27,.07);
  font-family:inherit;
  position:relative;
  overflow:hidden;
}
.bikaoo-cod *{box-sizing:border-box;}
.bikaoo-cod::before{
  content:"";position:absolute;top:0;left:0;width:100%;height:4px;
  background:linear-gradient(90deg,var(--bk-cod-coral) 0%,#ff8d79 55%,#22a99d 100%);
}

/* --------------------------------------------------------------- header -- */
.bikaoo-cod__head{margin-bottom:22px;}
.bikaoo-cod__badge{
  display:inline-flex;align-items:center;gap:7px;
  padding:7px 13px;margin-bottom:12px;
  background:#fff1ed;color:var(--bk-cod-coral-dark);
  border-radius:999px;
  font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;line-height:1;
}
.bikaoo-cod__badge-dot{
  width:7px;height:7px;border-radius:50%;background:var(--bk-cod-coral);
  box-shadow:0 0 0 4px rgba(255,115,95,.16);
}
.bikaoo-cod__title{
  margin:0 0 7px;color:var(--bk-cod-ink);
  font-size:clamp(19px,2.2vw,25px);font-weight:600;line-height:1.2;letter-spacing:-.01em;
}
.bikaoo-cod__text{margin:0;color:#6f6a63;font-size:14px;line-height:1.6;}

/* ---------------------------------------------------------------- grid --- */
.bikaoo-cod__grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
@media screen and (max-width:640px){.bikaoo-cod__grid{grid-template-columns:1fr;}}
.bikaoo-cod__field{display:flex;flex-direction:column;gap:7px;min-width:0;}
.bikaoo-cod__field--full{grid-column:1 / -1;}
.bikaoo-cod__field label{
  color:var(--bk-cod-ink);
  font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
}
.bikaoo-cod__req{color:var(--bk-cod-coral);}
.bikaoo-cod__opt{color:#99938e;font-weight:600;letter-spacing:.04em;text-transform:none;}
.bikaoo-cod input[type=text],
.bikaoo-cod input[type=tel],
.bikaoo-cod input[type=email],
.bikaoo-cod input[type=number],
.bikaoo-cod select,
.bikaoo-cod textarea{
  width:100%;padding:13px 15px;margin:0;
  background:#fff;color:var(--bk-cod-ink);
  border:1px solid var(--bk-cod-line);border-radius:12px;
  font-family:inherit;font-size:15px;line-height:1.4;
  transition:border-color .2s ease,box-shadow .2s ease;
  appearance:none;-webkit-appearance:none;
}
.bikaoo-cod select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23151719' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;padding-right:40px;
}
.bikaoo-cod textarea{resize:vertical;min-height:84px;}
.bikaoo-cod input:focus,.bikaoo-cod select:focus,.bikaoo-cod textarea:focus{
  outline:none;border-color:var(--bk-cod-ink);box-shadow:0 0 0 3px rgba(23,25,27,.07);
}
.bikaoo-cod input.has-error,.bikaoo-cod select.has-error,.bikaoo-cod textarea.has-error{
  border-color:#d92d20;box-shadow:0 0 0 3px rgba(217,45,32,.1);
}

/* ------------------------------------------------------------ quantity --- */
.bikaoo-cod__qty{
  display:flex;align-items:center;
  border:1px solid var(--bk-cod-line);border-radius:12px;overflow:hidden;width:132px;
}
.bikaoo-cod__qty button{
  flex:0 0 40px;height:46px;border:0;background:var(--bk-cod-soft);
  color:var(--bk-cod-ink);font-size:18px;line-height:1;cursor:pointer;
  transition:background-color .2s ease;
}
.bikaoo-cod__qty button:hover{background:#eadcd5;}
.bikaoo-cod__qty input{
  flex:1;width:52px;min-width:0;text-align:center;border:0;border-radius:0;
  padding:13px 0;box-shadow:none;-moz-appearance:textfield;
}
.bikaoo-cod__qty input::-webkit-outer-spin-button,
.bikaoo-cod__qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.bikaoo-cod__qty input:focus{box-shadow:none;}

/* ------------------------------------------------------------- summary --- */
.bikaoo-cod__summary{
  margin-top:20px;padding:17px 19px;
  background:var(--bk-cod-soft);border-radius:14px;
}
.bikaoo-cod__row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:5px 0;color:#5f5a54;font-size:14px;
}
.bikaoo-cod__row strong{color:var(--bk-cod-ink);font-weight:600;}
.bikaoo-cod__row--total{
  margin-top:7px;padding-top:12px;
  border-top:1px solid rgba(23,25,27,.1);
  font-size:15px;
}
.bikaoo-cod__row--total span{font-weight:600;color:var(--bk-cod-ink);}
.bikaoo-cod__row--total strong{font-size:21px;color:var(--bk-cod-coral-dark);}

/* -------------------------------------------------------------- submit --- */
.bikaoo-cod__submit{
  width:100%;margin-top:20px;padding:18px 22px;
  background:var(--bk-cod-ink);color:#fff;
  border:0;border-radius:12px;cursor:pointer;
  font-family:inherit;font-size:13px;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;line-height:1.2;
  transition:background-color .3s ease,transform .3s ease;
}
.bikaoo-cod__submit:hover:not(:disabled){background:var(--bk-cod-coral-dark);transform:translateY(-2px);}
.bikaoo-cod__submit:disabled{opacity:.6;cursor:progress;transform:none;}
.bikaoo-cod__fine{
  margin:12px 0 0;text-align:center;color:#99938e;
  font-size:12px;line-height:1.5;letter-spacing:.02em;
}

/* --------------------------------------------------------------- states -- */
.bikaoo-cod__errors{
  margin-bottom:16px;padding:13px 16px;
  background:#fff1f0;border-left:3px solid #b42318;border-radius:10px;
  color:#b42318;font-size:14px;line-height:1.5;
}
.bikaoo-cod__errors p{margin:0 0 4px;}
.bikaoo-cod__errors p:last-child{margin:0;}

.bikaoo-cod__success{
  display:flex;align-items:flex-start;gap:14px;
  padding:19px 20px;margin-bottom:4px;
  background:#effcf4;border-radius:14px;color:#176b38;
}
.bikaoo-cod__success-icon{
  flex:0 0 34px;width:34px;height:34px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#25b865;color:#fff;border-radius:50%;font-size:17px;line-height:1;
}
.bikaoo-cod__success strong{display:block;margin-bottom:5px;font-size:17px;color:#176b38;}
.bikaoo-cod__success p{margin:0;font-size:14px;line-height:1.6;color:#557060;}
.bikaoo-cod__order-ref{margin-top:7px!important;font-weight:600;}

.bikaoo-cod__wa,.bikaoo-cod__wa-wrap .bikaoo-cod__wa{
  display:inline-flex;align-items:center;gap:8px;margin-top:12px;
  padding:11px 17px;background:#25d366;color:#fff;
  border-radius:999px;text-decoration:none;
  font-size:13px;font-weight:600;letter-spacing:.04em;
  transition:background-color .25s ease;
}
.bikaoo-cod__wa:hover{background:#1ebe5d;color:#fff;}

.bikaoo-cod__honey{position:absolute!important;left:-9999px!important;height:0;overflow:hidden;}

/* ----------------------------------------------------------- dark text --- */
@media (prefers-color-scheme:dark){
  .bikaoo-cod{background:#fff;}
}

/* the cascading picker inside the COD form */
.bikaoo-cod select:disabled{
  opacity:.55;cursor:not-allowed;background-color:var(--bk-cod-soft);color:#77716a;
}
.bikaoo-cod__field--full .bikaoo-cod__qty{width:132px;}
