/* Shop & Win Draws — frontend styles (v1.3.0)
 * Σκούρο "prize panel" design με λαχνούς-κάρτες (Idealz-inspired).
 * Re-skin ανά site: override τα --swd-* custom properties στο theme CSS.
 */

.swd-tier-box {
	--swd-bg: #0e1320;            /* midnight panel */
	--swd-surface: #1a2236;       /* card surface */
	--swd-surface-active: #20304a;
	--swd-text: #f5f7fa;
	--swd-muted: #8a93a8;
	--swd-gold: #e8b341;          /* prize / best value / progress */
	--swd-gold-soft: #f4c95d;
	--swd-accent: #2dd4a0;        /* entries / selected */
	--swd-urgency: #ff6b5e;       /* countdown */
	--swd-radius: 18px;

	margin: 20px 0;
	padding: 20px;
	background: var(--swd-bg);
	border-radius: var(--swd-radius);
	color: var(--swd-text);
	font-variant-numeric: tabular-nums;
}

/* ---------- Header: prize + countdown ---------- */
.swd-tier-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.swd-tier-title {
	font-weight: 800;
	font-size: 17px;
	letter-spacing: .2px;
	color: var(--swd-gold-soft);
}
.swd-tier-deadline {
	font-size: 13px;
	font-weight: 700;
	color: var(--swd-urgency);
	background: rgba(255, 107, 94, .12);
	padding: 5px 12px;
	border-radius: 99px;
	letter-spacing: .5px;
}
.swd-tier-closed {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--swd-bg);
	background: var(--swd-muted);
	padding: 5px 12px;
	border-radius: 99px;
}

/* ---------- Λαχνοί (pack cards) ---------- */
.swd-pack-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
	gap: 12px;
	margin: 6px 0 4px;
}
.swd-pack-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 20px 8px 0;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 14px;
	background: var(--swd-surface);
	color: var(--swd-text);
	cursor: pointer;
	font: inherit;
	overflow: visible;
	transition: transform .15s ease, border-color .15s ease, background .15s ease;
	text-align: center;
}
.swd-pack-card:hover {
	transform: translateY(-3px);
	border-color: rgba(232, 179, 65, .45);
}
.swd-pack-card.swd-active {
	border-color: var(--swd-gold);
	background: var(--swd-surface-active);
	box-shadow: 0 0 0 1px var(--swd-gold), 0 10px 28px rgba(0, 0, 0, .45);
}
.swd-pack-qty {
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	color: var(--swd-text);
}
.swd-pack-card.swd-active .swd-pack-qty { color: var(--swd-gold-soft); }
.swd-pack-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--swd-muted);
}
.swd-pack-entries {
	font-size: 13px;
	color: var(--swd-muted);
	margin-top: 6px;
	padding-bottom: 12px;
}
.swd-pack-entries strong {
	color: var(--swd-accent);
	font-weight: 800;
	font-size: 15px;
}

/* Διάτρητη γραμμή λαχνού + εγκοπές (perforation) πάνω από την τιμή */
.swd-pack-price {
	position: relative;
	width: 100%;
	margin-top: auto;
	padding: 10px 4px 12px;
	font-size: 15px;
	font-weight: 800;
	color: var(--swd-text);
	border-top: 2px dashed rgba(255, 255, 255, .18);
}
.swd-pack-price::before,
.swd-pack-price::after {
	content: "";
	position: absolute;
	top: -8px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--swd-bg);
}
.swd-pack-price::before { left: -15px; }
.swd-pack-price::after  { right: -15px; }
.swd-pack-card.swd-active .swd-pack-price { color: var(--swd-gold-soft); }

/* ---------- BEST VALUE badge ---------- */
.swd-badge {
	display: inline-block;
	background: var(--swd-gold);
	color: #1a1407;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1px;
	padding: 4px 12px;
	border-radius: 99px;
	white-space: nowrap;
}
.swd-badge-corner {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1;
}

/* ---------- "Με την επιλογή σου" ---------- */
.swd-tier-current {
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--swd-muted);
	text-align: center;
}
.swd-tier-current strong {
	color: var(--swd-accent);
	font-size: 17px;
	font-weight: 800;
}

