@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.duypa-premium-wrapper {
	--duypa-primary: #47a435;
	--duypa-gradient: linear-gradient(135deg, var(--duypa-primary) 0%, #2c7a1f 100%);
	--duypa-wa-gradient: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
	--duypa-border: rgba(226, 232, 240, 0.6);
	--duypa-text: #1e293b; --duypa-text-muted: #64748b; --duypa-radius: 16px;
	position: relative; max-width: 900px; margin: 50px auto;
	font-family: 'Plus Jakarta Sans', sans-serif; color: var(--duypa-text);
	border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, 0.2);
	box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.5) inset;
	padding: 2px; z-index: 1;
}
.duypa-premium-wrapper *, .duypa-premium-wrapper *::before, .duypa-premium-wrapper *::after { box-sizing: border-box; }

.duypa-bg-shapes { position: absolute; inset: 0; overflow: hidden; z-index: -1; border-radius: 24px; background-color: #f8fafc; }
.duypa-bg-shape { position: absolute; filter: blur(60px); opacity: 0.6; animation: duypaFloat 20s infinite alternate ease-in-out; border-radius: 50%; }
.duypa-bg-shape-1 { background: rgba(71, 164, 53, 0.4); width: 400px; height: 400px; top: -100px; left: -100px; }
.duypa-bg-shape-2 { background: rgba(37, 211, 102, 0.3); width: 300px; height: 300px; bottom: -50px; right: -50px; animation-delay: -5s; }
.duypa-bg-shape-3 { background: rgba(14, 165, 233, 0.2); width: 350px; height: 350px; top: 30%; left: 30%; animation-delay: -10s; }
@keyframes duypaFloat { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -50px) scale(1.1); } 66% { transform: translate(-20px, 20px) scale(0.9); } 100% { transform: translate(0, 0) scale(1); } }

.duypa-content-glass { background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-radius: 22px; padding: 45px; border: 1px solid rgba(255, 255, 255, 0.7); }
.duypa-section-box { background: rgba(255, 255, 255, 0.85); border: 1px solid var(--duypa-border); border-radius: var(--duypa-radius); padding: 28px; margin-bottom: 24px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.02); transition: all 0.4s ease; backdrop-filter: blur(10px); }
.duypa-section-box--soft { background: rgba(255, 255, 255, 0.6); }
.duypa-section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--duypa-primary); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.duypa-picked { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--duypa-text); background: #fff; border: 1px solid var(--duypa-border); padding: 2px 10px; border-radius: 99px; margin-left: auto; font-size: 12.5px; }
.duypa-picked:empty { display: none; }

