@font-face{font-family:"SDP Rupee";src:url("fonts/NotoSansDevanagari-Regular.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap;}.sdp-aff-card{display:flex;gap:16px;align-items:center;border:1px solid #e2e2e2;border-radius:10px;padding:14px;margin:18px 0;background:#fff;box-sizing:border-box}.sdp-aff-image{width:150px;flex:0 0 150px;text-align:center}.sdp-aff-image img{max-width:100%;height:auto;max-height:150px;object-fit:contain}.sdp-aff-body{flex:1}.sdp-aff-label{font-size:12px;text-transform:uppercase;letter-spacing:.04em;opacity:.65}.sdp-aff-body h3{margin:4px 0 8px;font-size:20px}.sdp-aff-body p{margin:0 0 8px}.sdp-aff-price{margin:8px 0 10px}.sdp-aff-offer{font-weight:700;font-size:20px}.sdp-aff-price del{opacity:.55;margin-left:7px}.sdp-aff-btn{display:inline-block;background:#111;color:#fff!important;text-decoration:none!important;padding:10px 16px;border-radius:6px;margin-top:8px}.sdp-aff-grid{display:grid;gap:16px}.sdp-aff-cols-1{grid-template-columns:1fr}.sdp-aff-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sdp-aff-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sdp-aff-grid .sdp-aff-card{margin:0;display:block}.sdp-aff-grid .sdp-aff-image{width:100%;height:180px;display:flex;align-items:center;justify-content:center}.sdp-aff-grid .sdp-aff-body{padding-top:12px}@media(max-width:700px){.sdp-aff-card{display:block}.sdp-aff-image{width:100%;height:auto;margin-bottom:12px}.sdp-aff-cols-2,.sdp-aff-cols-3{grid-template-columns:1fr}}

.sdp-aff-disclosure{font-size:12px;line-height:1.5;margin-bottom:10px;padding:8px;border:1px solid #ddd;border-radius:4px;opacity:.85}

/* Affiliate Pro admin dashboard */
.sdp-aff-admin{max-width:1200px}.sdp-aff-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:18px 0 22px}.sdp-aff-head h1{margin:0 0 6px;font-size:30px}.sdp-aff-head p{margin:0;color:#646970}.sdp-aff-head-actions{display:flex;gap:8px;white-space:nowrap}.sdp-aff-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.sdp-aff-stat{background:#fff;border:1px solid #dcdcde;border-radius:10px;padding:18px;box-shadow:0 1px 2px rgba(0,0,0,.04)}.sdp-aff-stat span{display:block;color:#646970;font-size:13px}.sdp-aff-stat strong{display:block;font-size:30px;line-height:1.2;margin:7px 0 10px}.sdp-aff-stat a{text-decoration:none}.sdp-aff-quick,.sdp-aff-panel{background:#fff;border:1px solid #dcdcde;border-radius:10px;padding:20px;margin-bottom:20px}.sdp-aff-quick h2,.sdp-aff-panel h2{margin-top:0}.sdp-aff-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.sdp-aff-action-grid a{display:block;text-decoration:none;border:1px solid #dcdcde;border-radius:8px;padding:16px}.sdp-aff-action-grid a:hover{border-color:#2271b1;box-shadow:0 2px 8px rgba(0,0,0,.06)}.sdp-aff-action-grid .dashicons{font-size:24px;width:28px;height:28px;display:block;margin-bottom:10px}.sdp-aff-action-grid b{display:block;font-size:15px;margin-bottom:5px}.sdp-aff-action-grid small{display:block;color:#646970}.sdp-aff-link-input{width:min(420px,45vw);margin-right:5px}.sdp-aff-panel table td{vertical-align:middle}@media(max-width:900px){.sdp-aff-cards,.sdp-aff-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sdp-aff-head{align-items:flex-start;flex-direction:column}}@media(max-width:600px){.sdp-aff-cards,.sdp-aff-action-grid{grid-template-columns:1fr}.sdp-aff-link-input{width:100%;margin-bottom:6px}}

/* v1.0.5: Affiliate Pro admin layout */
.sdp-aff-admin .sdp-aff-head-actions .button{margin:0 0 0 6px;vertical-align:middle}
.sdp-aff-admin .sdp-aff-head-actions .button:first-child{margin-left:0}
.sdp-aff-admin .sdp-aff-stat a{display:inline-block;margin-top:2px}
.sdp-aff-admin .sdp-aff-action-grid a{box-sizing:border-box;min-height:110px;background:#fff}
.sdp-aff-admin .sdp-aff-panel table{width:100%;border-collapse:collapse}
.sdp-aff-admin .sdp-aff-panel th,.sdp-aff-admin .sdp-aff-panel td{padding:10px}
.sdp-aff-admin .sdp-aff-link-input{box-sizing:border-box;vertical-align:middle}
@media(max-width:782px){.sdp-aff-admin{margin-right:12px}.sdp-aff-head-actions{display:flex;flex-wrap:wrap}.sdp-aff-admin .sdp-aff-head-actions .button{margin:0 6px 6px 0}}


/* v1.0.6: Pro Affiliate Product editor */
#sdp_aff_fields.postbox{border:0;border-radius:14px;box-shadow:0 4px 18px rgba(0,0,0,.07);overflow:hidden;margin-top:22px}
#sdp_aff_fields.postbox>.postbox-header{background:#f7f9fc;border-bottom:1px solid #e7eaf0;padding:4px 10px}
#sdp_aff_fields.postbox>.postbox-header h2{font-size:15px;font-weight:700;color:#1d2327}
#sdp_aff_fields .inside{margin:0;padding:0}
.sdp-aff-product-editor{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:#f7f9fc;padding:20px}
.sdp-aff-editor-hero{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #e4e8ef;border-radius:12px;padding:16px 18px;margin-bottom:16px}
.sdp-aff-editor-icon{width:44px;height:44px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:#eef2ff;color:#3857e8}
.sdp-aff-editor-icon .dashicons{font-size:23px;width:23px;height:23px}
.sdp-aff-editor-hero h3{margin:0 0 3px;font-size:18px;color:#172033}
.sdp-aff-editor-hero p{margin:0;color:#687385;font-size:13px}
.sdp-aff-editor-badge{margin-left:auto;background:#172033;color:#fff;font-size:10px;font-weight:700;letter-spacing:.12em;padding:5px 8px;border-radius:20px}
.sdp-aff-editor-section{background:#fff;border:1px solid #e4e8ef;border-radius:12px;padding:18px;margin-bottom:14px}
.sdp-aff-section-title{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.sdp-aff-section-title>.dashicons{color:#3857e8;font-size:20px;width:20px;height:20px}
.sdp-aff-section-title strong{display:block;font-size:14px;color:#172033}
.sdp-aff-section-title small{display:block;color:#7a8494;margin-top:2px;font-size:12px}
.sdp-aff-url-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}
.sdp-aff-url-row input,.sdp-aff-two-col input{min-height:40px;border:1px solid #cfd5df;border-radius:7px;box-shadow:none;padding:0 11px}
.sdp-aff-url-row input:focus,.sdp-aff-two-col input:focus{border-color:#3857e8;box-shadow:0 0 0 1px #3857e8}
.sdp-aff-url-row .button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px}
.sdp-aff-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.sdp-aff-two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sdp-aff-two-col label{display:block;font-size:12px;font-weight:600;color:#4d5665}
.sdp-aff-two-col input{display:block;width:100%;box-sizing:border-box;margin-top:7px}
.sdp-aff-product-editor .description{font-size:12px;color:#7a8494;margin:8px 0 0}
.sdp-aff-editor-tip{display:flex;gap:9px;align-items:flex-start;background:#f0f4ff;border:1px solid #dbe3ff;border-radius:10px;padding:12px 14px;color:#526078;font-size:12px;line-height:1.55}
.sdp-aff-editor-tip .dashicons{color:#3857e8;margin-top:1px}
.sdp-aff-editor-tip strong{color:#25314a}
@media(max-width:900px){.sdp-aff-editor-grid{grid-template-columns:1fr}}
@media(max-width:600px){.sdp-aff-product-editor{padding:12px}.sdp-aff-url-row{grid-template-columns:1fr 1fr}.sdp-aff-url-row input{grid-column:1/-1}.sdp-aff-two-col{grid-template-columns:1fr}.sdp-aff-editor-hero{align-items:flex-start}.sdp-aff-editor-badge{display:none}}

/* v1.0.7: Affiliate Pro dashboard polish + live editor preview */
.sdp-aff-admin{font-size:14px}
.sdp-aff-admin .sdp-aff-head{background:linear-gradient(135deg,#fff,#f5f7ff);border:1px solid #e1e6ef;border-radius:16px;padding:22px 24px;box-shadow:0 3px 14px rgba(18,35,75,.05)}
.sdp-aff-admin .sdp-aff-head h1{letter-spacing:-.02em}
.sdp-aff-admin .sdp-aff-cards{gap:14px}
.sdp-aff-stat{position:relative;min-height:128px;display:flex;flex-direction:column;justify-content:flex-start;overflow:hidden}
.sdp-aff-stat:after{content:"";position:absolute;right:-28px;top:-28px;width:92px;height:92px;border-radius:50%;background:#f1f4ff}
.sdp-aff-stat-top{display:flex;align-items:center;gap:8px;color:#646970;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;position:relative;z-index:1}
.sdp-aff-stat-top .dashicons{color:#3857e8;font-size:18px;width:18px;height:18px}
.sdp-aff-stat strong{position:relative;z-index:1;font-size:31px;letter-spacing:-.02em}
.sdp-aff-stat-note{color:#8a93a1;font-size:12px}
.sdp-aff-shop-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fff;border:1px solid #dfe4ec;border-radius:12px;padding:14px 18px;margin:0 0 20px;box-shadow:0 1px 3px rgba(0,0,0,.03)}
.sdp-aff-shop-banner>div:first-child{display:flex;align-items:center;gap:11px}.sdp-aff-shop-banner strong{display:block;color:#1d2327}.sdp-aff-shop-banner small{display:block;color:#737b87;margin-top:3px}.sdp-aff-live-dot{width:9px;height:9px;border-radius:50%;background:#20a464;box-shadow:0 0 0 4px #e6f7ee;display:inline-block}
.sdp-aff-action-grid a{transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.sdp-aff-action-grid a:hover{transform:translateY(-2px)}
.sdp-aff-panel{box-shadow:0 1px 4px rgba(0,0,0,.03)}
.sdp-aff-panel table tbody tr:hover td{background:#f8faff}
.sdp-aff-panel code{font-size:11px}

.sdp-aff-preview{margin-top:14px;border:1px solid #dfe5ef;border-radius:12px;background:#f7f9fc;padding:14px}
.sdp-aff-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.sdp-aff-preview-head strong{display:block;font-size:13px;color:#172033}.sdp-aff-preview-head small{display:block;color:#7a8494;margin-top:3px;font-size:11px}
.sdp-aff-preview-status{font-size:9px;font-weight:700;letter-spacing:.1em;padding:5px 8px;border-radius:12px;background:#eef2ff;color:#3857e8}
.sdp-aff-preview-card{display:flex;gap:14px;background:#fff;border:1px solid #e4e8ef;border-radius:10px;padding:13px;align-items:center}
.sdp-aff-preview-thumb{width:82px;height:82px;border-radius:8px;background:#f0f2f5;display:flex;align-items:center;justify-content:center;color:#9aa2ad;flex:0 0 82px}.sdp-aff-preview-thumb .dashicons{font-size:26px;width:26px;height:26px}
.sdp-aff-preview-content{min-width:0;flex:1}.sdp-aff-preview-label{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#7b8491}.sdp-aff-preview-title{margin:3px 0 7px;font-size:16px;color:#172033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sdp-aff-preview-prices{margin-bottom:4px}.sdp-aff-preview-offer{font-weight:800;font-size:17px;color:#172033}.sdp-aff-preview-regular{font-size:12px;color:#8a93a1;margin-left:5px}.sdp-aff-preview-merchant{color:#7a8494}.sdp-aff-preview-btn{display:inline-block;margin-top:8px;border:0;border-radius:6px;padding:8px 12px;background:#3857e8;color:#fff;font-weight:600;cursor:default}
@media(max-width:600px){.sdp-aff-shop-banner{align-items:flex-start;flex-direction:column}.sdp-aff-preview-card{align-items:flex-start}.sdp-aff-preview-thumb{width:65px;height:65px;flex-basis:65px}.sdp-aff-preview-title{white-space:normal}}

/* v2.0.1: Pro media + content editor */
.sdp-aff-media-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.sdp-aff-media-row input{min-height:40px!important}
.sdp-aff-media-row .button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px}
.sdp-aff-content-editor{padding-bottom:14px}
.sdp-aff-content-editor .wp-editor-wrap{margin-top:4px}
.sdp-aff-video-preview{margin-top:10px;min-height:0}
.sdp-aff-video-preview iframe{width:100%;max-width:720px;aspect-ratio:16/9;border:0;border-radius:10px}
.sdp-aff-image-preview{display:flex;align-items:center;gap:10px;margin-top:10px}
.sdp-aff-image-preview img{width:72px;height:72px;object-fit:contain;border:1px solid #dfe5ef;border-radius:8px;background:#f7f9fc}
.sdp-aff-video{margin:0 0 14px;width:100%}
.sdp-aff-video iframe{width:100%;max-width:720px;aspect-ratio:16/9;border:0;border-radius:10px}
.sdp-aff-video video{display:block;width:100%;max-width:720px;border-radius:10px}
.sdp-aff-media-badge{display:inline-flex;align-items:center;gap:5px;margin-top:8px;padding:5px 8px;border-radius:999px;background:#eef2ff;color:#3857e8;font-size:11px;font-weight:600}
@media(max-width:700px){.sdp-aff-media-row{grid-template-columns:1fr}.sdp-aff-media-row .button{width:100%}}
/* 2.0.2 Pro product editor */
.sdp-aff-pro-editor .sdp-aff-pro-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:20px;max-width:1250px}
.sdp-aff-pro-main,.sdp-aff-pro-side{display:flex;flex-direction:column;gap:20px}
.sdp-aff-pro-card{background:#fff;border:1px solid #dcdcde;border-radius:12px;padding:20px;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.sdp-aff-pro-card-head{display:flex;gap:12px;align-items:flex-start;border-bottom:1px solid #eee;padding-bottom:14px;margin-bottom:18px}
.sdp-aff-pro-card-head>.dashicons{font-size:25px;width:25px;height:25px}
.sdp-aff-pro-card-head h2{margin:0 0 3px;font-size:18px}.sdp-aff-pro-card-head p{margin:0;color:#646970}
.sdp-aff-pro-field{display:block;margin:0 0 16px}.sdp-aff-pro-field>span,.sdp-aff-pro-label{display:block;font-weight:600;margin-bottom:7px}.sdp-aff-pro-field input,.sdp-aff-pro-field select,.sdp-aff-pro-input-action input{width:100%;box-sizing:border-box;min-height:42px}
.sdp-aff-pro-input-action{display:flex;gap:8px}.sdp-aff-pro-input-action input{flex:1}.sdp-aff-pro-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.sdp-aff-pro-media-box{border:1px solid #e2e4e7;border-radius:10px;padding:14px;background:#fafafa}.sdp-aff-pro-media-box input{width:100%;box-sizing:border-box;margin:10px 0;min-height:40px}
.sdp-aff-pro-image-preview,.sdp-aff-pro-video-preview{min-height:150px;border:1px dashed #c3c4c7;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;overflow:hidden}.sdp-aff-pro-image-preview img{width:100%;height:180px;object-fit:cover}.sdp-aff-pro-image-preview .dashicons,.sdp-aff-pro-video-preview .dashicons{font-size:42px;width:42px;height:42px;color:#8c8f94}.sdp-aff-pro-image-preview small,.sdp-aff-pro-video-preview small{color:#777;margin-top:7px}
.sdp-aff-pro-video-preview iframe{width:100%;height:180px;border:0}.sdp-aff-pro-video-preview video{width:100%;max-height:220px}.sdp-aff-pro-publish{width:100%;justify-content:center;min-height:46px}.sdp-aff-pro-editor-wrap{margin-top:4px}.sdp-aff-pro-editor-wrap .wp-editor-wrap{border-radius:8px;overflow:hidden}.sdp-aff-pro-editor .button-secondary{margin-top:2px}
@media(max-width:900px){.sdp-aff-pro-editor .sdp-aff-pro-layout{grid-template-columns:1fr}.sdp-aff-pro-grid2{grid-template-columns:1fr}}

.sdp-aff-currency{font-family:"SDP Rupee","Noto Sans Devanagari",sans-serif!important;font-weight:700!important;display:inline-block!important;line-height:1!important;font-variant:normal!important}


/* v2.0.8: Product frontend polish + reliable INR rendering */
.sdp-aff-currency{font-family:"SDP Rupee","Noto Sans Devanagari",sans-serif!important;font-weight:700!important;display:inline-block!important;line-height:1!important;font-variant:normal!important}
.sdp-aff-price-number{font-variant-numeric:tabular-nums}
.sdp-aff-admin .sdp-aff-head{position:relative;overflow:hidden}
.sdp-aff-admin .sdp-aff-head:after{content:"";position:absolute;right:-55px;top:-70px;width:180px;height:180px;border-radius:50%;background:#eef2ff;pointer-events:none}
.sdp-aff-admin .sdp-aff-head>*{position:relative;z-index:1}
.sdp-aff-products-page .sdp-aff-panel{overflow:auto}
.sdp-aff-products-page table td:first-child a{font-weight:700}
.sdp-aff-products-page .sdp-aff-currency{font-family:"SDP Rupee","Noto Sans Devanagari",sans-serif!important;font-weight:700!important;display:inline-block!important;line-height:1!important;font-variant:normal!important}
