/* Bozbay Davetiye — müşteri paneli. Tema değişkenleri varsa onları kullanır. */

.bd-panel { --bdp-border: var(--bz-border, #e2e2dc); --bdp-muted: var(--bz-muted, #777); --bdp-accent: var(--bz-primary, #2b2420); --bdp-radius: var(--bz-radius, 10px); width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }

.bd-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.bd-panel__head p { margin: 0; color: var(--bdp-muted); max-width: 52ch; }
.bd-panel__head h3 { margin: 0; }
.bd-panel__head small { color: var(--bdp-muted); font-weight: 400; }

.bd-notice { padding: 12px 16px; border-radius: var(--bdp-radius); margin-bottom: 18px; border: 1px solid; }
.bd-notice--ok { background: #f0f9f1; border-color: #bfe3c5; color: #1d5a2a; }
.bd-notice--error { background: #fdf1f0; border-color: #f0c4c0; color: #8c2f28; }

.bd-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--bdp-border); border-radius: calc(var(--bdp-radius) * 1.5); color: var(--bdp-muted); }
.bd-empty strong { color: inherit; }
.bd-free-note { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--bdp-radius); background: #f4f7f0; border: 1px solid #d5e3cb; color: #2f5a28; font-size: .95rem; line-height: 1.45; }
.bd-primary {
	background: var(--bdp-accent) !important;
	color: #fff !important;
	border-color: var(--bdp-accent) !important;
	padding: 12px 22px !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	border-radius: var(--bdp-radius) !important;
	line-height: 1.3 !important;
	min-height: 48px;
}
.bd-submit .bd-primary { width: 100%; max-width: 420px; }
.bd-submit--wizard .bd-primary { max-width: none; }
.bd-step-divider {
	border: 0;
	border-top: 1px solid var(--bdp-border);
	margin: 24px 0 16px;
}
.bd-step-subtitle {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 700;
}

/* Adım adım sihirbaz */
.bd-wizard-progress {
	margin: 0 0 18px;
	max-width: 100%;
}
.bd-wizard-progress__bar {
	height: 6px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bdp-border) 80%, #fff);
	overflow: hidden;
	margin-bottom: 8px;
}
.bd-wizard-progress__bar span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: var(--bdp-accent);
	transition: width .25s ease;
}
.bd-wizard-progress__label {
	margin: 0;
	font-size: .9rem;
	font-weight: 600;
	color: var(--bdp-muted);
}
.bd-wizard-nav {
	position: sticky;
	bottom: 0;
	z-index: 20;
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
	margin-top: 8px;
	background: linear-gradient(to top, #fff 70%, color-mix(in srgb, #fff 70%, transparent));
	box-sizing: border-box;
	max-width: 100%;
}
.bd-wizard-nav .button {
	margin: 0;
	min-height: 48px;
	flex: 1 1 0;
	max-width: 100%;
}
.bd-wizard-nav .bd-primary {
	flex: 1.4 1 0;
}
.bd-wizard-nav [data-bd-wizard-skip] {
	flex: 0.9 1 0;
	opacity: .9;
}
.bd-wizard-nav.is-last [data-bd-wizard-next],
.bd-wizard-nav.is-last [data-bd-wizard-skip] {
	display: none;
}
.bd-form[data-bd-wizard] {
	padding-bottom: 8px;
}
.bd-music-lib {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow-x: hidden;
}
.bd-field input[type="text"],
.bd-field input[type="date"],
.bd-field input[type="url"],
.bd-field input[type="password"],
.bd-field input[type="number"],
.bd-field textarea,
.bd-form select {
	max-width: 100%;
}

/* Hazır söz önerileri */
.bd-quotes {
	margin: 0 0 18px;
	padding: 14px;
	border: 1px dashed var(--bdp-border);
	border-radius: calc(var(--bdp-radius) * 1.3);
	background: #fafaf7;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow-x: hidden;
}
.bd-quotes__title { margin: 0 0 4px; font-weight: 700; font-size: .95rem; }
.bd-quotes .description { margin: 0 0 12px; }
.bd-quotes__body {
	max-height: min(42vh, 360px);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding-inline-end: 2px;
}
.bd-quotes__group { margin-bottom: 12px; min-width: 0; }
.bd-quotes__group:last-child { margin-bottom: 0; }
.bd-quotes__cat { display: inline-block; margin-bottom: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bdp-muted); }
.bd-quotes__list { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bd-quotes__item {
	appearance: none;
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--bdp-border);
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: .875rem;
	font-weight: 500;
	text-align: start;
	line-height: 1.45;
	padding: 10px 12px;
	border-radius: var(--bdp-radius);
	cursor: pointer;
	transition: border-color .15s, background .15s;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
}
.bd-quotes__item:hover { border-color: var(--bdp-accent); background: color-mix(in srgb, var(--bdp-accent) 5%, #fff); }
.bd-quotes__item.is-active { border-color: var(--bdp-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bdp-accent) 18%, transparent); }
.bd-quotes-picked { margin: 0 0 4px; }
.bd-quotes-picked__inner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	border: 2px solid var(--bdp-accent);
	border-radius: var(--bdp-radius);
	background: color-mix(in srgb, var(--bdp-accent) 6%, #fff);
	max-width: 100%;
	box-sizing: border-box;
}
.bd-quotes-picked__text {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-size: .9rem;
	line-height: 1.45;
	overflow-wrap: anywhere;
}
.bd-quotes-picked [data-bd-quotes-change] {
	flex: 0 0 auto;
	margin: 0;
}

/* Hazır müzik kütüphanesi */
.bd-music-lib { margin: 0 0 16px; padding: 14px; border: 1px dashed var(--bdp-border); border-radius: calc(var(--bdp-radius) * 1.3); background: #fafaf7; }
.bd-music-lib__title { margin: 0 0 4px; font-weight: 700; font-size: .95rem; }
.bd-music-lib .description { margin: 0 0 12px; }
.bd-music-lib__moods { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bd-music-lib__mood {
	appearance: none; border: 1px solid var(--bdp-border); background: #fff; color: inherit;
	font: inherit; font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; cursor: pointer;
}
.bd-music-lib__mood.is-active { border-color: var(--bdp-accent); background: color-mix(in srgb, var(--bdp-accent) 12%, #fff); }
.bd-music-lib__list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.bd-music-lib__item {
	display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--bdp-border);
	border-radius: var(--bdp-radius); background: #fff; cursor: pointer;
}
.bd-music-lib__item.is-active { border-color: var(--bdp-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bdp-accent) 18%, transparent); }
.bd-music-lib__item input { margin: 0; }
.bd-music-lib__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bd-music-lib__meta strong { font-size: .9rem; }
.bd-music-lib__meta small { color: var(--bdp-muted); font-size: .75rem; }
.bd-music-lib__play {
	appearance: none; border: 1px solid var(--bdp-border); background: #fff; width: 34px; height: 34px;
	border-radius: 999px; cursor: pointer; font-size: 11px; line-height: 1; flex: 0 0 auto;
}

/* Kartlar */
.bd-cards { display: flex; flex-direction: column; gap: 18px; }
.bd-card { border: 1px solid var(--bdp-border); border-radius: calc(var(--bdp-radius) * 1.5); padding: 20px; }
.bd-card header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bd-card h3 { margin: 0; font-size: 1.125rem; }
.bd-card__meta { margin: 6px 0 0; color: var(--bdp-muted); font-size: .9rem; }
.bd-spark {
	display: inline-flex;
	align-items: flex-end;
	gap: 2px;
	height: 16px;
	margin-inline-start: 6px;
	vertical-align: middle;
}
.bd-spark i {
	display: block;
	width: 3px;
	min-height: 2px;
	border-radius: 1px;
	background: color-mix(in srgb, var(--bdp-accent) 55%, transparent);
}
.bd-card__link { display: flex; gap: 8px; margin: 14px 0 0; }
.bd-card__link input { flex: 1 1 auto; font-size: .875rem; padding: 9px 12px; border: 1px solid var(--bdp-border); border-radius: var(--bdp-radius); background: transparent; color: inherit; min-width: 0; }

/* Paylaşım */
.bd-share {
	margin-top: 16px;
	padding: 16px;
	border-radius: calc(var(--bdp-radius) * 1.2);
	background: linear-gradient(145deg, #f8f6f2 0%, #f2efe8 100%);
	border: 1px solid color-mix(in srgb, var(--bdp-border) 80%, #fff);
}
.bd-share__send {
	width: 100%;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 !important;
}
.bd-share__send-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35em;
	height: 1.35em;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	font-size: .95em;
	line-height: 1;
}
.bd-share__hint {
	margin: 10px 0 0;
	font-size: .85rem;
	color: var(--bdp-muted);
	text-align: center;
	line-height: 1.4;
}
.bd-share__link {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}
.bd-share__link input {
	flex: 1 1 auto;
	font-size: .8125rem;
	padding: 9px 12px;
	border: 1px solid var(--bdp-border);
	border-radius: var(--bdp-radius);
	background: #fff;
	color: inherit;
	min-width: 0;
}
.bd-share__link .button {
	margin: 0;
	flex: 0 0 auto;
	white-space: nowrap;
}

.bd-share-sheet {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: end center;
	padding: 0;
}
.bd-share-sheet[hidden] { display: none !important; }
body.bd-share-open { overflow: hidden; }
.bd-share-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 12, .45);
}
.bd-share-sheet__panel {
	position: relative;
	width: min(100%, 420px);
	margin: 0;
	padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
	border-radius: 18px 18px 0 0;
	background: #fff;
	box-shadow: 0 -8px 40px rgba(0, 0, 0, .18);
	animation: bdShareUp .22s ease;
}
@keyframes bdShareUp {
	from { transform: translateY(12px); opacity: .6; }
	to { transform: translateY(0); opacity: 1; }
}
.bd-share-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}
.bd-share-sheet__head h4 {
	margin: 0;
	font-size: 1.05rem;
}
.bd-share-sheet__close {
	appearance: none;
	border: 0;
	background: transparent;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: var(--bdp-muted);
	padding: 4px 8px;
}
.bd-share-sheet__preview {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: var(--bdp-radius);
	background: #f7f5f1;
	font-size: .85rem;
	line-height: 1.45;
	color: var(--bdp-muted);
}
.bd-share-sheet__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
.bd-share-sheet__item {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 84px;
	padding: 10px 8px;
	border-radius: calc(var(--bdp-radius) * 1.1);
	border: 1px solid var(--bdp-border);
	background: #fafaf7;
	color: inherit;
	text-decoration: none;
	font: inherit;
	font-size: .78rem;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
}
.bd-share-sheet__item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .02em;
}
.bd-share-sheet__item.is-wa span { background: #dcf8c6; color: #128c7e; }
.bd-share-sheet__item.is-tg span { background: #e3f2fd; color: #0088cc; }
.bd-share-sheet__item.is-sms span { background: #eef0ff; color: #4a56c9; font-size: 1rem; }
.bd-share-sheet__item.is-mail span { background: #fff0e8; color: #c45a20; }
.bd-share-sheet__item.is-copy span { background: #f0f0ec; color: var(--bdp-accent); font-size: 1rem; }
.bd-share-sheet__item.is-qr span { background: #f4ecff; color: #6b3fa0; }
.bd-share-sheet__item:hover,
.bd-share-sheet__item:focus-visible {
	border-color: var(--bdp-accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--bdp-accent) 14%, transparent);
}
@media (min-width: 640px) {
	.bd-share-sheet { place-items: center; padding: 20px; }
	.bd-share-sheet__panel { border-radius: calc(var(--bdp-radius) * 1.5); padding-bottom: 18px; }
}

.bd-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.bd-card__actions .button { margin: 0; }
.bd-delete { margin-inline-start: auto; color: #a13232; font-size: .875rem; }

.bd-badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.bd-badge.is-live { background: #e4f4e6; color: #1d5a2a; }
.bd-badge.is-draft { background: #f4ecdd; color: #7a5b16; }

/* Form */
.bd-form { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: hidden; }
.bd-form fieldset {
	border: 1px solid var(--bdp-border);
	border-radius: calc(var(--bdp-radius) * 1.5);
	padding: 20px;
	margin: 0 0 20px;
	min-width: 0; /* Chrome fieldset min-content taşmasını keser */
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
}
.bd-form legend { padding-inline: 8px; font-weight: 700; }
.bd-form .description { color: var(--bdp-muted); font-size: .875rem; }
.bd-field { margin: 0 0 14px; }
.bd-field label,
.bd-field__label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.bd-field__label { margin-bottom: 6px; display: block; }
.bd-field input[type="text"],
.bd-field input[type="date"],
.bd-field input[type="url"],
.bd-field textarea,
.bd-form select,
.bd-program-row input[type="text"],
.bd-program-row input[type="url"],
.bd-program-row select {
	font: inherit;
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid var(--bdp-border);
	border-radius: var(--bdp-radius);
	background: #fafaf7;
	color: inherit;
	line-height: 1.35;
	min-height: 44px;
	appearance: none;
	-webkit-appearance: none;
}
.bd-field input[type="date"] { min-width: 0; }
.bd-field textarea { min-height: 88px; resize: vertical; }
.bd-form select,
.bd-program-row select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-inline-end: 36px;
	cursor: pointer;
}
.bd-field .bd-time {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	line-height: 1.25;
	text-align: start;
}
.bd-time { max-width: 140px; }
.bd-time--compact { max-width: 100%; width: 100%; }
.bd-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.bd-inline input { width: auto; }
.bd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bd-grid-datetime {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(110px, 140px);
	gap: 14px;
	align-items: start;
}
.bd-grid-datetime .bd-field { margin-bottom: 0; min-width: 0; }
.bd-grid-datetime .bd-field label { width: 100%; }
@media (max-width: 600px) {
	.bd-grid-2,
	.bd-grid-datetime { grid-template-columns: 1fr; }
	.bd-time { max-width: none; }
}
.bd-submit { margin-top: 8px; }

/* Dosya seçici */
.bd-file,
.bd-field label.bd-file {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 10px 14px;
	position: relative;
	cursor: pointer;
	font-weight: 500;
	text-align: start;
	width: fit-content;
	max-width: 100%;
}
.bd-file input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	font-size: 0;
}
.bd-file__btn {
	display: inline-flex;
	align-items: center;
	padding: 11px 16px;
	border-radius: var(--bdp-radius);
	background: var(--bdp-accent);
	color: #fff;
	font-weight: 600;
	font-size: .875rem;
	pointer-events: none;
}
.bd-file__name {
	color: var(--bdp-muted);
	font-size: .875rem;
	font-weight: 500;
}
.bd-file.is-filled .bd-file__name { color: inherit; font-weight: 600; }

/* Tip ve şablon seçimi */
.bd-type-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	align-items: stretch;
}
.bd-type {
	text-decoration: none;
	color: inherit;
	display: flex;
	position: relative;
	min-width: 0;
	height: 100%;
}
.bd-type input { position: absolute; opacity: 0; }
.bd-type span {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	min-height: 3.5rem;
	padding: 14px 10px;
	border: 2px solid var(--bdp-border);
	border-radius: var(--bdp-radius);
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
	transition: border-color .15s;
	box-sizing: border-box;
	hyphens: auto;
}
.bd-type input:checked + span,
.bd-type:hover span { border-color: var(--bdp-accent); background: color-mix(in srgb, var(--bdp-accent) 6%, transparent); }

/* Segment seçici (açılış kapağı vb.) */
.bd-seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.bd-seg__item { position: relative; display: block; margin: 0; cursor: pointer; }
.bd-seg__item input { position: absolute; opacity: 0; pointer-events: none; }
.bd-seg__item span {
	display: block;
	padding: 10px 14px;
	border: 2px solid var(--bdp-border);
	border-radius: var(--bdp-radius);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.2;
	transition: border-color .15s, background .15s;
	box-sizing: border-box;
}
.bd-seg__item input:checked + span,
.bd-seg__item:hover span {
	border-color: var(--bdp-accent);
	background: color-mix(in srgb, var(--bdp-accent) 6%, transparent);
}

.bd-tpl { text-decoration: none; color: inherit; display: block; position: relative; min-width: 0; }
.bd-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.bd-tpl-grid--visual {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	align-items: stretch;
}
.bd-tpl input { position: absolute; opacity: 0; }
.bd-tpl__swatch { display: flex; align-items: center; gap: 9px; padding: 14px; border: 2px solid var(--bdp-border); border-radius: var(--bdp-radius); font-size: .85rem; font-weight: 600; cursor: pointer; }
.bd-tpl__swatch i { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; }
.bd-tpl input:checked + .bd-tpl__swatch,
a.bd-tpl:hover .bd-tpl__swatch { border-color: var(--bdp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bdp-accent) 20%, transparent); }

.bd-tpl--visual { position: relative; display: flex; height: 100%; min-width: 0; }
a.bd-tpl--studio { text-decoration: none; color: inherit; }
.bd-studio-banner {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 22px;
	padding: 18px 20px;
	border-radius: 16px;
	text-decoration: none;
	color: #221e1a;
	background: linear-gradient(135deg, #f3efe6, #e8eee0);
	border: 1px solid #ddd6cb;
}
.bd-studio-banner strong { font-size: 1.05rem; }
.bd-studio-banner span { font-size: .9rem; color: #6a6258; }
.bd-studio-banner:hover { border-color: var(--bdp-accent); }
.bd-showcase__featured {
	margin: 0 0 32px;
	padding: 22px 20px 24px;
	border-radius: calc(var(--bdp-radius) * 1.6);
	background: linear-gradient(180deg, color-mix(in srgb, var(--bdp-accent) 6%, #fff), #fff);
	border: 1px solid var(--bdp-border);
}
.bd-showcase__featured-head { margin-bottom: 18px; }
.bd-showcase__featured-head h2 {
	margin: 0 0 6px;
	font-family: var(--bdp-font-head, inherit);
	font-size: clamp(1.25rem, 2.5vw, 1.55rem);
	line-height: 1.2;
}
.bd-showcase__featured-head p {
	margin: 0;
	color: var(--bdp-muted);
	font-size: .92rem;
	max-width: 52ch;
}
.bd-showcase__featured-link {
	display: inline-block;
	margin-top: 10px;
	font-size: .85rem;
	font-weight: 700;
	color: var(--bdp-accent);
	text-decoration: none;
}
.bd-showcase__featured-link:hover { text-decoration: underline; }
.bd-showcase__lead {
	margin: -6px 0 18px;
	color: var(--bdp-muted);
	font-size: .92rem;
}
.bd-showcase__all-title {
	margin: 0 0 16px;
	font-size: 1.15rem;
}
.bd-tpl-grid--video {
	grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr));
}
.bd-tpl__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: #eee;
}
.bd-tpl__media img,
.bd-tpl__card > img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	display: block;
	background: #eee;
	flex: 0 0 auto;
}
.bd-tpl__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .28s ease;
	pointer-events: none;
}
.bd-tpl--has-video.is-playing .bd-tpl__video,
.bd-tpl--has-video:hover .bd-tpl__video,
.bd-tpl--has-video:focus-within .bd-tpl__video {
	opacity: 1;
}
.bd-tpl__play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	background: rgba(0,0,0,.55);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.bd-tpl__play::after {
	content: "";
	position: absolute;
	left: 17px;
	top: 13px;
	border-style: solid;
	border-width: 9px 0 9px 14px;
	border-color: transparent transparent transparent #fff;
}
.bd-tpl--has-video:hover .bd-tpl__play,
.bd-tpl--has-video.is-playing .bd-tpl__play {
	opacity: 0;
	transform: scale(.92);
}
.bd-tpl__card {
	display: flex;
	flex-direction: column;
	position: relative;
	width: 100%;
	height: 100%;
	border: 2px solid var(--bdp-border);
	border-radius: calc(var(--bdp-radius) * 1.4);
	overflow: hidden;
	cursor: pointer;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.bd-tpl__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: rgba(0,0,0,.72);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 999px;
	pointer-events: none;
}
.bd-tpl__badge--featured{
	left:auto;right:10px;
	background:linear-gradient(135deg,#2b2420,color-mix(in srgb,#2b2420 65%,#c9a86a));
}
.bd-tpl__card:has(.bd-tpl__badge) .bd-tpl__badge--featured:only-child,
.bd-tpl__card:has(.bd-tpl__badge:nth-of-type(2)) .bd-tpl__badge:not(.bd-tpl__badge--featured){left:10px;right:auto}
.bd-tpl__card:has(.bd-tpl__badge:nth-of-type(2)) .bd-tpl__badge--featured{left:auto;right:10px}
.bd-tpl__meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px 6px;
	font-size: .85rem;
	flex: 1 1 auto;
	min-height: 3.2em;
	box-sizing: border-box;
}
.bd-tpl__meta strong {
	font-weight: 700;
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.3;
	min-height: calc(1.3em * 2);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}
.bd-tpl__meta small {
	flex: 0 0 auto;
	color: var(--bdp-muted);
	white-space: nowrap;
	line-height: 1.3;
	padding-top: .1em;
}
.bd-tpl__actions {
	display: flex;
	gap: 8px;
	padding: 0 12px 12px;
	flex-wrap: wrap;
	margin-top: auto;
	min-height: 1.5em;
	align-items: center;
}
.bd-tpl__preview,
.bd-tpl__create {
	font-size: .75rem;
	font-weight: 600;
	text-decoration: underline;
}
.bd-tpl__preview { color: var(--bdp-muted); }
.bd-tpl__create { color: var(--bdp-accent); }
.bd-tpl input:checked + .bd-tpl__card {
	border-color: var(--bdp-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bdp-accent) 20%, transparent);
}
.bd-tpl--visual:hover .bd-tpl__card { border-color: var(--bdp-accent); }

/* Seçilen şablon özeti */
.bd-tpl-picked {
	margin: 0 0 8px;
}
.bd-tpl-picked__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border: 2px solid var(--bdp-accent);
	border-radius: calc(var(--bdp-radius) * 1.2);
	background: color-mix(in srgb, var(--bdp-accent) 6%, #fff);
	max-width: 520px;
	flex-wrap: wrap;
}
.bd-tpl-picked__inner img {
	width: 64px;
	height: 84px;
	object-fit: cover;
	border-radius: var(--bdp-radius);
	flex: 0 0 auto;
	background: #eee;
}
.bd-tpl-picked__info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.bd-tpl-picked__info strong {
	font-size: .95rem;
	line-height: 1.3;
}
.bd-tpl-picked [data-bd-tpl-change] {
	flex: 0 0 auto;
	margin: 0;
}

/* Program satırları */
.bd-program-row { display: grid; grid-template-columns: 1.2fr .6fr 1fr 1.2fr; gap: 8px; margin-bottom: 10px; }
@media (max-width: 700px) { .bd-program-row { grid-template-columns: 1fr 1fr; } }

/* Görseller */
.bd-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: var(--bdp-radius); display: inline-block; }
.bd-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.bd-gallery-thumbs label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; align-items: center; }

