/* ============================================================
   Discount on Cart – Frontend Styles
   ============================================================ */

/* ── Widget wrapper ── */
.docfw-tier-widget {
	margin: 24px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── Stat Card ── */
.docfw-stat-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 14px;
	padding: 18px 24px;
	margin-bottom: 16px;
	color: #fff;
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35);
	position: relative;
	overflow: hidden;
}

/* decorative circle */
.docfw-stat-card::before {
	content: '';
	position: absolute;
	right: -30px;
	top: -30px;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: rgba(255,255,255,.10);
	pointer-events: none;
}

.docfw-stat-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	background: rgba(255,255,255,.20);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.docfw-stat-icon svg {
	width: 22px;
	height: 22px;
	color: #fff;
	stroke: #fff;
}

.docfw-stat-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.docfw-stat-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .80;
}

.docfw-stat-value {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.5px;
	transition: all .25s ease;
}

.docfw-stat-badge {
	flex-shrink: 0;
	background: rgba(255,255,255,.25);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 99px;
	border: 1px solid rgba(255,255,255,.40);
	animation: docfw-pulse 2s ease-in-out infinite;
}

@keyframes docfw-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.5; }
}

/* ── Tier Table Wrapper ── */
.docfw-tier-table-wrap {
	background: #fff;
	border: 1px solid #e8ecf0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.docfw-tier-table-title {
	padding: 12px 20px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8492a6;
	background: #f8f9fb;
	border-bottom: 1px solid #e8ecf0;
}

/* ── Tier Table ── */
.docfw-tier-table {
	width: 100%;
	border-collapse: collapse;
}

.docfw-tier-table th,
.docfw-tier-table td {
	text-align: left;
	padding: 12px 20px;
	font-size: 13px;
	line-height: 1.4;
}

.docfw-tier-table thead tr {
	background: #f8f9fb;
}

.docfw-tier-table th {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #6b7c93;
	border-bottom: 1px solid #e8ecf0;
}

.docfw-tier-table tbody tr {
	transition: background .15s ease;
}

.docfw-tier-table tbody tr:not(:last-child) td {
	border-bottom: 1px solid #f0f2f5;
}

.docfw-tier-table tbody tr:hover {
	background: #f5f7ff;
}

.docfw-tier-table tbody td {
	color: #3d4f61;
	font-weight: 500;
}

/* highlight the "Value / Discount" column */
.docfw-tier-table tbody td:nth-child(2) {
	color: #667eea;
	font-weight: 700;
}

/* min / max qty columns */
.docfw-tier-table tbody td:nth-child(3),
.docfw-tier-table tbody td:nth-child(4) {
	color: #4caf50;
	font-weight: 600;
}

/* date columns – muted */
.docfw-tier-table tbody td:nth-child(5),
.docfw-tier-table tbody td:nth-child(6) {
	color: #aab5c0;
}

/* ── Success Notice ── */
.wc-block-components-notice-banner.is-error:has(.docfw_success_mes_color) {
	background: #e9f7ef;
	border-color: #a8d5b7;
	color: #1e7e34;
}

.wc-block-components-notice-banner.is-error:has(.docfw_success_mes_color) svg:nth-child(1) {
	fill: transparent !important;
	background: transparent;
}

.wc-block-components-notice-banner.is-success.docfw-discount-message {
	background: linear-gradient(135deg, #e9f7ef 0%, #d4edda 100%);
	border: 1px solid #a8d5b7;
	border-radius: 10px;
	color: #1e7e34;
	margin-bottom: 1em;
	box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.wc-block-components-notice-banner.is-success.docfw-discount-message .docfw_success_mes_color {
	color: #1e7e34;
	font-weight: 600;
}

/* ── Condition / Conversion Messages ── */
.docfw_conversion_point_message {
	background: linear-gradient(135deg, #55B3A5 0%, #3d9d8e 100%);
	padding: 12px 16px;
	color: #fff;
	margin-bottom: 20px;
	border-radius: 8px;
	font-weight: 500;
	box-shadow: 0 2px 8px rgba(85, 179, 165, 0.3);
}

.docfw-condition-message {
	display: none;
}

/* ============================================================
   Mobile Responsive
   ============================================================ */
@media only screen and (max-width: 700px) {
	.docfw-stat-value {
		font-size: 22px;
	}

	.docfw-tier-table th,
	.docfw-tier-table td {
		padding: 10px 12px;
		font-size: 12px;
	}
}