.ampn{font:inherit;color:#202020;max-width:1280px;margin:auto}.ampn *{box-sizing:border-box}.ampn header{background:#ed6926;color:white;padding:30px;border-radius:14px}.ampn header h2{color:white;margin:8px 0}.ampn-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;margin:20px 0}.ampn input:not([type=checkbox]),.ampn select,.ampn textarea{width:100%;min-width:0;padding:10px;border:1px solid #cbd5df;border-radius:6px;background:white;color:#202020}.ampn-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ampn article{border:1px solid #dce5eb;border-radius:12px;padding:16px;background:white;display:flex;flex-direction:column;gap:9px;min-width:0}.ampn article img{width:100%;aspect-ratio:4/3;object-fit:contain;background:white}.ampn article h3,.ampn article p{margin:0;overflow-wrap:anywhere}.ampn button{background:#ed6926;color:white;border:0;border-radius:7px;padding:12px;cursor:pointer}.ampn article button{margin-top:auto}.ampn details{border:1px solid #dce5eb;padding:10px;border-radius:7px}.ampn summary{cursor:pointer}.ampn dialog{width:min(480px,95vw);max-height:90vh;overflow:auto;border:0;border-radius:12px;padding:24px}.ampn dialog::backdrop{background:#0008}.ampn dialog form{display:grid;gap:12px}.ampn-more{margin:20px auto;display:block}.ampn [hidden]{display:none!important}@media(max-width:900px){.ampn-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.ampn-grid{grid-template-columns:1fr}.ampn header{padding:20px}}
.ampn header,.ampn button{background:var(--ampn-color,#ed6926)}.ampn-grid{grid-template-columns:repeat(var(--ampn-cols,3),minmax(0,1fr))}.ampn article img{aspect-ratio:var(--ampn-ratio,4/3)}.ampn-logo{max-width:180px;max-height:75px;object-fit:contain}.ampn article button+button{margin-top:0}@media(max-width:900px){.ampn-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.ampn-grid{grid-template-columns:1fr}}

.ampn-basket{border:1px solid #cbd5df;border-radius:12px;padding:16px;margin:16px 0}.ampn-basket-line{display:grid;grid-template-columns:1fr 90px auto;gap:8px;align-items:center;margin:8px 0}.ampn-basket>button{margin:4px}@media(max-width:600px){.ampn-basket-line{grid-template-columns:1fr 75px}.ampn-basket-line button{grid-column:1/-1}}.ampn-offer-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.ampn-offer-fields label:last-child{grid-column:1/-1}.ampn-offer-fields textarea{min-height:100px}@media(max-width:600px){.ampn-offer-fields{grid-template-columns:1fr}}

.ampn header .ampn-access{background:white;color:var(--ampn-color,#ed6926);font-weight:700;border:1px solid white;margin-top:12px;max-width:100%;white-space:normal}.ampn dialog label{display:grid;gap:6px}.ampn dialog [role=status]{color:#a12626;margin:0}@media(max-width:600px){.ampn header .ampn-access{width:100%}}

.ampn-templates{margin:20px 0}.ampn-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ampn-template-grid ul{padding:0;list-style:none;margin:0}.ampn-template-grid li{display:flex;align-items:center;gap:8px;margin:5px 0}.ampn-template-grid li img{width:48px;height:38px;object-fit:contain}.ampn-template-grid button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:600px){.ampn-template-grid{grid-template-columns:1fr}}

.ampn header,.ampn header h2,.ampn button{color:#202020}.ampn header .ampn-access{background:#202020;color:white;border-color:#202020}.ampn article{border-top:3px solid var(--ampn-color,#ed6926)}

.ampn .ampn-parts{border:1px solid #ed6926;padding:16px;margin:16px 0;border-radius:10px}.ampn .ampn-part-row{display:flex;align-items:center;gap:10px;padding:8px;border-bottom:1px solid #ddd;flex-wrap:wrap}.ampn .ampn-part-row span{flex:1;min-width:150px}.ampn .ampn-part-row input{width:75px}.ampn .ampn-parts form label{display:block;margin:8px 0}.ampn .ampn-parts [hidden]{display:none!important}

.ampn header{background:#1c2829!important;border-bottom:5px solid var(--ampn-color,#ed6926)}.ampn article:has(img[src$="AGF.jpg"]),.ampn article:has(img[src$="AGV.jpg"]),.ampn article:has(img[src$="MC.jpg"]){border-top:4px solid #614132}
.ampn header,.ampn header h2,.ampn header p,.ampn header small,.ampn header a{color:#fff!important}.ampn header .ampn-access{background:#fff!important;color:#202020!important}.ampn article,.ampn-basket,.ampn-parts,.ampn dialog,.ampn-template-grid article{background:#fff;color:#202020}.ampn article :is(h3,p,small,summary,td,th),.ampn-basket :is(h3,p,label,span),.ampn-parts :is(h3,p,label,span),.ampn dialog :is(h3,label,p){color:#202020!important}.ampn input,.ampn select,.ampn textarea{background:#fff!important;color:#202020!important}.ampn input::placeholder,.ampn textarea::placeholder{color:#555!important;opacity:1}.ampn button{background:#ed6926;color:#161616!important}.ampn .ampn-table-scroll{overflow-x:auto;max-width:100%}.ampn .ampn-tech-table{width:100%;border-collapse:collapse;font-size:13px}.ampn .ampn-tech-table th,.ampn .ampn-tech-table td{padding:6px;border:1px solid #ddd;text-align:left;white-space:nowrap}.ampn .ampn-tech-table th{background:#eee}.ampn .ampn-template-grid article{padding:12px}.ampn .ampn-basket label{display:block;margin:8px 0}.ampn .ampn-basket form{display:grid;gap:8px}

.ampn-manual-price{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px;border:1px solid #d5dce2;border-radius:6px}.ampn-manual-price input{width:160px;max-width:100%;background:#fff!important;color:#202020!important}.ampn-manual-price small{flex-basis:100%}.ampn-manual-price button[hidden]{display:none!important}

/* V4: compact selector, responsive templates and offer specification */
.ampn .ampn-selector,.ampn .ampn-templates{padding:12px;margin:12px 0}.ampn .ampn-selector h3,.ampn .ampn-templates h3{margin:0 0 6px}.ampn .ampn-selector>p,.ampn .ampn-templates>p{margin:4px 0 10px;font-size:13px}.ampn .ampn-selector-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px;align-items:end}.ampn .ampn-selector-fields label{margin:0;font-size:12px;line-height:1.35;font-weight:600}.ampn .ampn-selector-fields input,.ampn .ampn-selector-fields select{padding:7px;margin-top:4px;min-height:38px;font-size:14px}.ampn .ampn-selector>button{padding:9px 16px;margin:10px 0 0}.ampn .ampn-selector-results:empty{display:none}.ampn .ampn-selector-results{max-height:320px;overflow:auto;margin-top:8px}.ampn .ampn-selector-results p{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:7px 0;border-bottom:1px solid #ddd;font-size:13px}.ampn .ampn-selector-results button{padding:7px 10px;flex-shrink:0}.ampn .ampn-template-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.ampn .ampn-template-grid article{padding:10px;gap:6px;border-radius:8px}.ampn .ampn-template-grid h3{font-size:14px;line-height:1.3}.ampn .ampn-template-grid p{font-size:12px;line-height:1.35}.ampn .ampn-template-grid button{padding:8px;font-size:12px}.ampn .ampn-offer-tech{margin:5px 0 12px;background:white;color:#202020}.ampn .ampn-offer-tech summary{color:#202020;font-weight:600}.ampn .ampn-offer-tech .ampn-parameter-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}.ampn .ampn-parameter-table td:first-child{width:35%;font-weight:600}.ampn .ampn-offer-tech h4{color:#202020;margin:8px 0}.ampn .ampn-offer-tech table{margin:6px 0}@media(max-width:900px){.ampn .ampn-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.ampn .ampn-template-grid,.ampn .ampn-selector-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.ampn .ampn-selector-fields label:first-child{grid-column:1/-1}.ampn .ampn-selector>button{width:100%}.ampn .ampn-selector-results{max-height:260px}.ampn .ampn-template-grid article{padding:8px}.ampn .ampn-offer-tech{padding:6px}.ampn .ampn-offer-tech td{font-size:12px}}@media(max-width:340px){.ampn .ampn-template-grid{grid-template-columns:1fr}}

.ampn .ampn-option-edit{grid-column:1/-1;width:100%;min-width:0;padding:8px;border:1px solid #ddd;border-radius:6px;background:#fff;color:#202020}.ampn .ampn-option-edit label{display:block;color:#202020;margin:6px 0}.ampn .ampn-option-edit input,.ampn .ampn-option-edit textarea{display:block;width:100%;max-width:100%;box-sizing:border-box;background:#fff;color:#202020}.ampn .ampn-offer-thumb{width:76px;height:58px;object-fit:contain;background:white}.ampn .ampn-option-edit summary{cursor:pointer;color:#202020}