/* Davetli tablosu */
.bd-table { width: 100%; border-collapse: collapse; }
.bd-table th, .bd-table td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--bdp-border); font-size: .9rem; }
.bd-table th { font-weight: 700; }

.bd-memory-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bd-memory-admin__item { border: 1px solid var(--bdp-border); border-radius: var(--bdp-radius); overflow: hidden; background: #fff; }
.bd-memory-admin__item img, .bd-memory-admin__item video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #111; }
.bd-memory-admin__meta { padding: 12px; font-size: .85rem; }
.bd-memory-admin__meta strong { display: block; margin-bottom: 4px; }
.bd-memory-admin__meta p { margin: 0 0 6px; color: var(--bdp-muted); }
.bd-memory-admin__meta small { display: block; margin-bottom: 8px; color: var(--bdp-muted); }

/* Mobil: Hesabım / Davetiyelerim tam genişlik — tema WC sütunlarını ez */
@media (max-width: 782px) {
	body.woocommerce-account .woocommerce,
	body.woocommerce-account .woocommerce-MyAccount-content,
	body.woocommerce-account .woocommerce-MyAccount-navigation,
	body.woocommerce-account .entry-content,
	body.woocommerce-account .site-main,
	body.woocommerce-account #primary,
	body.woocommerce-account .bz-account,
	body.woocommerce-account .bz-account__main,
	body.woocommerce-account .bz-account__content {
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		flex: 1 1 100% !important;
		grid-column: 1 / -1 !important;
		box-sizing: border-box !important;
	}

	body.woocommerce-account .woocommerce,
	body.woocommerce-account .bz-account,
	body.woocommerce-account .u-columns {
		display: flex !important;
		flex-direction: column !important;
		grid-template-columns: 1fr !important;
		gap: 16px;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation {
		margin: 0 0 8px !important;
	}

	body.woocommerce-account .woocommerce-MyAccount-content {
		padding-inline: 0 !important;
	}

	.bd-form fieldset { padding: 14px; }
	.bd-type-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.bd-tpl-grid,
	.bd-tpl-grid--visual {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.bd-program-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
	.bd-type-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.bd-tpl-grid--visual {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 420px) {
	.bd-type-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.bd-tpl-grid,
	.bd-tpl-grid--visual {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* WooCommerce giriş / üye ol — zorunlu alan vurgusu */
body.woocommerce-account .woocommerce form .form-row.woocommerce-invalid .input-text,
body.woocommerce-account .woocommerce form .form-row.woocommerce-invalid input,
body.woocommerce-account .woocommerce form .form-row.woocommerce-invalid select,
body.woocommerce-account .woocommerce form .form-row.woocommerce-invalid textarea,
body.woocommerce-account .woocommerce form .form-row.woocommerce-invalid-required-field .input-text,
body.woocommerce-account .woocommerce form .form-row.woocommerce-invalid-required-field input {
	border-color: #c62828 !important;
	background-color: #fff5f5 !important;
	box-shadow: 0 0 0 1px #c62828;
}
body.woocommerce-account .woocommerce form .form-row.woocommerce-invalid > label,
body.woocommerce-account .woocommerce form .form-row.woocommerce-invalid-required-field > label {
	color: #c62828;
}
body.woocommerce-account .woocommerce form .form-row.woocommerce-invalid .required,
body.woocommerce-account .woocommerce form .form-row.woocommerce-invalid-required-field .required {
	color: #c62828;
}
body.woocommerce-account .woocommerce form input:user-invalid,
body.woocommerce-account .woocommerce form select:user-invalid,
body.woocommerce-account .woocommerce form textarea:user-invalid {
	border-color: #c62828 !important;
	background-color: #fff5f5 !important;
}

/* Canlanma — kartlar, adımlar, odak */
@keyframes bd-step-in {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

.bd-form [data-bd-step].bd-step-in {
	animation: bd-step-in .42s cubic-bezier(.22, 1, .36, 1) both;
}

.bd-type-grid .bd-type {
	animation: bd-step-in .45s cubic-bezier(.22, 1, .36, 1) both;
}
.bd-type-grid .bd-type:nth-child(1) { animation-delay: .02s; }
.bd-type-grid .bd-type:nth-child(2) { animation-delay: .06s; }
.bd-type-grid .bd-type:nth-child(3) { animation-delay: .1s; }
.bd-type-grid .bd-type:nth-child(4) { animation-delay: .14s; }
.bd-type-grid .bd-type:nth-child(5) { animation-delay: .18s; }
.bd-type-grid .bd-type:nth-child(6) { animation-delay: .22s; }
.bd-type-grid .bd-type:nth-child(7) { animation-delay: .26s; }
.bd-type-grid .bd-type:nth-child(8) { animation-delay: .3s; }
.bd-type-grid .bd-type:nth-child(9) { animation-delay: .34s; }

.bd-type span {
	transition: border-color .2s, background .2s, transform .22s, box-shadow .22s;
}
.bd-type:hover span,
.bd-type input:focus-visible + span {
	transform: translateY(-3px);
	box-shadow: 0 10px 22px rgba(43, 36, 32, .08);
}
.bd-type input:checked + span {
	transform: translateY(-2px);
}

.bd-tpl__card {
	transition: border-color .2s, box-shadow .28s, transform .28s;
}
.bd-tpl--visual:hover .bd-tpl__card {
	transform: translateY(-6px);
	box-shadow: 0 16px 32px rgba(43, 36, 32, .1);
}
.bd-tpl__card img {
	transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.bd-tpl--visual:hover .bd-tpl__card img {
	transform: scale(1.05);
}

.bd-card {
	transition: transform .28s ease, box-shadow .28s ease, border-color .2s;
}
.bd-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(43, 36, 32, .07);
}

.bd-field input[type="text"],
.bd-field input[type="date"],
.bd-field input[type="url"],
.bd-field input[type="password"],
.bd-field input[type="number"],
.bd-field textarea,
.bd-form select {
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.bd-field input:focus,
.bd-field textarea:focus,
.bd-form select:focus {
	outline: none;
	border-color: var(--bdp-accent);
	background: #fff;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--bdp-accent) 16%, transparent);
}

.bd-primary {
	transition: transform .18s ease, box-shadow .18s ease !important;
}
.bd-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(43, 36, 32, .16);
}

.bd-quotes__item {
	transition: border-color .15s, background .15s, transform .18s;
}
.bd-quotes__item:hover {
	transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
	.bd-form [data-bd-step].bd-step-in,
	.bd-type-grid .bd-type,
	.bd-tpl__card,
	.bd-card,
	.bd-primary {
		animation: none !important;
		transition: none !important;
		transform: none !important;
	}
}
