/* Discount Code & Gift Card — shared component */

.dtec-discount-gift__title {
	color: #000;
	font-size: 20px;
	font-weight: 600;
	line-height: normal;
	display: block;
	margin-bottom: 4px;
}

.dtec-discount-gift__balance {
	color: var(--aubergine-gleam-500, #8F385D);
	font-size: 18px;
	font-weight: 600;
	line-height: normal;
	margin: 0 0 12px;
}

/* The combined input container — looks like one input field */
.dtec-code-input {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--border-200, rgba(46, 40, 38, 0.15));
	border-radius: 10px;
	padding: 8px 8px 8px 16px;
	background: var(--white, #FFF);
}

.dtec-code-input:focus-within {
	border-color: var(--aubergine-gleam-500, #8F385D);
	box-shadow: 0 0 0 3px rgba(143, 56, 93, 0.12);
}

/* Tags container — wraps applied code pills */
.dtec-code-input__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dtec-code-input__tags:empty {
	display: none;
}

/* Individual tag pill */
.dtec-code-input__tag {
	display: flex;
	padding: 7px 10px;
	align-items: center;
	gap: 6px;
	border-radius: 5px;
	background: var(--seashell, #FFF3F0);
	color: var(--dark-gray, #2E2826);
	font-size: 14px;
	font-weight: 700;
	line-height: normal;
	letter-spacing: 0.84px;
	text-transform: uppercase;
	white-space: nowrap;
}

.dtec-code-input__tag-remove {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: var(--dark-gray, #2E2826);
	font-size: 16px;
	line-height: 1;
	opacity: 0.5;
	transition: opacity 150ms ease;
}

.dtec-code-input__tag-remove:hover {
	opacity: 1;
}

/* The actual text input — grows to fill remaining space */
.dtec-code-input__field {
	flex: 1;
	border: none !important;
	outline: none;
	background: #FFFFFF !important;
	font-size: 16px;
	font-weight: 400;
	color: var(--dark-gray, #2E2826);
	min-width: 100px;
	padding: 4px 0;
}

.dtec-code-input__field::placeholder {
	color: rgba(46, 40, 38, 0.4);
}

/* Apply button — sits inside the input border */
.dtec-code-input__apply {
	flex-shrink: 0;
	border: none;
	background: var(--aubergine-gleam-500, #8F385D);
	color: var(--white, #FFF);
	padding: 10px 24px;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 150ms ease;
}

.dtec-code-input__apply:hover {
	opacity: 0.9;
}

.dtec-code-input__apply:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Helper text below input */
.dtec-discount-gift__helper {
	color: var(--medium-gray, rgba(46, 40, 38, 0.75));
	font-size: 14px;
	font-weight: 400;
	line-height: normal;
	margin: 8px 0 0;
}

/* Validation message */
.dtec-discount-gift__msg {
	font-size: 14px;
	font-weight: 500;
	margin: 4px 0 0;
}

.dtec-discount-gift__msg:empty {
	display: none;
}
