/**
 * WooCommerce Template Custom Styles
 *
 * Minimal CSS for layout and element removal
 * Uses standard WooCommerce classes - theme handles colors/fonts
 */

/* =====================================================================
   Single Product Page Layout
   ===================================================================== */

.product-layout-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin-bottom: 2rem;
}

.product-images-column {
	flex: 0 0 33.333%;
	max-width: 33.333%;
}

.product-summary-column {
	flex: 0 0 calc(66.666% - 2rem);
	max-width: calc(66.666% - 2rem);
}

/* Hide standalone price (only show in variation selector) */
.single-product .product-summary .price {
	display: none;
}

/* Hide quantity selector */
.single-product .quantity,
.single-product .qty {
	display: none;
}

.single-product .quantity + .button {
	margin-left: 0;
}

/* Variation selector (Billing Period) styling */
.single-product .variations {
	margin: 0;
	padding: 0;
	border: none;
}

.single-product .variations tr {
	display: block;
	margin-bottom: 1rem;
}

.single-product .variations td {
	display: block;
	padding: 0;
	text-align: left;
	border: none;
}

.single-product .variations td.label {
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.single-product .variations td.value {
	width: auto;
	max-width: 300px;
}

.single-product .variations select {
	width: 100%;
	max-width: 300px;
}

/* Hide "Clear" button for variations */
.single-product .variations .reset_variations {
	display: none !important;
}

/* Product description display */
.product-description-full {
	xmargin-top: 2rem;
	xpadding-top: 2rem;
	xborder-top: 1px solid rgba(0, 0, 0, 0.1);
}

.product-description-full p {
	margin-bottom: 1rem;
}

/* Subscription details table */
.wss-subscription-details-table {
	margin-top: 2rem;
	padding: 1.5rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
}

.wss-subscription-details-table h3 {
	margin-top: 0;
	margin-bottom: 1rem;
}

.wss-subscription-details-table table {
	width: 100%;
	border-collapse: collapse;
}

.wss-subscription-details-table th {
	text-align: left;
	padding: 0.5rem 1rem 0.5rem 0;
	font-weight: 600;
}

.wss-subscription-details-table td {
	padding: 0.5rem 0;
}

/* Product description row */
.product-description-row {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin-top: 3rem;
}

.product-description-column {
	flex: 0 0 calc(66.666% - 1rem);
	max-width: calc(66.666% - 1rem);
}

.product-gallery-column {
	flex: 0 0 calc(33.333% - 1rem);
	max-width: calc(33.333% - 1rem);
}

.product-gallery-additional {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.product-gallery-item img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

/* =====================================================================
   Cart Page
   ===================================================================== */

/* Hide quantity column and input */
.cart .product-quantity,
.cart .quantity,
.cart .qty {
	display: none;
}

/* Total Due Today Box */
.wss-total-today-box {
	margin: 2rem 0;
	padding: 2rem;
	background: rgba(0, 0, 0, 0.03);
	border: 2px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	text-align: left;
}

.wss-total-today-box h2 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.wss-total-amount-large {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 1rem 0;
	color: #000;
}

.wss-total-description {
	margin-top: 1rem;
	margin-bottom: 0;
	font-size: 1rem;
	line-height: 1.6;
}

/* Subscription Billing Schedule */
.wss-subscription-billing-schedule {
	margin-top: 2rem;
	padding: 2rem;
	background: rgba(0, 0, 0, 0.02);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	text-align: left;
}

.wss-subscription-billing-schedule h3 {
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-size: 1.25rem;
}

.wss-billing-items {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.wss-billing-item {
	padding: 1.5rem;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
}

.wss-billing-item h4 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

.wss-billing-details {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.wss-billing-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.wss-billing-row:last-child {
	border-bottom: none;
}

.wss-billing-label {
	font-weight: 600;
	color: rgba(0, 0, 0, 0.7);
}

.wss-billing-amount {
	font-weight: 600;
	font-size: 1.1rem;
	color: #000;
}

.wss-billing-text {
	color: rgba(0, 0, 0, 0.8);
}

/* Prominent Checkout Button */
.woocommerce .cart-collaterals .wc-proceed-to-checkout {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.woocommerce .cart-collaterals .checkout-button {
	display: block;
	width: 100%;
	padding: 1.25rem 2rem;
	font-size: 1.25rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
}

.woocommerce .cart-collaterals .checkout-button:hover {
	background: #333;
	color: #fff;
	text-decoration: none;
}

.woocommerce .cart-collaterals .checkout-button:focus {
	outline: 2px solid rgba(0, 0, 0, 0.5);
	outline-offset: 2px;
}

/* Remove centering from cart totals */
.woocommerce .cart-collaterals,
.woocommerce .cart-collaterals * {
	text-align: left;
}

.woocommerce .cart_totals table {
	width: 100%;
}

.woocommerce .cart_totals .shop_table th,
.woocommerce .cart_totals .shop_table td {
	text-align: left;
	padding: 1rem 0;
}

.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td {
	font-size: 1.25rem;
	font-weight: 700;
	border-top: 2px solid rgba(0, 0, 0, 0.1);
	padding-top: 1.5rem;
}

/* =====================================================================
   Checkout Page
   ===================================================================== */

/* Total Today notice (checkout page) */
.wss-total-today-notice {
	margin-top: 2rem;
	padding: 2rem;
	text-align: left;
	background: rgba(0, 0, 0, 0.02);
	border: 2px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
}

.wss-total-today-notice h3 {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.wss-total-amount {
	font-size: 2rem;
	font-weight: 700;
	margin: 0.5rem 0;
}

.wss-total-description {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: rgba(0, 0, 0, 0.7);
}

/* =====================================================================
   Thank You Page
   ===================================================================== */

.wss-order-next-steps {
	margin-top: 2rem;
	padding: 2rem;
	background: rgba(0, 0, 0, 0.02);
	border-radius: 4px;
}

.wss-order-next-steps h3 {
	margin-top: 0;
}

.wss-next-step {
	margin-top: 1.5rem;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	text-align: left;
}

.wss-next-step h4 {
	margin-top: 0;
}

.wss-next-step ul {
	margin: 1rem 0;
	padding-left: 1.5rem;
}

.wss-account-info {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* =====================================================================
   My Account Dashboard
   ===================================================================== */

.wss-account-dashboard {
	margin-top: 2rem;
}

.wss-subscriptions-summary {
	margin-bottom: 3rem;
}

.wss-subscription-card {
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	background: #fff;
}

.wss-subscription-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.wss-subscription-header h3 {
	margin: 0;
}

.wss-subscription-status {
	padding: 0.25rem 0.75rem;
	border-radius: 3px;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
}

.wss-subscription-status.status-active {
	background: rgba(46, 125, 50, 0.1);
	color: #2e7d32;
}

.wss-subscription-status.status-paused {
	background: rgba(255, 152, 0, 0.1);
	color: #ff9800;
}

.wss-subscription-status.status-cancelled {
	background: rgba(158, 158, 158, 0.1);
	color: #9e9e9e;
}

.wss-subscription-details p {
	margin: 0.5rem 0;
}

.wss-site-status {
	padding: 0.25rem 0.75rem;
	border-radius: 3px;
	font-size: 0.875rem;
	font-weight: 600;
	display: inline-block;
	margin-left: 0.5rem;
}

.wss-site-status.status-pre-request {
	background: rgba(158, 158, 158, 0.1);
	color: #9e9e9e;
}

.wss-site-status.status-development {
	background: rgba(33, 150, 243, 0.1);
	color: #2196f3;
}

.wss-site-status.status-launched {
	background: rgba(46, 125, 50, 0.1);
	color: #2e7d32;
}

.wss-subscription-actions {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.wss-quick-links {
	margin-top: 3rem;
}

.wss-quick-links ul {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0 0;
}

.wss-quick-links li {
	margin-bottom: 0.75rem;
}

.wss-quick-links a {
	display: inline-block;
	padding: 0.5rem 0;
	text-decoration: none;
}

.wss-quick-links a:hover {
	text-decoration: underline;
}

/* =====================================================================
   Responsive Design
   ===================================================================== */

@media (max-width: 768px) {
	.product-layout-wrapper {
		flex-direction: column;
	}
	
	.product-images-column,
	.product-summary-column {
		flex: 0 0 100%;
		max-width: 100%;
	}
	
	.product-description-row {
		flex-direction: column;
	}
	
	.product-description-column,
	.product-gallery-column {
		flex: 0 0 100%;
		max-width: 100%;
	}
	
	.wss-subscription-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}

/* =====================================================================
   Add-on Products Display
   ===================================================================== */

.wss-addon-products {
	margin-top: 2rem;
}

.wss-addon-products h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: #000;
}

.wss-addon-products-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.wss-addon-product-item {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.2s;
}

.wss-addon-product-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wss-addon-product-link {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	text-decoration: none;
	color: inherit;
}

.wss-addon-product-image {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 4px;
}

.wss-addon-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wss-addon-product-info {
	flex: 1;
	min-width: 0;
}

.wss-addon-product-title {
	margin: 0 0 0.5rem 0;
	font-size: 1rem;
	font-weight: 600;
	color: #000;
	line-height: 1.4;
}

.wss-addon-product-price {
	font-size: 0.95rem;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.7);
}

.wss-addon-product-link:hover .wss-addon-product-title {
	text-decoration: underline;
}

@media (max-width: 991px) {
	.wss-addon-products {
		margin-top: 0;
		padding-top: 2rem;
		border-top: 1px solid rgba(0, 0, 0, 0.1);
	}
}

