/**
 * WooCommerce Blocks Checkout Integration Styles
 * For Beatstore License Management
 */

/* License Review Block Container */
.beatstore-license-review-block {
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 16px;
	margin-bottom: 16px;
}

.beatstore-license-review-block h3 {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 16px;
	font-weight: bold;
	color: #333;
}

/* License Review Table */
.review-licenses-checkout-table {
	width: 100%;
	border-collapse: collapse;
}

.review-licenses-checkout-table thead th {
	text-align: left;
	padding: 8px;
	border-bottom: 2px solid #ddd;
	font-size: 14px;
	font-weight: 600;
	color: #555;
}

.review-licenses-checkout-table thead th:last-child {
	text-align: right;
}

.review-licenses-checkout-table tbody tr {
	border-bottom: 1px solid #eee;
}

.review-licenses-checkout-table tbody tr:last-child {
	border-bottom: none;
}

.review-licenses-checkout-table tbody td {
	padding: 12px 8px;
	font-size: 14px;
	color: #333;
}

.review-licenses-checkout-table tbody td:last-child {
	text-align: right;
}

/* View License Button */
.view-license-button {
	padding: 8px 16px !important;
	font-size: 13px !important;
	cursor: pointer;
	white-space: nowrap;
	border-radius: 3px;
	transition: all 0.2s ease;
}

.view-license-button:hover {
	opacity: 0.9;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-license-button:active {
	transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
	.review-licenses-checkout-table {
		font-size: 13px;
	}

	.review-licenses-checkout-table thead th,
	.review-licenses-checkout-table tbody td {
		padding: 8px 4px;
	}

	.view-license-button {
		padding: 6px 12px !important;
		font-size: 12px !important;
	}
}

/* WooCommerce Blocks specific overrides */
.wc-block-checkout .beatstore-license-review-block,
.wc-block-cart .beatstore-license-review-block {
	margin: 16px 0;
}

.wc-block-components-order-meta .beatstore-license-review-block {
	margin-top: 0;
}

/* Integration with WooCommerce Block styles */
.wc-block-components-totals-item.beatstore-license-review-block {
	border-top: 1px solid #e0e0e0;
	padding-top: 24px;
	margin-top: 16px;
}

/* ========================================
   CART BLOCK STYLES
   ======================================== */

/* Cart item inline license button */
.beatstore-cart-license-button-wrapper {
	margin-top: 8px;
	display: block;
}

.beatstore-cart-license-button-wrapper .view-license-button {
	font-size: 13px !important;
	text-decoration: underline;
	color: #2271b1;
	background: none;
	border: none;
	padding: 4px 8px;
	cursor: pointer;
	transition: color 0.2s ease;
	display: inline-block;
}

.beatstore-cart-license-button-wrapper .view-license-button:hover {
	color: #135e96;
	text-decoration: none;
}

.beatstore-cart-license-button-wrapper .view-license-button:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Cart block container spacing */
.wc-block-cart .beatstore-cart-license-button-wrapper {
	margin-top: 8px;
	margin-bottom: 4px;
}

/* Responsive adjustments for cart */
@media (max-width: 768px) {
	.beatstore-cart-license-button-wrapper .view-license-button {
		font-size: 12px !important;
		padding: 4px 6px;
	}
}
