.hdpos-details-host{position:relative;min-width:0}.hdpos-product-shell>.hdpos-product{width:100%;height:100%;box-sizing:border-box}/* Quiet folded corner; full button remains a separate hit target. */
.hdpos-details-host>.hdpos-details-trigger{position:absolute!important;top:1px!important;right:1px!important;z-index:2;display:block!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0 10px 0 0!important;background:transparent!important;color:#fff!important;box-shadow:none!important;cursor:pointer;isolation:isolate;text-align:right!important;font:700 12px/1 system-ui,sans-serif!important}
.hdpos-details-host>.hdpos-details-trigger::before{content:"";position:absolute;top:0;right:0;width:30px;height:30px;background:#12344fdb;clip-path:polygon(0 0,100% 0,100% 100%);border-radius:0 9px 0 0;z-index:-1;pointer-events:none;transition:background .15s ease}
.hdpos-details-host>.hdpos-details-trigger>span{position:absolute;top:4px;right:6px;pointer-events:none}
.hdpos-details-host>.hdpos-details-trigger:hover::before,.hdpos-details-host>.hdpos-details-trigger:focus-visible::before{background:#12344f}
@media (pointer:coarse),(max-width:767px){.hdpos-details-host>.hdpos-details-trigger{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}.hdpos-details-host>.hdpos-details-trigger::before{width:34px;height:34px}.hdpos-details-host>.hdpos-details-trigger>span{top:5px;right:7px}}
.hdpos-details-trigger:focus-visible{outline:3px solid #dbaf52;outline-offset:2px}.hdpos-details-dialog{box-sizing:border-box;width:min(620px,95vw);max-height:88vh;max-height:88dvh;padding:0;border:1px solid #cddbea;border-radius:15px;background:#fff;color:#142f48;box-shadow:0 20px 80px #0005;font:14px/1.5 system-ui,sans-serif;overflow:auto;margin:auto}.hdpos-details-dialog::backdrop{background:#071a30b3}.hdpos-details-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;background:#102e48;color:white;position:sticky;top:0;z-index:1}.hdpos-details-dialog h2{font-size:20px;margin:0;color:inherit}.hdpos-details-dialog h3{font-size:15px;margin:16px 0 5px;color:#142f48}.hdpos-details-close{border:1px solid #ffffff60;background:#fff;color:#142f48;font-size:24px;line-height:1;width:40px;height:40px;border-radius:8px;cursor:pointer}.hdpos-details-content{padding:16px 20px}.hdpos-details-content p{margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}.hdpos-details-photo{width:110px;height:90px;object-fit:cover;border-radius:8px}.hdpos-details-content table{width:100%;border-collapse:collapse;margin:8px 0 14px}.hdpos-details-content th,.hdpos-details-content td{text-align:left;padding:7px 9px;border-bottom:1px solid #e1e9f1;font-size:13px}.hdpos-details-content th{font-weight:600}.hdpos-details-warning{padding:10px;background:#fff5db;border-radius:7px;color:#594014}
.hdpos-details-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.hdpos-details-tabs button{flex:1;min-height:40px;border:1px solid #cddbea;border-radius:8px;background:#f2f6fa;color:#12344f;font:600 13px system-ui;cursor:pointer;padding:7px}.hdpos-details-tabs button[aria-pressed=true]{background:#12344f;color:white;border-color:#12344f}.hdpos-details-dialog section[hidden]{display:none!important}
.hdpos-details-dialog fieldset{border:1px solid #dbe4ee;border-radius:8px;margin:10px 0;padding:10px}.hdpos-details-dialog fieldset label{display:block;padding:7px;color:#16344e}.hdpos-details-dialog legend{font-weight:700}.hdpos-details-dialog form>button{margin:8px;padding:10px 16px;border:1px solid #17344d;border-radius:6px}.hdpos-details-dialog form>button[type=submit]{background:#17344d;color:white}

/* Modifier dialog: compact desktop rows; stacked touch-friendly mobile options. */
.hdpos-modifiers-dialog .hdpos-modifier-options{display:grid;grid-template-columns:minmax(0,1fr);gap:4px 12px}
.hdpos-modifiers-dialog .hdpos-modifier-options label{display:flex;align-items:flex-start;gap:8px;min-width:0;min-height:36px;box-sizing:border-box;overflow-wrap:anywhere;cursor:pointer;line-height:1.4;padding:8px 4px}
.hdpos-modifiers-dialog .hdpos-modifier-options input{flex:0 0 auto;margin:3px 0 0!important;width:16px;height:16px}
@media (min-width:768px){
 .hdpos-modifiers-dialog{width:min(850px,94vw)}
 .hdpos-modifiers-dialog .hdpos-modifier-options{grid-template-columns:repeat(3,minmax(0,1fr))}
}