/* ---------- Progress (γεμίζει προς την κλήρωση) ---------- */
.swd-progress { margin-top: 16px; }
.swd-progress-bar {
	width: 100%;
	height: 10px;
	background: rgba(255, 255, 255, .08);
	border-radius: 99px;
	overflow: hidden;
}
.swd-progress-bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--swd-gold), var(--swd-gold-soft));
	border-radius: 99px;
	transition: width .6s ease;
}
.swd-progress-label {
	font-size: 12px;
	color: var(--swd-muted);
	margin-top: 6px;
	text-align: right;
	letter-spacing: .3px;
}
.swd-progress-label .swd-progress-count {
	font-weight: 800;
	color: var(--swd-gold-soft);
}

/* ---------- Table mode (κλασικό, light, για όποιο προϊόν το θέλει) ---------- */
.swd-mode-table {
	--swd-bg: #ffffff;
	--swd-text: #111827;
	--swd-muted: #6b7280;
	border: 1px solid #e5e7eb;
}
.swd-mode-table .swd-tier-title { color: #92400e; }
.swd-tier-table { width: 100%; border-collapse: collapse; margin: 0; }
.swd-tier-table tr { cursor: pointer; transition: background .15s ease; }
.swd-tier-table td { padding: 9px 10px; border: none; font-size: 14px; color: var(--swd-text); }
.swd-tier-table tr.swd-active {
	background: #ecfdf5;
	box-shadow: inset 0 0 0 2px #10b981;
}
.swd-tier-table tr.swd-active .swd-entries strong { color: #059669; }
.swd-mode-table .swd-tier-current,
.swd-mode-table .swd-progress-label { color: var(--swd-muted); }
.swd-mode-table .swd-progress-bar { background: #e5e7eb; }

.swd-qty-hidden { display: none !important; }

/* ---------- Κινήσεις: σεβασμός στο reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.swd-pack-card, .swd-progress-bar span { transition: none; }
	.swd-pack-card:hover { transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
	.swd-tier-box { padding: 16px 14px; }
	.swd-pack-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.swd-pack-qty { font-size: 24px; }
	.swd-pack-entries { font-size: 11.5px; }
	.swd-pack-entries strong { font-size: 13px; }
	.swd-pack-price { font-size: 13px; }
	.swd-badge { font-size: 9px; padding: 3px 8px; }
}

/* ---------- Winners grid ---------- */
.swd-winners-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
	margin: 20px 0;
}
.swd-winner-card {
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	transition: transform .15s ease, box-shadow .15s ease;
}
.swd-winner-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.10); }
.swd-winner-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.swd-winner-body { padding: 14px; }
.swd-winner-body h4 { margin: 0 0 4px; font-size: 16px; }
.swd-winner-prize { margin: 0 0 6px; font-weight: 700; color: #b45309; font-size: 14px; }
.swd-winner-meta { margin: 0; font-size: 12px; color: #6b7280; }
.swd-winner-meta code { font-size: 11px; background: #f3f4f6; padding: 1px 5px; border-radius: 5px; }

/* ---------- My Account tickets ---------- */
.swd-mytickets-card {
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 16px 18px;
	margin-bottom: 16px;
	background: #fff;
}
.swd-mytickets-card.swd-won { border-color: #b45309; background: #fffbeb; }
.swd-mytickets-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.swd-mytickets-head h3 { margin: 0; font-size: 17px; }
.swd-mytickets-prize { font-size: 13.5px; font-weight: 700; color: #92400e; }
.swd-mytickets-meta { margin: 6px 0 8px; font-size: 14px; color: #374151; }
.swd-mytickets-serials summary { cursor: pointer; font-size: 13px; color: #2563eb; }
.swd-mytickets-serials code {
	display: block; margin-top: 8px;
	font-size: 11.5px; line-height: 1.7;
	background: #f9fafb; padding: 10px; border-radius: 8px;
	word-break: break-all;
}

/* ---------- Order tickets section ---------- */
.swd-order-tickets {
	margin: 24px 0;
	padding: 16px 18px;
	border: 1px dashed #b45309;
	border-radius: 14px;
	background: #fffbeb;
}
.swd-order-tickets h2 { font-size: 18px; margin: 0 0 10px; }

/* ---------- Campaigns grid (homepage) — [swd_campaigns] ---------- */
.swd-campaigns-grid {
	--swd-bg: #0e1320;
	--swd-surface: #1a2236;
	--swd-text: #f5f7fa;
	--swd-muted: #8a93a8;
	--swd-gold: #e8b341;
	--swd-gold-soft: #f4c95d;
	--swd-urgency: #ff6b5e;

	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
	margin: 24px 0;
}
.swd-camp-card {
	display: flex;
	flex-direction: column;
	background: var(--swd-bg);
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none !important;
	color: var(--swd-text);
	border: 1px solid rgba(255, 255, 255, .07);
	transition: transform .18s ease, box-shadow .18s ease;
}
.swd-camp-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
	color: var(--swd-text);
}
.swd-camp-media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--swd-surface);
	display: flex;
	align-items: center;
	justify-content: center;
}
.swd-camp-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swd-camp-noimg { font-size: 48px; }
.swd-camp-countdown {
	position: absolute;
	left: 12px;
	bottom: 12px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .5px;
	color: #fff;
	background: rgba(14, 19, 32, .85);
	border: 1px solid rgba(255, 107, 94, .5);
	padding: 6px 12px;
	border-radius: 99px;
	font-variant-numeric: tabular-nums;
}
.swd-camp-status {
	position: absolute;
	left: 12px;
	bottom: 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--swd-bg);
	background: var(--swd-gold);
	padding: 6px 12px;
	border-radius: 99px;
}
.swd-camp-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.swd-camp-title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: var(--swd-gold-soft);
	line-height: 1.25;
}
.swd-camp-sub {
	margin: 0 0 6px;
	font-size: 13px;
	color: var(--swd-muted);
}
.swd-camp-card .swd-progress { margin-top: 4px; }
.swd-camp-card .swd-progress-bar { background: rgba(255, 255, 255, .08); }
.swd-camp-cta {
	margin-top: 14px;
	text-align: center;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .3px;
	color: #1a1407;
	background: var(--swd-gold);
	padding: 11px 14px;
	border-radius: 12px;
	transition: background .15s ease;
}
.swd-camp-card:hover .swd-camp-cta { background: var(--swd-gold-soft); }

@media (prefers-reduced-motion: reduce) {
	.swd-camp-card { transition: none; }
	.swd-camp-card:hover { transform: none; }
}

/* ---------- Φωτογραφία επάθλου μέσα στο tier box ---------- */
.swd-prize-media {
	position: relative;
	margin: -20px -20px 16px;  /* bleed ως τις άκρες του panel */
	border-radius: var(--swd-radius, 18px) var(--swd-radius, 18px) 0 0;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--swd-surface, #1a2236);
}
.swd-prize-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}
.swd-prize-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, var(--swd-bg, #0e1320) 100%);
	pointer-events: none;
}
.swd-prize-countdown {
	position: absolute;
	left: 14px;
	bottom: 12px;
	z-index: 1;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5px;
	color: #fff;
	background: rgba(14, 19, 32, .85);
	border: 1px solid var(--swd-urgency, #ff6b5e);
	padding: 6px 14px;
	border-radius: 99px;
	font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
	.swd-prize-media { margin: -16px -14px 14px; }
}

/* ---------- Prize image μέσα στο tier box ---------- */
.swd-prize-media {
	position: relative;
	margin: -20px -20px 16px;
	border-radius: var(--swd-radius) var(--swd-radius) 0 0;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--swd-surface);
}
.swd-prize-img,
.swd-prize-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.swd-prize-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, var(--swd-bg) 100%);
	pointer-events: none;
}
.swd-prize-countdown {
	position: absolute;
	left: 14px;
	bottom: 12px;
	z-index: 1;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5px;
	color: #fff;
	background: rgba(14, 19, 32, .8);
	border: 1px solid var(--swd-urgency);
	padding: 6px 14px;
	border-radius: 99px;
	font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
	.swd-prize-media { margin: -16px -14px 14px; }
}

