/* SrinakornGem V6.17.7 customer account: compact bilingual passwordless history */
.sg177-wrap{max-width:1060px;margin:0 auto;padding:42px 16px 88px}
.sg177-eyebrow{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#a0783d;font-weight:700}
.sg177-head h1{font-size:clamp(28px,4vw,44px);margin:8px 0 10px}
.sg177-muted{color:#786e62;font-size:14px;line-height:1.7}
.sg177-card{background:#fff;border:1px solid #e9dac4;border-radius:18px;padding:24px;margin-top:22px;box-shadow:0 8px 32px rgba(60,45,28,.035)}
.sg177-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.sg177-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-top:20px}
.sg177-form label{font-size:14px;font-weight:700;display:block;margin-bottom:7px}
.sg177-form .sg177-field{flex:1 1 270px;min-width:200px}
.sg177-form input{width:100%;min-height:48px;box-sizing:border-box;border:1px solid #e3d5c4;border-radius:10px;padding:11px 14px;font:inherit;background:white;color:#25211e}
.sg177-btn{min-height:47px;padding:11px 21px;border:1px solid #161616;border-radius:10px;background:#171717;color:white;cursor:pointer;font:inherit;font-weight:700}
.sg177-btn:disabled{opacity:.5;cursor:not-allowed}
.sg177-btn-alt{background:white;border-color:#c6b093;color:#2d2116}
.sg177-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sg177-status{min-height:20px;margin-top:12px;font-size:14px;line-height:1.6;color:#5b4b34}
.sg177-status[data-error="1"]{color:#a62f31}
.sg177-section-head{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.sg177-rows{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}
.sg177-item{padding:17px;border-radius:13px;border:1px solid #eadfce;background:#fff;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.sg177-item-main{min-width:0;flex:1}
.sg177-item strong{display:block;line-height:1.5}
.sg177-item small{display:block;color:#74685d;line-height:1.7;margin-top:4px;overflow-wrap:anywhere}
.sg177-pill{display:inline-block;border-radius:999px;background:#f5ece0;padding:4px 9px;font-size:12px;color:#795825;font-weight:700}
.sg177-price{font-weight:800;white-space:nowrap;font-size:17px}
.sg177-item-side{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.sg177-note{background:#f9f5ef;padding:9px 12px;border-radius:9px;margin-top:7px;font-size:13px;color:#675444;white-space:pre-wrap}
.sg177-empty{padding:24px;text-align:center;background:#faf7f3;border-radius:12px;color:#73685c}
.sg177-session{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center;gap:8px}
.sg177-hide{display:none!important}
@media(max-width:660px){.sg177-wrap{padding:24px 12px 70px}.sg177-card{padding:17px;margin-top:15px}.sg177-grid{grid-template-columns:1fr}.sg177-form .sg177-field{flex-basis:100%}.sg177-form .sg177-btn{width:100%}.sg177-item-side{align-items:flex-start}}

/* V6.17.8: independent order progress, QT/SG tab separation */
.sg178-tabs{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:22px 0 0}
.sg178-tab{font:inherit;font-weight:750;background:#fff;border:1px solid #d9c7ac;border-radius:10px;padding:12px 18px;color:#574431;min-height:44px;cursor:pointer}
.sg178-tab.is-active{background:#29231e;color:#fff;border-color:#29231e}
.sg178-refresh{margin-left:auto;font-size:13px}
.sg178-catalog{display:inline-flex;align-items:center;margin:5px 0 10px;text-decoration:none}
.sg178-order{align-items:flex-start}
.sg178-order-total{font-weight:750;margin-top:12px;font-size:15px}
.sg178-order .sg177-item-side{max-width:240px}
.sg178-expand{min-width:170px}
.sg178-progress{margin-top:15px;border-top:1px solid #ebdfcf;padding-top:15px;line-height:1.6}
.sg178-progress p{font-size:13px;color:#685744}
.sg178-timeline{padding:0 0 0 20px;margin:8px 0 18px;list-style:none;position:relative}
.sg178-step{position:relative;padding:1px 0 15px 10px;color:#847b73;font-size:14px}
.sg178-step:before{content:'';position:absolute;left:-15px;top:5px;width:12px;height:12px;border:2px solid #cbbda9;background:#fff;border-radius:50%}
.sg178-step:not(:last-child):after{content:'';position:absolute;top:23px;left:-9px;width:2px;height:calc(100% - 15px);background:#e5dac9}
.sg178-step.is-done{font-weight:650;color:#2d503f}
.sg178-step.is-done:before{border-color:#44856d;background:#44856d}
.sg178-order-actions{margin-top:12px;display:flex;gap:10px}
@media(max-width:660px){.sg178-tabs{gap:6px}.sg178-tab{flex:1;padding:10px 8px;font-size:13px}.sg178-refresh{flex-basis:100%;margin:0}.sg178-order .sg177-item-side{max-width:100%;width:100%;align-items:stretch}.sg178-expand{width:100%}}
