/* SKC Quick Order – drawer */
html.skc-od-open, html.skc-od-open body { overflow: hidden; }
.skc-od[hidden] { display: none !important; }
.skc-od { position: fixed; inset: 0; z-index: 100000; font-size: 15px; line-height: 1.45; color: #1d1d1f; }
.skc-od *, .skc-od *::before, .skc-od *::after { box-sizing: border-box; }
.skc-od__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; }
.skc-od__panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 480px; max-width: 100%;
    display: flex; flex-direction: column;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0,0,0,.2);
    transform: translateX(100%);
    transition: transform .25s ease;
}
.skc-od.is-open .skc-od__overlay { opacity: 1; }
.skc-od.is-open .skc-od__panel { transform: translateX(0); }

.skc-od__head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 16px 18px;
    background: linear-gradient(90deg, #ff6a00, #ff8a1f);
    color: #fff;
}
.skc-od__kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; opacity: .9; }
.skc-od__head h2 { margin: 2px 0 0; font-size: 24px; line-height: 1.15; color: #fff; font-weight: 700; }
.skc-od__x {
    width: 42px; height: 42px; flex: 0 0 42px;
    border: 0; border-radius: 50%;
    background: rgba(255,255,255,.18); color: #fff;
    font-size: 30px; line-height: 1; cursor: pointer; padding: 0;
}
.skc-od__x:hover, .skc-od__x:focus { background: rgba(255,255,255,.32); color: #fff; }

.skc-od__steps { display: flex; border-bottom: 1px solid #eee; background: #fafafa; }
.skc-od__steps span { flex: 1; text-align: center; padding: 8px 4px; font-size: 12px; font-weight: 700; color: #999; border-bottom: 3px solid transparent; }
.skc-od__steps span.is-on { color: #ff6a00; border-bottom-color: #ff6a00; }

.skc-od__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 16px 18px; }
.skc-od__foot {
    display: flex; gap: 10px; justify-content: flex-end;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #eee; background: #fff;
}
.skc-od__foot:empty { display: none; }

/* buttons */
.skc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 20px;
    border: 0; border-radius: 10px;
    font-family: inherit; font-size: 16px; font-weight: 800; line-height: 1.2;
    text-decoration: none !important; cursor: pointer; text-align: center;
}
.skc-btn:disabled { opacity: .5; cursor: not-allowed; }
.skc-btn--main { background: #e8340c; color: #fff !important; flex: 1 1 auto; }
.skc-btn--main:hover:not(:disabled), .skc-btn--main:focus { background: #c92b08; color: #fff; }
.skc-btn--light { background: #f1f1f1; color: #1d1d1f !important; }
.skc-btn--light:hover, .skc-btn--light:focus { background: #e4e4e4; }
.skc-btn--wa { background: #1fa855; color: #fff !important; }
.skc-btn--wa:hover, .skc-btn--wa:focus { background: #178a45; }
.skc-btn--upi { background: #5f259f; color: #fff !important; margin-top: 10px; }
.skc-btn--block { display: flex; width: 100%; }

/* review list */
.skc-od__lines { list-style: none; margin: 0; padding: 0; }
.skc-od__line {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto 28px;
    grid-template-areas: "name total rm" "qty total rm";
    column-gap: 10px;
    padding: 10px 0; border-bottom: 1px solid #eee;
    align-items: center;
}
.skc-od__lname { grid-area: name; min-width: 0; }
.skc-od__lname b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.skc-od__lname small { color: #777; font-size: 12px; }
.skc-od__lqty { grid-area: qty; color: #555; font-size: 13px; }
.skc-od__ltotal { grid-area: total; font-weight: 800; white-space: nowrap; }
.skc-od__rm {
    grid-area: rm; width: 28px; height: 28px; padding: 0;
    border: 0; border-radius: 50%; background: #f3f3f3; color: #999;
    font-size: 20px; line-height: 1; cursor: pointer;
}
.skc-od__rm:hover, .skc-od__rm:focus { background: #ffe1d6; color: #e8340c; }

.skc-od__sum { margin-top: 16px; padding: 12px 16px; background: #fff5ee; border-radius: 12px; }
.skc-od__sum > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.skc-od__grand { border-top: 1px solid #f1d2bd; margin-top: 4px; padding-top: 10px !important; font-size: 18px; }
.skc-od__grand b { color: #e8340c; }

.skc-od__notice { margin: 12px 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.skc-od__notice--error { background: #fdecec; color: #a4161a; border: 1px solid #f5c2c2; }
.skc-od__notice--warn { background: #fff6e0; color: #7a5200; border: 1px solid #ffe0a3; }

.skc-od__loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 0; color: #666; }
.skc-spin { display: inline-block; width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: skc-spin .8s linear infinite; vertical-align: middle; }
@keyframes skc-spin { to { transform: rotate(360deg); } }

/* form */
.skc-od__total-mini { display: flex; justify-content: space-between; padding: 10px 14px; margin-bottom: 14px; background: #fff5ee; border-radius: 10px; }
.skc-od__total-mini b { color: #e8340c; font-size: 17px; }
.skc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; }
.skc-f { min-width: 0; }
.skc-f--full { grid-column: 1 / -1; }
.skc-f label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: #333; }
.skc-f label em { color: #e8340c; font-style: normal; }
.skc-f input, .skc-f select, .skc-f textarea {
    display: block; width: 100%; max-width: 100%;
    min-height: 46px; padding: 10px 12px;
    font-family: inherit; font-size: 16px; color: #1d1d1f;
    background: #fff; border: 1px solid #cfcfcf; border-radius: 10px;
    box-shadow: none; margin: 0;
}
.skc-f textarea { min-height: 80px; resize: vertical; }
.skc-f input:focus, .skc-f select:focus, .skc-f textarea:focus { outline: none; border-color: #ff6a00; box-shadow: 0 0 0 3px rgba(255,106,0,.18); }
.skc-f.has-err input, .skc-f.has-err select, .skc-f.has-err textarea { border-color: #d62828; }
.skc-f__err { display: block; min-height: 0; margin-top: 3px; font-size: 12px; color: #d62828; }
.skc-f__err:empty { display: none; }
.skc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.skc-od__note { margin: 14px 0 0; font-size: 13px; color: #666; }

/* success */
.skc-od__success { text-align: center; padding: 6px 0 14px; }
.skc-od__tick { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: #e7f7ee; color: #1a7f37; font-size: 34px; line-height: 64px; font-weight: 800; }
.skc-od__success h3 { margin: 0 0 4px; font-size: 22px; color: #1a7f37; }
.skc-od__success p { margin: 0 0 10px; color: #555; }
.skc-od__ordno, .skc-od__ordtotal { font-size: 16px; }
.skc-od__ordno b, .skc-od__ordtotal b { font-size: 18px; }
.skc-od__hint { margin: 6px 0 14px; font-size: 12px; color: #666; text-align: center; }
.skc-pay { margin: 14px 0 0; padding: 14px; border: 1px solid #ffd2b3; background: #fff7f0; border-radius: 12px; text-align: center; }
.skc-pay strong { display: block; margin-bottom: 6px; font-size: 16px; }
.skc-pay img { display: block; width: 190px; max-width: 100%; height: auto; margin: 8px auto; border-radius: 8px; }
.skc-pay small { display: block; margin-top: 6px; color: #666; }
.skc-od__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* phones: full-screen sheet */
@media (max-width: 560px) {
    .skc-od__panel { width: 100%; box-shadow: none; }
    .skc-od__head { padding: 12px 14px; }
    .skc-od__head h2 { font-size: 20px; }
    .skc-od__body { padding: 14px; }
    .skc-od__foot { padding-left: 14px; padding-right: 14px; }
    .skc-grid { grid-template-columns: 1fr; }
    .skc-od__foot .skc-btn { flex: 1 1 0; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .skc-od__panel, .skc-od__overlay, .skc-bar { transition: none; }
    .skc-spin { animation-duration: 2s; }
}