/* ---------- Banner layout (Idealz style) — [swd_campaigns layout="banner"] ---------- */
.swd-campaigns-grid.swd-layout-banner {
	grid-template-columns: 1fr;
	gap: 26px;
}
.swd-camp-banner {
	position: relative;
	display: block;
	min-height: 380px;
	border-radius: 22px;
	overflow: hidden;
	background-color: var(--swd-bg);
	background-size: cover;
	background-position: center;
	text-decoration: none !important;
	color: var(--swd-text);
	transition: transform .18s ease, box-shadow .18s ease;
}
.swd-camp-banner:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 54px rgba(0, 0, 0, .4);
	color: var(--swd-text);
}
.swd-banner-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(13, 15, 28, .92) 0%, rgba(13, 15, 28, .55) 45%, rgba(13, 15, 28, .05) 75%);
}
.swd-banner-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	max-width: 640px;
	padding: 40px 44px;
	min-height: 380px;
	justify-content: center;
}
.swd-banner-kicker {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--swd-muted);
}
.swd-banner-title {
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.08;
	color: #fff;
}
.swd-banner-sub {
	font-size: 14px;
	color: var(--swd-muted);
	margin-bottom: 6px;
}
.swd-camp-banner .swd-progress { width: 100%; max-width: 380px; margin-top: 4px; }
.swd-camp-banner .swd-progress-bar { background: rgba(255, 255, 255, .15); }
.swd-camp-banner .swd-camp-cta {
	display: inline-block;
	margin-top: 16px;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
	background: var(--swd-gold);
	padding: 13px 26px;
	border-radius: 12px;
}
.swd-camp-banner .swd-camp-countdown { position: static; align-self: flex-start; margin-bottom: 6px; }
.swd-camp-banner .swd-camp-status { position: static; align-self: flex-start; margin-bottom: 6px; }