.duypa-grid { display: grid; gap: 20px; } .duypa-grid-2 { grid-template-columns: repeat(2, 1fr); }
.duypa-form-group { display: flex; flex-direction: column; gap: 8px; }
.duypa-form-group label { font-size: 13px; font-weight: 600; color: var(--duypa-text); }
.duypa-input { padding: 14px 18px; border: 2px solid var(--duypa-border); border-radius: 12px; font-size: 14px; background: rgba(248, 250, 252, 0.7); width: 100%; color: var(--duypa-text); font-family: inherit; transition: all 0.3s; }
.duypa-input:focus { outline: none; border-color: var(--duypa-primary); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--duypa-primary) 15%, transparent); }
.duypa-input--ro { background-color: rgba(203,213,225,0.3) !important; color: #64748b !important; }
.duypa-input.is-invalid { border-color: #dc2626; }

/* ---------- Renk seçimi (ürün sayfasıyla ortak liste) ---------- */
.duypa-color-swatches { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 10px; }
.duypa-color-label {
	position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px;
	padding: 10px 8px 9px; border-radius: 14px; background: #fff; border: 2px solid var(--duypa-border);
	transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .3s;
	user-select: none;
}
.duypa-color-label input { position: absolute; opacity: 0; pointer-events: none; }
.duypa-color-dot {
	display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 9px; background: var(--c); position: relative; overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset 0 -14px 22px -14px rgba(0,0,0,.3);
}
.duypa-color-dot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.35), rgba(255,255,255,0) 50%); }
.duypa-color-name { font-size: 12.5px; font-weight: 700; color: var(--duypa-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.duypa-color-label:hover { transform: translateY(-4px); box-shadow: 0 14px 24px -16px var(--c); border-color: color-mix(in srgb, var(--c) 45%, var(--duypa-border)); }
.duypa-color-label.active { border-color: var(--duypa-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--duypa-primary) 15%, transparent); }
.duypa-color-label.active .duypa-color-name { color: var(--duypa-primary); }
.duypa-color-label::after {
	content: ""; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--duypa-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
	box-shadow: 0 0 0 3px #fff; transform: scale(0); transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.duypa-color-label.active::after { transform: scale(1); }
.duypa-color-label:focus-within { outline: 3px solid color-mix(in srgb, var(--duypa-primary) 40%, transparent); outline-offset: 2px; }
.duypa-color-label.is-light .duypa-color-dot { box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), inset 0 -14px 22px -16px rgba(0,0,0,.15); }
.duypa-color-label.is-clear .duypa-color-dot {
	background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(214,232,245,.42) 45%, rgba(255,255,255,.7)), repeating-conic-gradient(#e4e9ee 0% 25%, #fff 0% 50%) 0 0 / 12px 12px;
	box-shadow: inset 0 0 0 1px rgba(110,140,165,.35);
}
.duypa-hint { margin: 14px 0 0; font-size: 12.5px; color: var(--duypa-text-muted); }

/* ---------- Ürün sayfasından gelen seçim ---------- */
.duypa-product-chip {
	display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding: 12px 14px;
	background: #fff; border: 2px solid color-mix(in srgb, var(--duypa-primary) 45%, transparent); border-radius: 16px;
	box-shadow: 0 12px 28px -20px var(--duypa-primary);
	animation: duypaIn .5s cubic-bezier(.2,.8,.2,1);
}
.duypa-product-chip__img img { width: 58px !important; height: 58px !important; object-fit: cover; border-radius: 10px; display: block; }
.duypa-product-chip__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.duypa-product-chip__body small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--duypa-primary); }
.duypa-product-chip__body strong { font-size: 15px; line-height: 1.3; }
.duypa-product-chip__color { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--duypa-text-muted); }
.duypa-product-chip__color i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.duypa-product-chip__color i.is-clear { background: repeating-conic-gradient(#e4e9ee 0% 25%, #fff 0% 50%) 0 0 / 6px 6px; }
.duypa-product-chip__x { border: 0; background: #f1f5f9; width: 32px; height: 32px; border-radius: 10px; font-size: 20px; cursor: pointer; color: #64748b; flex: 0 0 auto; }
.duypa-product-chip__x:hover { background: #fee2e2; color: #dc2626; }
@keyframes duypaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Mod kartları, segment ---------- */
.duypa-segmented-control { display: flex; background: rgba(248, 250, 252, 0.8); border-radius: 12px; padding: 5px; gap: 5px; border: 1px solid var(--duypa-border); }
.duypa-segment-btn { flex: 1; text-align: center; } .duypa-segment-btn input { display: none; }
.duypa-segment-btn label { display: block; padding: 12px 15px; font-size: 13px; font-weight: 700; border-radius: 8px; cursor: pointer; transition: all 0.3s; color: var(--duypa-text-muted); }
.duypa-segment-btn input:checked + label { background: #fff; color: var(--duypa-primary); box-shadow: 0 4px 10px rgba(0,0,0,0.08); }

.duypa-mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.duypa-mode-card { border: 2px solid var(--duypa-border); border-radius: var(--duypa-radius); padding: 25px; text-align: center; cursor: pointer; background: rgba(255,255,255,0.7); transition: all 0.4s; position: relative; overflow: hidden; backdrop-filter: blur(5px); }
.duypa-mode-card::before { content: ''; position: absolute; inset: 0; background: var(--duypa-gradient); opacity: 0; transition: opacity 0.4s; z-index: 0; }
.duypa-mode-card * { position: relative; z-index: 1; } .duypa-mode-card input { display: none; }
.duypa-mode-card h4 { margin: 15px 0 8px; font-size: 17px; font-weight: 700; transition: color 0.3s; }
.duypa-mode-card p { margin: 0; font-size: 13px; color: var(--duypa-text-muted); transition: color 0.3s; }
.duypa-mode-card.active { border-color: transparent; } .duypa-mode-card.active::before { opacity: 1; }
.duypa-mode-card.active h4, .duypa-mode-card.active p, .duypa-mode-card.active svg { color: #fff !important; stroke: #fff !important; }

.btn-wa { width: 100%; padding: 22px; border: none; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.4s; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; letter-spacing: 0.5px; color: #fff; text-transform: uppercase; background: var(--duypa-wa-gradient); box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4); font-family: inherit; }
.btn-wa:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 20px 35px -5px rgba(37, 211, 102, 0.6); }
.btn-wa[disabled] { opacity: .75; cursor: wait; transform: none; }

#duypa-response { margin-top: 20px; text-align: center; font-weight: 700; }
#duypa-response .ok { color: var(--duypa-primary); } #duypa-response .err { color: #dc2626; }

.duypa-copyright-notice { margin-top: 35px; padding: 15px; text-align: center; font-size: 12px; font-weight: 600; color: #94a3b8; border-top: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; gap: 8px; user-select: none; -webkit-user-select: none; pointer-events: none; }
.duypa-copyright-notice svg { width: 16px !important; height: 16px !important; flex-shrink: 0; stroke: #94a3b8; }

.duypa-hidden { display: none !important; }
.duypa-error-text { color: #dc2626; font-size: 12px; margin-top: 4px; display: none; font-weight: 600; }

@media (max-width: 768px) {
	.duypa-premium-wrapper { margin: 20px 10px; }
	.duypa-content-glass { padding: 25px 15px; }
	.duypa-mode-cards { grid-template-columns: 1fr; gap: 15px; }
	.duypa-grid-2 { grid-template-columns: 1fr; gap: 15px; }
	.duypa-section-box { padding: 20px 15px; }
	.duypa-color-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px; }
	.duypa-color-label { padding: 7px 5px 7px; gap: 6px; border-radius: 11px; }
	.duypa-color-name { font-size: 11.5px; }
	.duypa-copyright-notice { flex-direction: column; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) { .duypa-premium-wrapper * { animation: none !important; transition: none !important; } }

/* ---------- Ürüne göre otomatik doldurulan alanlar ---------- */
.duypa-auto-badge {
	font-style: normal; text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 700;
	color: var(--duypa-primary); background: color-mix(in srgb, var(--duypa-primary) 10%, #fff);
	border: 1px solid color-mix(in srgb, var(--duypa-primary) 30%, #fff); padding: 2px 9px; border-radius: 99px; margin-left: auto;
	animation: duypaIn .5s cubic-bezier(.2,.8,.2,1);
}
.duypa-premium-wrapper .duypa-input.is-auto,
.duypa-premium-wrapper .duypa-segmented-control.is-auto {
	border-color: color-mix(in srgb, var(--duypa-primary) 55%, #fff) !important;
	background-color: color-mix(in srgb, var(--duypa-primary) 5%, #fff) !important;
	animation: duypaGlow 1.6s ease .3s 2;
}
@keyframes duypaGlow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--duypa-primary) 18%, transparent); } }
.duypa-product-chip__spec { font-size: 12.5px; font-weight: 600; color: var(--duypa-text); background: #f1f5f9; border-radius: 8px; padding: 2px 8px; align-self: flex-start; margin: 2px 0; }

/* ---------- Tema (Blocksy vb.) stillerine karşı tutarlı görünüm ---------- */
.duypa-premium-wrapper input.duypa-input,
.duypa-premium-wrapper select.duypa-input,
.duypa-premium-wrapper textarea.duypa-input {
	height: auto !important; min-height: 52px; margin: 0 !important;
	padding: 14px 18px !important; border: 2px solid var(--duypa-border) !important; border-radius: 12px !important;
	background-color: rgba(248, 250, 252, 0.7) !important; box-shadow: none; font-size: 14px !important; line-height: 1.4 !important;
	color: var(--duypa-text) !important; font-family: inherit !important;
}
.duypa-premium-wrapper select.duypa-input { padding-right: 40px !important; -webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 16px !important; }
.duypa-premium-wrapper textarea.duypa-input { min-height: 110px; }
.duypa-premium-wrapper .duypa-input:focus { border-color: var(--duypa-primary) !important; background-color: #fff !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--duypa-primary) 15%, transparent) !important; }
.duypa-premium-wrapper .duypa-input.is-invalid { border-color: #dc2626 !important; }
.duypa-premium-wrapper input.duypa-input.duypa-input--ro { background-color: rgba(203,213,225,0.3) !important; color: #64748b !important; }
.duypa-premium-wrapper .btn-wa { border-radius: 14px !important; min-height: 64px; line-height: 1.3 !important; text-decoration: none !important; }
.duypa-premium-wrapper .btn-wa svg { flex: 0 0 auto; }
