/* ==========================================================================
   Keyfy Spoke – Thank-you / My-account key display
   Mirrors the Lizenzhub.de production styles so the shortcode renders
   identically on any WooCommerce theme.
   ========================================================================== */

/* ---- Container ---- */
.lz-key-sender-thank-you {
	margin-top: 28px;
}

/* ---- Item card ---- */
.lz-key-sender-thank-you-order-info__item {
	border-bottom: 1px solid #e3e8ef;
}

.lz-key-sender-thank-you-order-info__item:first-child {
	border-top: 1px solid #e3e8ef;
}

.lz-key-sender-thank-you-order-info__item.active {
	background: #f8fafc;
	border: 1px solid #e3e8ef;
}

/* ---- Row layout ---- */
.lz-key-sender-thank-you-order-info--row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.lz-key-sender-thank-you-order-info--row:first-child {
	padding: 38px 24px;
}

.lz-key-sender-thank-you-order-info__item.active
	.lz-key-sender-thank-you-order-info--row:last-child {
	border-top: 1px solid #e3e8ef;
	padding: 24px;
}

/* ---- Item columns ---- */
.thank-you-order-info__item-column:first-child {
	display: flex;
	align-items: center;
	gap: 24px;
}

/* ---- Product image ---- */
.lz-key-sender-product-image {
	padding: 5px 12px;
	border: 1px solid #e3e8ef;
	border-radius: 4px;
	width: 72px !important;
	height: 68px !important;
	object-fit: contain;
}

/* ---- Product info ---- */
.lz-key-sender-product-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lz-key-sender-product-title {
	font-size: 14.4px;
	font-weight: 400;
	color: #444;
	line-height: 1.6;
}

.lz-key-sender-product-price {
	font-size: 12px;
	line-height: 1.5;
	color: #364152;
	padding: 2px 8px 2px 10px;
	border: 1px solid #e3e8ef;
	border-radius: 4px;
	width: fit-content;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.lz-key-sender-product-price .keyfy-spoke-icon {
	width: 10px;
	height: 10px;
	flex-shrink: 0;
}

/* ---- Key toggle button ---- */
.thank-you-order-info__item--key-check {
	padding: 8px 14px;
	color: #364152;
	border: 1px solid #e3e8ef;
	border-radius: 4px;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 4px;
	text-decoration: none;
	cursor: pointer;
	background: transparent;
	white-space: nowrap;
}

.thank-you-order-info__item--key-check:hover {
	background: #f8fafc;
}

.thank-you-order-info__item--key-check .keyfy-spoke-icon {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

/* Show / hide label toggling */
.lz-key-sender-thank-you-order-info__item.active
	.thank-you-order-info__item--key-check
	.key-show {
	display: none !important;
}

.lz-key-sender-thank-you-order-info__item.active
	.thank-you-order-info__item--key-check
	.key-hide {
	display: inline !important;
}

/* ---- Keys container ---- */
.lz-key-sender-thank-you-order-info--row .lz-key-sender-keys {
	width: 100%;
}

/* ---- Code container (each key row) ---- */
.lz-key-sender-thank-you-order-info__item.active
	.lz-key-sender-keys
	.code-container {
	background: #f8fafc;
	border: 1px solid #e3e8ef;
	border-radius: 4px;
}

.code-container + .code-container {
	margin-top: 8px;
}

/* ---- Code box wrapper (textarea + button) ---- */
.lz-key-sender-thank-you-order-info--row
	.lz-key-sender-keys
	.code-box__wrapper {
	position: relative;
}

/* ---- Textarea ---- */
.lz-key-sender-thank-you-order-info__item.active
	.lz-key-sender-keys
	.code-container
	textarea {
	min-height: 52px;
	padding: 8px 12px;
	overflow: hidden;
	font-size: 14px;
	line-height: 2.5;
	color: #121926;
	box-shadow: none;
	border-radius: 4px;
	resize: none;
	margin-bottom: 0 !important;
	font-weight: 400 !important;
	border: 0 !important;
	width: 100%;
	box-sizing: border-box;
	background: #fff;
}

/* ---- Copy button ---- */
.lz-key-sender-thank-you-order-info--row
	.lz-key-sender-keys
	.code-box__wrapper
	.copy-btn {
	cursor: pointer;
	position: absolute;
	top: 7px;
	right: 12px;
	background: #1570ef;
	border-radius: 4px;
	font-weight: 400;
	height: fit-content;
	padding: 0 10px !important;
	margin: 0 !important;
	font-size: 14px !important;
	color: #fff !important;
	text-transform: unset !important;
	border: 1px solid transparent;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 2.2;
}

.lz-key-sender-thank-you-order-info--row
	.lz-key-sender-keys
	.code-box__wrapper
	.copy-btn:hover {
	background: #1259c4;
}

.copy-btn .keyfy-spoke-icon {
	width: 13px !important;
	height: 13px !important;
	flex-shrink: 0;
}

/* ---- Bottom text ---- */
.lz-key-sender-thank-you__text {
	font-size: 16px;
	line-height: 1.5;
	color: #121926;
	margin-top: 40px;
}
