/* Keep action cells in the table formatting context; flex belongs inside the cell. */
#cpBody td{vertical-align:middle}
#cpBody .cp-actions-cell{display:table-cell;min-width:180px}
#cpBody .cp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#cpBody .cp-actions .btn{white-space:nowrap}
.crm-coupon-picker,.crm-coupon-picker *{box-sizing:border-box;min-width:0}
.crm-coupon-picker{width:100%;overflow-wrap:anywhere;display:grid;gap:10px}
.crm-coupon-picker p{margin:0;line-height:1.6}
.ccp-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:10px}
.ccp-selection{padding:10px 12px;background:#f1f6ff;border:1px solid #dce7ff;border-radius:8px;font-size:13px;line-height:1.5}
.ccp-rows{max-height:300px;overflow:auto;overscroll-behavior:contain;border:1px solid #e1e7f0;border-radius:8px}
.ccp-item{padding:12px;border-bottom:1px solid #e8edf4}
.ccp-item:last-child{border-bottom:0}
.form-grid .ccp-choice{display:flex;gap:10px;align-items:flex-start;margin:0;color:#24354b;cursor:pointer}
.form-grid .ccp-choice input{width:16px;height:16px;flex:0 0 16px;margin:3px 0 0;padding:0}
.ccp-choice>span:first-of-type{flex:1}
.ccp-choice strong{display:block;font-size:14px;line-height:1.5}
.ccp-meta,.ccp-benefit{display:block;line-height:1.6;font-size:12px;color:#7a8798}
.ccp-benefit{color:#405773}
.ccp-badge{font-size:12px;white-space:nowrap;border-radius:4px;background:#f0f2f5;color:#7a8594;padding:3px 6px}
.ccp-ok{background:#eaf7ef;color:#228247}
.ccp-unavailable{background:#fafbfd}
.ccp-unavailable .ccp-choice{cursor:default}
.ccp-reasons{margin:8px 0 0 26px;font-size:12px;color:#7b6570;line-height:1.6}
.ccp-reasons summary{cursor:pointer;color:#6b778b}
.ccp-reasons ul{padding-left:18px;margin:8px 0;overflow-wrap:anywhere}
.ccp-empty{padding:24px;text-align:center;color:#8591a1}
.crm-coupon-picker>#crmCouponConfigure{justify-self:start;max-width:100%;white-space:normal;text-align:left}
@media(max-width:600px){.ccp-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.ccp-filters>label:first-child{grid-column:1/-1}.ccp-rows{max-height:260px}}
