.bw-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 16px;
	width: 100%;
	min-height: 44px;
	padding: 8px 16px;
	background: #000;
	color: #fff;
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}

.bw-bar:hover,
.bw-bar:focus {
	color: #fff;
	text-decoration: none;
}

.bw-bar__tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	background: #e10600;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	border-radius: 999px;
}

.bw-bar__deal {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 8px;
	color: #fff;
	text-align: center;
}

.bw-bar__code {
	color: #fff;
	white-space: nowrap;
}

.bw-bar__code strong {
	font-weight: 700;
	letter-spacing: 0.02em;
}

.bw-popup[hidden] {
	display: none !important;
}

.bw-popup {
	position: fixed;
	inset: 0;
	z-index: 10000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.bw-popup__backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	padding: 0;
	background: rgba(0, 0, 0, 0.45);
	cursor: pointer;
}

.bw-popup__panel {
	position: relative;
	width: min(520px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
	text-align: center;
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	color: var(--color-gray-800, #444);
}

.bw-popup__banner {
	display: block;
	width: 100%;
	height: auto;
	background: #000;
}

.bw-popup__body {
	padding: 22px 24px 24px;
}

.bw-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.bw-popup__close:hover,
.bw-popup__close:focus {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.bw-popup__title {
	margin: 0 0 8px;
	color: #000;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
}

.bw-popup__rules {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--color-gray-700, #555);
}

.bw-popup__more {
	margin-left: 6px;
	color: var(--color-primary-dark, #1a365d);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	white-space: nowrap;
}

.bw-popup__code {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid #e4e4e4;
	border-radius: 12px;
	background: #fafafa;
	color: var(--color-gray-800, #444);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.bw-popup__code:hover,
.bw-popup__code:focus {
	background: #f4f4f4;
	border-color: #d0d0d0;
}

.bw-popup__code-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	min-width: 0;
}

.bw-popup__code-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--color-gray-500, #7a7a7a);
}

.bw-popup__code strong {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: var(--color-gray-950, #333);
}

.bw-popup__copy-side {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	color: var(--color-gray-500, #7a7a7a);
	font-size: 12px;
	font-weight: 600;
}

.bw-popup__copy-icon {
	display: inline-flex;
}

.bw-popup__icon-check {
	display: none;
}

.bw-popup__code.is-copied {
	background: #f4faf6;
	border-color: #cfe8d6;
	animation: bw-code-copy 0.45s ease;
}

.bw-popup__code.is-copied .bw-popup__icon-copy {
	display: none;
}

.bw-popup__code.is-copied .bw-popup__icon-check {
	display: block;
	color: #1f8a4c;
	animation: bw-check-in 0.35s ease;
}

.bw-popup__code.is-copied .bw-popup__copy-hint {
	color: #1f8a4c;
}

@keyframes bw-code-copy {
	0% { transform: scale(1); }
	35% { transform: scale(0.985); }
	100% { transform: scale(1); }
}

@keyframes bw-check-in {
	0% { transform: scale(0.6); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

body.bw-popup-open {
	overflow: hidden;
}

@media (max-width: 700px) {
	.bw-bar {
		gap: 8px;
		padding: 10px 12px;
		font-size: 13px;
	}

	.bw-popup__body {
		padding: 18px 16px 18px;
	}

	.bw-popup__title {
		font-size: 20px;
	}
}
