/* Only affects the dedicated grouped-purchase component. No ParsKala overrides. */
.agp-form{font-family:inherit;direction:rtl;width:100%;max-width:100%;display:block!important;box-sizing:border-box;color:#282b34}
.agp-form *{box-sizing:border-box}
.agp-head{font-size:16px;font-weight:750;margin:6px 0 14px;text-align:right}
.agp-head small{display:block;font-size:12px;font-weight:400;color:#89919f;margin-top:4px}
.agp-list{display:grid;gap:12px}
.agp-card{padding:14px;border:1px solid #e6e9ef;border-radius:13px;background:#fff;transition:border-color .18s,box-shadow .18s}
.agp-card.agp-selected{border-color:#62b9d6;box-shadow:0 0 0 1px rgba(0,177,204,.1)}
.agp-card-main{display:flex;align-items:flex-start;gap:12px}
.agp-thumb{width:72px;height:72px;flex:0 0 72px;border:1px solid #f1f2f5;border-radius:10px;overflow:hidden;display:block}
.agp-form .agp-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.agp-details{flex:1;min-width:0}
.agp-form .agp-title{font-size:14px;font-weight:650;color:#272936;text-decoration:none;line-height:1.9;display:block}
.agp-form .agp-title:hover{color:#0078a5}
.agp-attributes{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}
.agp-attribute{display:flex;flex-direction:column;gap:5px;flex:1 1 120px;max-width:220px;font-size:12px;color:#6a7182}
.agp-form .agp-select{width:100%;height:37px;padding:5px 10px;border:1px solid #dce2e9;border-radius:9px;background:#fff;color:#343c4e;font-size:13px;box-shadow:none;line-height:1.5;cursor:pointer}
.agp-form .agp-select:focus{outline:2px solid rgba(1,164,203,.18);border-color:#09a5c6}
.agp-status{font-size:12px;color:#9b6c20;min-height:0;margin-top:4px}
.agp-status:empty{display:none}
.agp-help{margin-top:7px;font-size:12px;color:#a16207}
.agp-card-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid #f0f2f5}
.agp-price{font-size:14px;font-weight:650;color:#098650;line-height:1.8;min-width:0}
.agp-price del{font-size:12px;font-weight:400;color:#98a0ad;margin-left:6px}
.agp-price ins{font-weight:750;text-decoration:none}
.agp-price .amount{white-space:nowrap}
.agp-muted{color:#8b93a0}
.agp-stepper{display:flex;align-items:center;justify-content:space-between;direction:ltr;height:40px;width:130px;border:1px solid #dfe6eb;border-radius:9px;background:#fff;overflow:hidden;flex:0 0 auto}
.agp-form .agp-stepper button{width:39px;height:40px;display:grid;place-items:center;padding:0;border:0;border-radius:0;background:#f4f8fa;color:#167697;font-size:23px;line-height:1;cursor:pointer;box-shadow:none}
.agp-form .agp-stepper button:hover:not(:disabled){background:#e4f5f9}
.agp-form .agp-stepper button:disabled{opacity:.35;cursor:not-allowed}
.agp-quantity{font-size:16px;font-weight:700;color:#313b45;min-width:28px;text-align:center}
.agp-bottom{margin-top:14px;background:#f8fafc;border:1px solid #edf0f3;border-radius:12px;padding:14px}
.agp-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px;font-size:13px;color:#737c87}
.agp-summary strong{font-size:18px;color:#252b34;white-space:nowrap}
.agp-form .agp-submit{display:block;width:100%;border:0;border-radius:9px;min-height:45px;padding:11px 15px;font-family:inherit;font-size:14px;font-weight:750;color:#fff;background:linear-gradient(100deg,#089dd5,#08bfd0);cursor:pointer;box-shadow:none}
.agp-form .agp-submit:hover:not(:disabled){filter:brightness(.97)}
.agp-form .agp-submit:disabled{opacity:.5;cursor:not-allowed}
.agp-message{font-size:13px;color:#0e8756;line-height:1.9;margin:8px 0 0}
.agp-message:empty{display:none}
.agp-message.agp-error{color:#ba3232}
.agp-form .agp-view-cart{color:#0078a5;text-decoration:underline}
@media(max-width:767px){.agp-head{font-size:15px}.agp-card{padding:12px}.agp-thumb{width:56px;height:56px;flex-basis:56px}.agp-form .agp-title{font-size:13px}.agp-card-actions{gap:8px}.agp-price{font-size:13px}.agp-attribute{max-width:none;flex-basis:105px}.agp-bottom{padding:12px}}
.agp-choice{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:650;color:#4a6472;cursor:pointer;white-space:nowrap}
.agp-choice .agp-select-item{width:17px;height:17px;margin:0;accent-color:#0b9fc6;cursor:pointer}
.agp-choice .agp-select-item:disabled{opacity:.5;cursor:not-allowed}
/* Some ParsKala price HTML variants include an oversized archive discount badge. */
.agp-price .index-discount-pro{display:none!important}

/* v0.2.0: card-based optional selection, no checkbox required */
.agp-form .agp-card{position:relative;cursor:pointer;outline-offset:3px;transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s}
.agp-form .agp-card:focus-visible{outline:2px solid #1585aa}
.agp-form .agp-card:hover:not(.agp-unavailable){border-color:#a3cddb;background:#fcfeff}
.agp-form .agp-card.agp-selected{border:2px solid #079abb;padding:13px;background:#edfaff;box-shadow:0 2px 14px rgba(0,132,164,.09)}
.agp-form .agp-card.agp-incomplete{border-color:#dca653;background:#fffaf0}
.agp-form .agp-card.agp-unavailable{background:#f8f9fa;opacity:.7;cursor:not-allowed}
.agp-form .agp-card .agp-title{cursor:pointer}
.agp-form .agp-card .agp-select,.agp-form .agp-card .agp-stepper button{cursor:pointer}
.agp-selected-indicator{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;color:#728095;font-weight:650;transition:color .18s}
.agp-check-symbol{display:inline-grid;place-items:center;width:21px;height:21px;border:1.5px solid #cbd5df;border-radius:50%;background:#fff;color:transparent;font-size:13px;font-weight:800}
.agp-selected .agp-selected-indicator{color:#087f95}
.agp-selected .agp-check-symbol{background:#078cad;border-color:#078cad;color:#fff}
.agp-selected.agp-incomplete .agp-selected-indicator{color:#ac7b2e}
.agp-selected.agp-incomplete .agp-check-symbol{background:#ce983f;border-color:#ce983f}
@media(max-width:767px){.agp-form .agp-card.agp-selected{padding:11px}.agp-selected-indicator{font-size:11px}}
