/* Module: coupon-box — the coupon field in its own box under the totals (cart and checkout). */

/* The original places: the row under the cart items, and «Έχεις κουπόνι;» at the top of the checkout. */
.woocommerce-cart-form .actions .coupon,
.woocommerce-form-coupon-toggle,
form.checkout_coupon {
	display: none !important;
}

.g4c-coupon-box {
	margin: 16px 0;
	padding: 16px;
	border: 1px solid rgba(238, 244, 250, 0.2);
	border-radius: 8px;
	text-align: left;
}

.g4c-coupon-box.processing {
	opacity: 0.6;
	pointer-events: none;
}

.g4c-coupon-box__label {
	display: block;
	margin: 0 0 10px;
	font-weight: 600;
	text-transform: none;
}

.g4c-coupon-box__row {
	display: flex;
	gap: 8px;
}

.g4c-coupon-box .g4c-coupon-box__input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid rgba(238, 244, 250, 0.25);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	text-transform: uppercase;
}

.g4c-coupon-box .g4c-coupon-box__input::placeholder {
	color: rgba(238, 244, 250, 0.55);
	text-transform: none;
}

.g4c-coupon-box .g4c-coupon-box__input:focus {
	border-color: #00c2ff;
	outline: none;
}

.g4c-coupon-box .g4c-coupon-box__button {
	flex: none;
	height: 46px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 10px;
	background: #00c2ff;
	color: #00131c;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 46px;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
}

.g4c-coupon-box .g4c-coupon-box__button:hover {
	filter: brightness(1.08);
}

.g4c-coupon-box__notice {
	margin-top: 12px;
}

.g4c-coupon-box__notice > * {
	margin: 0 !important;
}

@media (max-width: 420px) {
	.g4c-coupon-box__row {
		flex-direction: column;
	}
}

/* «Εξοικονομείς» under the total. */
tr.g4c-savings th,
tr.g4c-savings td {
	color: #3ddc84 !important;
	font-weight: 700;
}

tr.g4c-savings td .amount {
	color: inherit;
}

/* Note under the shipping options when a free shipping coupon is in the cart. */
tr.g4c-fs-note td {
	padding-top: 8px !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	text-align: left !important;
	text-transform: none;
	white-space: normal !important;
	overflow-wrap: anywhere;
	color: #3ddc84;
}

/* Coupon row: the code on one line next to «Κουπόνι:», the description under it. */
tr.cart-discount th {
	white-space: nowrap;
}

.g4c-coupon-code {
	letter-spacing: 0.02em;
}

.g4c-coupon-desc {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 400;
	opacity: 0.8;
	white-space: normal;
}

/*
 * Phones: WooCommerce hides the row headers and prints each cell's data-title before it,
 * which for the coupon row would show the label's markup. Show the real header instead.
 */
@media (max-width: 768px) {
	.woocommerce table.shop_table_responsive tr.cart-discount th,
	.woocommerce-page table.shop_table_responsive tr.cart-discount th {
		display: block;
		padding-bottom: 0;
		text-align: left;
		border: 0;
	}

	.woocommerce table.shop_table_responsive tr.cart-discount td,
	.woocommerce-page table.shop_table_responsive tr.cart-discount td {
		border-top: 0 !important;
		padding-top: 4px;
	}

	.woocommerce table.shop_table_responsive tr.cart-discount td::before,
	.woocommerce-page table.shop_table_responsive tr.cart-discount td::before {
		content: none !important;
		display: none !important;
	}
}

.g4c-coupon-saved {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 700;
	color: #3ddc84;
	white-space: normal;
}
