.awin-programme-card { display:flex; align-items:center; gap:12px; background:#ffffff; border:1px solid #eef1f4; padding:14px; border-radius:12px; box-shadow: 0 2px 6px rgba(19,24,35,0.03); margin-bottom:12px; }
.awin-programme-card img.logo { width:64px; height:64px; object-fit:contain; border-radius:8px; background:#fff; padding:6px; border:1px solid #f0f0f0; }
.awin-programme-card .meta { flex:1; }
.awin-programme-card h3 { margin:0 0 6px 0; font-size:16px; line-height:1.1; }
.awin-programme-card .sub { font-size:13px; color:#6b7280; }
.awin-programme-card .actions { display:flex; gap:8px; align-items:center; }
.button.awin-view-products { background:#dec86e; color:#0f1724; border:none; padding:8px 12px; border-radius:8px; cursor:pointer; font-weight:600; }
.button.awin-view-products:hover{ opacity:0.95; }

/* Products grid */
.awin-products-modal { position:fixed; inset:60px 20px 40px 20px; background:#fff; border-radius:12px; box-shadow:0 16px 40px rgba(2,6,23,0.2); overflow:auto; z-index:99999; padding:20px; }
.awin-products-modal .close { position:absolute; top:12px; right:12px; background:transparent; border:0; font-size:18px; cursor:pointer; }
.awin-products-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:16px; }
.awin-product-card { background:#fff; border:1px solid #eee; padding:12px; border-radius:10px; display:flex; flex-direction:column; height:100%; }
.awin-product-card .thumb { display:block; overflow:hidden; border-radius:8px; margin-bottom:10px; }
.awin-product-card .thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.awin-product-card h4 { font-size:14px; margin:0 0 8px 0; min-height:40px; }
.awin-product-card .price { font-weight:700; margin-bottom:8px; }
.awin-prod-actions { margin-top:auto; display:flex; gap:8px; }
.awin-prod-actions .btn { font-size: 12px !important; padding:8px 10px; border-radius:8px; border:0; cursor:pointer; text-decoration:none; display:inline-block; }
.awin-prod-actions .btn.view { background:#f5f5f7; }
.awin-prod-actions .btn.shop { background:#0ea5b7; color:#fff; }

/* Pagination */
.awin-products-pagination { display:flex; gap:8px; align-items:center; justify-content:center; margin-top:12px; }
.awin-products-pagination button { padding:8px 12px; border-radius:8px; border:0; cursor:pointer; }

#awin-programmes-pagination { display:flex; gap:8px; align-items:center; justify-content:center; margin-top:12px; }
#awin-programmes-pagination button { padding:8px 12px; border-radius:8px; border:0; cursor:pointer; }

.awin-products-header { display:flex; gap:8px; margin-bottom:12px; align-items:center; }
.awin-prod-search { flex:1; padding:8px 10px; border:1px solid #e6e9f0; border-radius:8px; font-size:14px; }
.awin-search-btn, .awin-clear-btn { padding:8px 12px; border-radius:8px; cursor:pointer; }
.awin-products-modal .awin-loading { padding:24px; text-align:center; color:#666; }

.awin-summary { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; } /* Card */ 
.awin-summary li { background: #f9fafb; border-radius: 12px; padding: 18px; border: 1px solid #e5e7eb; box-shadow: 0 4px 12px rgba(0,0,0,0.04); transition: transform .15s ease, box-shadow .15s ease; }
.awin-summary li:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.awin-summary li strong { display: block; font-size: 13px; font-weight: 600; color: #6b7280; margin-bottom: 8px; } /* Amount */ 
.awin-summary li .amount { font-size: 22px; font-weight: 700; color: #111827; }
/*.awin-summary li:nth-child(1) { background: linear-gradient(135deg, #ecfeff, #cffafe); border-color: #67e8f9; }*/
.awin-summary li:nth-child(1) { background: linear-gradient(135deg, #fff7ed, #ffedd5); border-color: #fdba74; }
.awin-summary li:nth-child(2) { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border-color: #6ee7b7; }
.awin-summary li:nth-child(3) { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #93c5fd; }
.awin-summary li:nth-child(4) { background: linear-gradient(135deg, #fdf4ff, #fae8ff); border-color: #e879f9; }
.awin-summary li::before { content: "€"; font-size: 26px; opacity: .15; font-weight: 800; position: absolute; top: 12px; right: 14px; } .awin-summary li { position: relative; }

#awin-deeplink-wrapper { max-width: 620px; background: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif; } 
.awin-field { margin-bottom: 18px; } .awin-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #333; } 
#awin-deeplink-wrapper input, #awin-deeplink-wrapper select, #awin-deeplink-wrapper textarea { width: 100%; padding: 10px 12px; font-size: 14px; border-radius: 6px; border: 1px solid #ddd; transition: 0.2s; } 
#awin-deeplink-wrapper input:focus, #awin-deeplink-wrapper select:focus, #awin-deeplink-wrapper textarea:focus { border-color: #dec86e; outline: none; } 
#awin-generate-link { background: #dec86e; border: none; color: #fff; padding: 10px 22px; font-size: 14px; border-radius: 20px; cursor: pointer; } 
#awin-generate-link:hover { background: #e65f00; } #awin-result textarea { height: 80px; resize: none; margin-bottom: 10px; } 
#awin-copy-link, #awin-shorten-link { background: #dec86e; color: #fff; border: none; padding: 8px 16px; font-size: 13px; border-radius: 20px; cursor: pointer; margin-right: 6px; } 
#awin-copy-link:hover, #awin-shorten-link:hover { background: #e65f00; }
#awin-shorten-link:disabled { background: #ccc !important; cursor: not-allowed !important; opacity: 0.6; }
#awin-generate-link:disabled { background: #ccc !important; cursor: not-allowed !important; opacity: 0.6; }
#awin-generated-link { overflow: hidden; resize: none; white-space: pre-wrap; word-wrap: break-word; word-break: break-all; }

/* Responsive */
@media (max-width:800px){
  .awin-products-modal{ inset:24px 8px 16px 8px; padding:12px; }
  .awin-products-grid { grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); }
}