/* Approved-for line, accordion, uniform packs, add-ons styling – Schoolwear Direct */
.swd-product{--navy:#0d1b3d;--red:#e3232f;--bg2:#f5f6f8;--bd:#e2e4ea;--mu:#6b7280;--amber:#c27803;}
.swd-approved{display:flex;align-items:center;gap:10px;background:#eef2fb;border:1px solid #d6def2;border-radius:12px;padding:10px 14px;margin:0 0 14px;color:var(--navy);font-weight:700;}
.swd-approved-crest{width:38px;height:38px;border-radius:50%;background:var(--navy);color:#fecd1a;display:flex;align-items:center;justify-content:center;font-weight:800;flex:none;overflow:hidden;}
.swd-approved-crest img{width:100%;height:100%;object-fit:contain;background:#fff;padding:3px;}
.swd-approved-txt{display:block;line-height:1.25;}
.swd-approved-txt small{display:block;font-weight:500;color:var(--mu);font-size:12px;}
.swd-approved a{margin-left:auto;color:var(--red) !important;font-size:13px;font-weight:600;white-space:nowrap;text-decoration:none;}
.swd-product .swd-prating{display:flex;align-items:center;gap:8px;margin:6px 0 2px;}
.swd-product .swd-prating a{color:var(--mu);font-size:13px;text-decoration:none;}
/* accordion */
.swd-product .swd-acc{margin-top:36px;border-top:1px solid var(--bd);}
.swd-product .swd-acc details{border-bottom:1px solid var(--bd);}
.swd-product .swd-acc summary{cursor:pointer;list-style:none;padding:18px 4px;font-weight:700;font-size:16px;color:var(--navy);display:flex;justify-content:space-between;align-items:center;}
.swd-product .swd-acc summary::-webkit-details-marker{display:none;}
.swd-product .swd-acc summary::after{content:"+";font-size:24px;line-height:1;color:var(--red);}
.swd-product .swd-acc details[open] summary::after{content:"\2013";}
.swd-product .swd-acc summary:focus-visible{outline:2px solid var(--navy);outline-offset:2px;}
.swd-product .swd-acc-in{padding:0 4px 20px;font-size:14px;line-height:1.7;max-width:900px;}
.swd-product .swd-acc-in ul{margin:0 0 8px;padding-left:18px;}
.swd-product .swd-del-school{list-style:none;padding:0 !important;margin:0 0 10px !important;}
.swd-product .swd-care{margin-top:12px;color:#3b4254;}
/* packs */
.swd-product .swd-packs{margin-top:44px;}
.swd-product .swd-packs h2{font-size:24px;color:var(--navy);margin:0 0 4px;}
.swd-product .swd-packs-sub{margin:0 0 16px;color:var(--mu);}
.swd-pack{border:1px solid var(--bd);border-radius:16px;padding:16px;margin-bottom:18px;background:#fff;}
.swd-pack-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px;}
.swd-pack-head strong{font-size:17px;color:var(--navy);}
.swd-pack-deal{background:#fecd1a;color:var(--navy);font-weight:800;font-size:12px;border-radius:20px;padding:4px 10px;}
.swd-pack-head small{color:var(--mu);margin-left:auto;}
.swd-pack-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;align-items:stretch;}
.swd-pi{border:1px solid var(--bd);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px;position:relative;min-width:0;}
.swd-pi-tag{position:absolute;top:8px;left:8px;z-index:1;background:var(--navy);color:#fff;font-size:10px;font-weight:800;border-radius:4px;padding:2px 6px;}
.swd-pi-img{display:block;background:var(--bg2);border-radius:10px;overflow:hidden;}
.swd-pi-img img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;}
.swd-pi-name{font-size:14px;font-weight:700;color:var(--navy) !important;text-decoration:none;line-height:1.3;}
.swd-pi-price{font-weight:700;font-size:14px;}
.swd-pi-sel{width:100%;border:1px solid var(--bd) !important;border-radius:8px !important;padding:8px !important;font-size:13px !important;background:#fff !important;height:auto !important;color:#1c2230;}
.swd-pi-sel.is-missing{border-color:var(--red) !important;}
.swd-pack-total{background:var(--navy);color:#fff;border-radius:14px;padding:18px;display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0;}
.swd-pt-was{text-decoration:line-through;opacity:.7;font-size:14px;}
.swd-pt-now{font-size:28px;font-weight:800;line-height:1.1;}
.swd-pt-save{font-size:13px;opacity:.85;}
.swd-pack-add{all:unset;box-sizing:border-box;cursor:pointer;margin-top:8px;background:var(--red);color:#fff;border-radius:10px;font-weight:800;text-align:center;padding:13px 10px;font-size:15px;}
.swd-pack-add[disabled]{background:#6b7590;cursor:not-allowed;}
.swd-pack-add:focus-visible{outline:2px solid #fff;outline-offset:2px;}
.swd-pack-msg{font-size:13px;min-height:18px;}
.swd-pack-msg a{color:#fecd1a;font-weight:700;}
/* Product Add-ons plugin fields */
.swd-product .wc-pao-addon{margin:14px 0 0;padding:0;}
.swd-product .wc-pao-addon .wc-pao-addon-name,.swd-product .wc-pao-addon h3{font-size:13px;font-weight:700;color:var(--navy);margin:0 0 6px;}
.swd-product .wc-pao-addon select,.swd-product .wc-pao-addon input[type=text],.swd-product .wc-pao-addon textarea{width:100%;border:1px solid var(--bd) !important;border-radius:10px !important;padding:11px 12px !important;font-size:14px !important;background:#fff !important;height:auto !important;}
.swd-product .wc-pao-addon .wc-pao-addon-description{font-size:12px;color:var(--mu);}
.swd-product #product-addons-total{margin-top:10px;font-weight:700;color:var(--navy);}
@media(max-width:600px){.swd-approved a{display:none;}.swd-pack-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.swd-pack-total{grid-column:1/-1;}}

.swd-labels{margin:18px 0 6px;border:1px solid #e2e4ea;border-radius:14px;padding:16px;background:#f9fafc;}
.swd-labels-head{display:flex;flex-direction:column;gap:2px;margin-bottom:12px;}
.swd-labels-head b{font-size:16px;color:#0d1b3d;}
.swd-labels-head span{font-size:13px;color:#6b7280;}
.swd-labels-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.swd-label-opt{display:flex;flex-direction:column;gap:10px;position:relative;background:#fff;border:1.5px solid #e2e4ea;border-radius:12px;padding:12px;text-decoration:none !important;color:#1c2230 !important;transition:border-color .15s,box-shadow .15s;}
.swd-label-opt:hover{border-color:#0d1b3d;box-shadow:0 8px 20px rgba(13,27,61,.1);}
.swd-label-img{display:block;aspect-ratio:3/2;border-radius:8px;overflow:hidden;background:#f5f6f8;}
.swd-label-img img{width:100%;height:100%;object-fit:cover;display:block;}
.swd-label-tx{display:flex;flex-direction:column;gap:2px;}
.swd-label-tx strong{font-size:14px;color:#0d1b3d;line-height:1.3;}
.swd-label-tx em{font-style:normal;font-weight:700;color:#e3232f;font-size:14px;}
.swd-label-tx small{color:#6b7280;font-size:12px;line-height:1.4;}
.swd-label-go{margin-top:auto;font-size:13px;font-weight:700;color:#0d1b3d;}
@media(max-width:480px){.swd-labels-grid{grid-template-columns:1fr;}.swd-label-opt{flex-direction:row;align-items:center;}.swd-label-img{width:84px;flex:none;aspect-ratio:1;}.swd-label-go{display:none;}}

.swd-label-added{display:inline-block;font-size:12px;font-weight:700;color:#0a7a3d;background:#e5f6ec;border-radius:10px;padding:2px 8px;margin-bottom:2px;align-self:flex-start;}
html.swd-modal-open{overflow:hidden;}
.swd-modal{position:fixed;inset:0;z-index:999999;background:rgba(13,27,61,.6);display:flex;align-items:center;justify-content:center;padding:20px;}
.swd-modal[hidden]{display:none !important;}
.swd-modal-dlg{background:#fff;border-radius:18px;width:100%;max-width:600px;height:min(88vh,780px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.4);}
.swd-modal-bar{display:flex;justify-content:space-between;align-items:center;padding:14px 16px 14px 20px;border-bottom:1px solid #e2e4ea;}
.swd-modal-bar b{font-size:16px;color:#0d1b3d;}
.swd-modal-x{all:unset;cursor:pointer;width:34px;height:34px;border-radius:50%;background:#f5f6f8;text-align:center;line-height:32px;font-size:24px;color:#6b7280;}
.swd-modal-x:hover{background:#e2e4ea;}
.swd-modal-body{position:relative;flex:1;min-height:0;}
.swd-modal-body iframe{position:absolute;inset:0;width:100%;height:100%;border:0;opacity:0;transition:opacity .2s;}
.swd-modal.is-loaded iframe{opacity:1;}
.swd-modal-load{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#6b7280;}
.swd-modal.is-loaded .swd-modal-load{display:none;}
.swd-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#0d1b3d;color:#fff;border-radius:30px;padding:12px 22px;font-weight:600;font-size:14px;z-index:999998;transition:all .25s;display:flex;gap:14px;align-items:center;box-shadow:0 12px 30px rgba(0,0,0,.3);}
.swd-toast.on{opacity:1;transform:translate(-50%,0);pointer-events:auto;}
.swd-toast a{color:#fecd1a !important;text-decoration:underline;}
@media(max-width:600px){.swd-modal{padding:0;}.swd-modal-dlg{max-width:none;height:100%;border-radius:0;}}
