/* Binoche coupon hub (Shopee-style) */

.wb-coupon-bar {
	position: relative;
	margin: 14px 0 20px;
}

/* Woodmart's base.css forces :is(.btn,button,...) styles on every <button>
   (gray #F3F3F3 background, 0 border, uppercase, 42px height). All button
   rules below use element-qualified selectors (button.xxx / a.xxx) so they
   win the cascade, and hover states are re-declared to neutralize the theme. */

button.wb-coupon-bar__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 14px;
	background: #fcf8f5;
	border: 1px solid #eddcd2;
	border-radius: 8px;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: #ee4d2d;
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
}

button.wb-coupon-bar__toggle:hover {
	background: #fcf8f5;
	border-color: #eddcd2;
	color: #ee4d2d;
}

.wb-coupon-bar__label {
	font-weight: 600;
	font-size: 14px;
	color: #ee4d2d;
	white-space: nowrap;
}

.wb-coupon-bar__chips {
	display: flex;
	gap: 6px;
	flex: 1;
	overflow: hidden;
}

.wb-coupon-chip {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid #ee4d2d;
	border-radius: 4px;
	font-size: 12px;
	line-height: 18px;
	color: #ee4d2d;
	background: #fff;
	white-space: nowrap;
}

.wb-coupon-bar__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #ee4d2d;
	white-space: nowrap;
}

.wb-coupon-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 50;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
	padding: 14px;
}

.wb-coupon-panel__hint {
	margin: 0 0 10px;
	font-size: 12px;
	color: #888;
}

.wb-coupon-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 320px;
	overflow-y: auto;
}

.wb-coupon-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid #eddcd2;
	border-radius: 8px;
	background: #fcf8f5;
}

.wb-coupon-item__value {
	flex: 0 0 auto;
	min-width: 88px;
	color: #ee4d2d;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .2px;
	white-space: nowrap;
}

.wb-coupon-item__meta {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.wb-coupon-item__cond {
	font-size: 13px;
	color: #333;
}

.wb-coupon-item__desc {
	font-size: 13px;
	font-weight: 600;
	color: #333;
}

.wb-coupon-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.wb-coupon-tag {
	display: inline-block;
	padding: 1px 8px;
	border: 1px solid #ee4d2d;
	border-radius: 4px;
	font-size: 11px;
	line-height: 17px;
	color: #ee4d2d;
	background: #fff;
	white-space: nowrap;
}

.wb-coupon-item__exp {
	font-size: 12px;
	color: #999;
}

.wb-coupon-code {
	font-size: 11px;
	background: #f6f6f6;
	padding: 1px 6px;
	border-radius: 3px;
}

button.wb-coupon-claim,
a.wb-coupon-claim,
span.wb-coupon-claim {
	flex: 0 0 auto;
	padding: 7px 16px;
	border: 1px solid #ee4d2d;
	border-radius: 4px;
	background: #fff;
	color: #ee4d2d;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
	text-decoration: none;
	display: inline-block;
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
}

button.wb-coupon-claim:hover { background: #fff1ea; color: #ee4d2d; }

/* Claimed = solid dark brand red (Shopee style). */
button.wb-coupon-claim.is-claimed,
a.wb-coupon-claim.is-claimed {
	background: #ee4d2d;
	border-color: #ee4d2d;
	color: #fff;
	cursor: default;
	opacity: 1 !important; /* beat Woodmart's disabled opacity */
}

button.wb-coupon-claim.is-claimed:hover,
a.wb-coupon-claim.is-claimed:hover { background: #e04a2b; color: #fff; }

button.wb-coupon-claim.is-busy { opacity: .6; }

a.wb-coupon-claim--link {
	background: #ee4d2d;
	color: #fff;
	text-align: center;
}

a.wb-coupon-claim--link:hover { background: #d7401f; color: #fff; }

.wb-coupon-item.is-expired { opacity: .55; }

/* Cart / checkout chips */

.wb-coupon-chips-box {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 12px 16px;
	margin: 0 0 18px;
	background: #fcf8f5;
	border: 1px solid #eddcd2;
	border-radius: 8px;
}

.wb-coupon-chips-box__label {
	font-weight: 600;
	font-size: 14px;
	color: #ee4d2d;
}

.wb-coupon-chips-box__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

button.wb-coupon-chip-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid #ee4d2d;
	border-radius: 4px;
	cursor: pointer;
	font: inherit;
	text-transform: none;
	min-height: 0;
	transition: background .15s ease;
}

button.wb-coupon-chip-btn:hover { background: #fff1ea; }

.wb-coupon-chip-btn__value {
	color: #ee4d2d;
	font-weight: 600;
	font-size: 13px;
}

.wb-coupon-chip-btn__state {
	font-size: 11px;
	color: #888;
}

.wb-coupon-chip-btn.is-applied,
button.wb-coupon-chip-btn.is-applied {
	border-color: #2fa96e;
	background: #f0faf5;
}

.wb-coupon-chip-btn.is-applied .wb-coupon-chip-btn__value { color: #2fa96e; }
.wb-coupon-chip-btn.is-applied .wb-coupon-chip-btn__state { color: #2fa96e; }

.wb-coupon-chips-box__hint {
	font-size: 12px;
	color: #999;
	width: 100%;
}

/* Inline AJAX feedback */

.wb-coupon-msg {
	font-size: 12px;
	line-height: 1.5;
	margin-top: 8px;
	width: 100%;
}

.wb-coupon-msg.is-ok { color: #2fa96e; }
.wb-coupon-msg.is-err { color: #d7401f; }

/* My coupons page */

.wb-my-coupons { max-width: 860px; }

.wb-my-coupons__title {
	font-size: 22px;
	margin: 0 0 4px;
}

.wb-my-coupons__sub {
	color: #777;
	margin: 0 0 22px;
}

.wb-my-coupons__heading {
	font-size: 15px;
	margin: 24px 0 12px;
	color: #444;
}

.wb-coupon-list--account .wb-coupon-item { max-width: 640px; }

.wb-my-coupons__empty {
	padding: 24px;
	border: 1px dashed #ddd;
	border-radius: 8px;
	color: #888;
}

/* Mobile */

@media (max-width: 576px) {
	.wb-coupon-bar__chips { display: none; }
	.wb-coupon-item { flex-wrap: wrap; }
	.wb-coupon-claim { flex: 1 0 100%; text-align: center; }
}
