/*
 * All selectors are intentionally scoped with the unique .ftkdc- prefix.
 * This keeps the plugin isolated from Jannah and other Fırsata Tıkla plugins.
 */
.ftkdc-grid,
.ftkdc-grid * {
	box-sizing: border-box;
}

.ftkdc-grid {
	--ftkdc-accent: #ff9800;
	--ftkdc-columns: 3;
	--ftkdc-radius: 2px;
	--ftkdc-image-height: 150px;
	display: grid;
	grid-template-columns: repeat(var(--ftkdc-columns), minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	margin: 0;
	padding: 0;
	align-items: stretch;
}

.ftkdc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 390px;
	background: #fff;
	border: 1px solid #eceff2;
	border-radius: var(--ftkdc-radius);
	box-shadow: 0 2px 7px rgba(25, 32, 39, .09);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}

.ftkdc-corner-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	max-width: 128px;
	min-height: 24px;
	padding: 5px 9px;
	border-radius: 5px;
	background: #eaf8ef;
	box-shadow: 0 2px 7px rgba(25, 32, 39, .10);
	color: #147a3a;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

.ftkdc-card.is-expired .ftkdc-corner-badge {
	right: auto;
	left: 10px;
}

.ftkdc-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(25, 32, 39, .13);
}

.ftkdc-card-top {
	position: relative;
	padding: 14px 14px 8px;
}

.ftkdc-logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 88px;
	max-width: 72%;
	margin: 0 auto;
	padding: 4px;
	background: #fff;
	border: 1px solid #edf0f2;
}

.ftkdc-logo-wrap.has-featured-image {
	width: 100%;
	height: var(--ftkdc-image-height);
	max-width: 100%;
	padding: 0;
	overflow: hidden;
	background: #f7f8f9;
	border-color: #e6eaed;
}

.ftkdc-logo-img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	margin: 0 !important;
	object-fit: contain;
}

.ftkdc-featured-img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain;
	object-position: center;
}

.ftkdc-logo-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: #f3f5f7;
	color: #17202a;
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
}

.ftkdc-card-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
}

.ftkdc-type-badge {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.ftkdc-type-badge {
	background: #f0f8fa;
	color: #008ca0;
}

.ftkdc-card-body {
	flex: 1 1 auto;
	padding: 4px 18px 12px;
	text-align: center;
}

.ftkdc-title {
	margin: 0 0 9px !important;
	padding: 0 !important;
	color: #008fa1;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.45 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.ftkdc-highlight {
	display: inline-block;
	margin: 0 0 9px;
	padding: 6px 10px;
	border-radius: 4px;
	background: #fff4de;
	color: #9a5900;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
}

.ftkdc-description {
	margin: 0 !important;
	color: #222 !important;
	font-family: inherit;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	text-align: left;
}

.ftkdc-ad-label {
	margin-top: 9px;
	color: #7a8087;
	font-size: 10px;
	line-height: 1.3;
	text-align: left;
}

.ftkdc-ad-label span {
	margin: 0 3px;
}

.ftkdc-card-bottom {
	padding: 0 18px 13px;
}

.ftkdc-action-row {
	display: flex;
	align-items: stretch;
	width: calc(100% - 12px);
	min-height: 42px;
	margin: 0 auto;
	border-radius: 22px;
	overflow: hidden;
	background: var(--ftkdc-accent);
}

.ftkdc-cta {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 14px !important;
	border: 0 !important;
	background: var(--ftkdc-accent) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 13px !important;
	font-weight: 800 !important;
	line-height: 1.1 !important;
	letter-spacing: .04em;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: filter .15s ease;
}

.ftkdc-cta:hover,
.ftkdc-cta:focus {
	color: #fff !important;
	filter: brightness(.95);
}

.ftkdc-cta.is-disabled {
	cursor: default;
}

.ftkdc-cart-icon {
	font-size: 14px;
	line-height: 1;
}

.ftkdc-code {
	position: relative;
	display: flex;
	flex: 0 0 38%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 94px;
	padding: 5px 11px 5px 18px;
	border: 1px solid #d8dce0;
	border-left: 0;
	border-radius: 0 23px 23px 0;
	background: repeating-linear-gradient(-45deg, #fff, #fff 4px, #f1f2f3 4px, #f1f2f3 7px);
	color: #30343a;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
}

.ftkdc-code::before {
	content: "";
	position: absolute;
	left: -15px;
	top: 0;
	width: 25px;
	height: 100%;
	background: var(--ftkdc-accent);
	clip-path: polygon(0 0, 100% 0, 0 100%);
}

.ftkdc-code small {
	margin-top: 2px;
	color: #777;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.ftkdc-code.is-copied {
	background: #edf9f0;
	color: #137333;
}

.ftkdc-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	min-width: 0;
	margin-top: 9px;
	font-size: 11px;
	line-height: 1.3;
}

.ftkdc-expiry {
	flex: 0 0 auto;
	color: #858a90;
	font-size: 10px;
	white-space: nowrap;
}

.ftkdc-expiry.is-expired {
	padding: 3px 6px;
	border-radius: 3px;
	background: #d93025;
	color: #fff;
	font-weight: 800;
}

.ftkdc-card.is-expired::after {
	content: "KAMPANYA BİTTİ";
	position: absolute;
	top: 12px;
	right: -37px;
	z-index: 2;
	width: 130px;
	padding: 5px 0;
	transform: rotate(45deg);
	background: #d93025;
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .03em;
	text-align: center;
}

.ftkdc-empty {
	padding: 18px;
	border: 1px solid #e4e7ea;
	background: #fff;
	color: #555;
	text-align: center;
}

@media (max-width: 900px) {
	.ftkdc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 15px;
	}
}

@media (max-width: 560px) {
	.ftkdc-grid {
		grid-template-columns: 1fr;
	}

	.ftkdc-card {
		min-height: 0;
	}
}