@media (max-width: 640px) {
	.swd-camp-banner { min-height: 0; }
	.swd-banner-shade { background: linear-gradient(180deg, rgba(13, 15, 28, .15) 0%, rgba(13, 15, 28, .92) 65%); }
	.swd-banner-content { padding: 180px 22px 26px; min-height: 0; max-width: none; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
	.swd-camp-banner { transition: none; }
	.swd-camp-banner:hover { transform: none; }
}

/* ---------- Tier packs μέσα στο banner ---------- */
.swd-banner-title { text-decoration: none !important; }
.swd-banner-title:hover { color: var(--swd-gold-soft); }
.swd-banner-packs {
	display: flex;
	gap: 12px;
	margin-top: 16px;
	flex-wrap: wrap;
}
.swd-banner-pack {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	min-width: 138px;
	padding: 20px 18px 16px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 13px;
	background: rgba(14, 19, 32, .65);
	backdrop-filter: blur(6px);
	color: #fff !important;
	text-decoration: none !important;
	text-align: center;
	transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.swd-banner-pack:hover {
	transform: translateY(-3px);
	border-color: var(--swd-gold);
	background: rgba(14, 19, 32, .85);
}
.swd-banner-pack.swd-best { border-color: var(--swd-gold); }
.swd-bp-qty {
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
}
.swd-bp-entries {
	font-size: 13.5px;
	color: var(--swd-muted);
	margin-top: 5px;
}
.swd-bp-entries strong { color: var(--swd-accent); font-weight: 800; font-size: 16px; }
.swd-bp-price {
	font-size: 16px;
	font-weight: 800;
	margin-top: 6px;
	color: var(--swd-gold-soft);
}
@media (max-width: 640px) {
	.swd-banner-packs { gap: 8px; }
	.swd-banner-pack { min-width: 0; flex: 1; padding: 14px 8px 12px; }
	.swd-bp-qty { font-size: 24px; }
	.swd-bp-entries { font-size: 12px; }
}

/* ---------- "Αγοράζεις" product strip στο banner ---------- */
.swd-banner-product {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 14px;
	padding: 10px 22px 10px 10px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 99px;
	background: rgba(14, 19, 32, .65);
	backdrop-filter: blur(6px);
	text-decoration: none !important;
	color: #fff !important;
	transition: border-color .15s ease, background .15s ease;
}
.swd-banner-product:hover {
	border-color: var(--swd-gold);
	background: rgba(14, 19, 32, .85);
}
.swd-banner-product .swd-bp-thumb {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.swd-bp-info { display: flex; flex-direction: column; line-height: 1.25; }
.swd-bp-kicker {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--swd-muted);
}
.swd-bp-name { font-size: 17px; font-weight: 800; }
.swd-bp-name .woocommerce-Price-amount { color: var(--swd-gold-soft); }
@media (max-width: 640px) {
	.swd-banner-product { margin-top: 10px; }
	.swd-banner-product .swd-bp-thumb { width: 48px; height: 48px; }
	.swd-bp-name { font-size: 15px; }
}
