/* Partner layout: VIP/Coins tab pages (easygoing-tabcontent in flex contexts) */
.easygoing-tabs-container,
.easygoing-tabcontent {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

/* Product / price shells (shortcode root; page may wrap with .easygoin_box — avoid nesting another box in PHP) */
.egl-stripe-product,
.egl-stripe-price {
	border: 1px solid #333;
	background: #1e1e1e;
	padding: 20px;
	margin: 12px 0;
	border-radius: 10px;
	box-shadow: 0 0 12px rgba(0, 255, 255, 0.1);
	color: #eee;
	box-sizing: border-box;
	/* Critical inside flex/tab parents: default min-width:auto lets wide images blow the column */
	min-width: 0;
	max-width: 100%;
	width: 100%;
}

.easygoing-tabcontent .egl-stripe-product,
.easygoing-tabcontent .egl-stripe-price,
.easygoin_box .egl-stripe-product,
.easygoin_box .egl-stripe-price {
	max-width: 100%;
}

/* Price Card */
.egl-price-card {
	display: flex;
	gap: 16px;
	align-items: center;
	border: 1px solid #222;
	background: #2a2a2a;
	padding: 14px;
	margin: 10px 0;
	border-radius: 6px;
	transition: transform 0.2s ease;
}
.egl-price-card:hover {
	transform: scale(1.02);
	box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

/* Grid Layout — flex row of cards; !important resists tab/block themes flattening nested flex */
.egl-stripe-product .egl-price-grid {
	display: flex !important;
	flex-flow: row wrap !important;
	gap: 20px !important;
	justify-content: flex-start !important;
	align-items: stretch !important;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

/* Price Tiles — direct children of grid only (keeps card chrome even if generic div rules strip borders) */
.egl-stripe-product .egl-price-grid > .egl-price-tile {
	border: 1px solid #333 !important;
	background: #222 !important;
	padding: 16px !important;
	width: 240px !important;
	max-width: 100% !important;
	flex: 0 1 240px !important;
	text-align: center !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	border-radius: 6px !important;
	transition: transform 0.2s ease;
	box-sizing: border-box !important;
	min-width: 0 !important;
}
.egl-stripe-product .egl-price-grid > .egl-price-tile:hover {
	transform: translateY(-4px);
	box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

.egl-stripe-product .egl-price-grid > .egl-price-tile .egl-price-info {
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

/* Text Elements */
.egl-price-title {
	font-weight: bold;
	color: #1abc9c;
	font-size: 1.1em;
}
.egl-price-amount {
	color: #fff;
	font-size: 1.2em;
}
.egl-price-perks {
	font-size: 0.9em;
	color: #aaa;
}

/* Action Area */
.egl-price-action {
	margin-top: auto;
}

/* Purchase Button */
.egl-purchase-btn {
	background: linear-gradient(145deg, #1abc9c, #16a085);
	color: #fff;
	padding: 10px 16px;
	text-decoration: none;
	border-radius: 4px;
	font-weight: bold;
	transition: all 0.3s ease;
	display: inline-block;
	box-shadow: 0 0 8px rgba(26, 188, 156, 0.5);
}
.egl-purchase-btn:hover {
	background: linear-gradient(145deg, #16a085, #1abc9c);
	transform: scale(1.05);
	box-shadow: 0 0 12px rgba(26, 188, 156, 0.7);
}

/* Hero image — !important beats theme img { width:100% } inside tabs */
.egl-stripe-product .egl-product-image {
	display: block;
	text-align: center;
	max-width: 100%;
	margin: 0 auto 16px;
	min-width: 0;
	overflow: hidden;
}

.egl-stripe-product .egl-product-image img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	width: auto !important;
	max-width: min(100%, 400px) !important;
	height: auto !important;
	max-height: 280px !important;
	object-fit: contain;
	border-radius: 8px;
}

/* Price shortcode hero */
.egl-stripe-price .egl-price-image {
	text-align: center;
	max-width: 100%;
	margin-bottom: 12px;
	min-width: 0;
	overflow: hidden;
}

.egl-stripe-price .egl-price-image img {
	display: block;
	margin: 0 auto;
	width: auto !important;
	max-width: min(100%, 400px) !important;
	height: auto !important;
	max-height: 220px !important;
	object-fit: contain;
	border-radius: 6px;
}

/* Tile thumbnails */
.egl-price-thumb {
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 4px;
	min-width: 0;
}

.egl-stripe-product .egl-price-thumb img {
	display: block;
	margin: 0 auto;
	width: auto !important;
	max-width: min(100%, 220px) !important;
	height: auto !important;
	max-height: 160px !important;
	object-fit: cover;
	box-sizing: border-box;
}

/* Perks HTML may include images */
.egl-stripe-product .egl-price-perks img,
.egl-stripe-price .egl-price-perks img {
	max-width: 100% !important;
	height: auto !important;
	border-radius: 4px;
}

/* Receipt */
.egl-stripe-receipt {
	background: #1e1e1e;
	padding: 20px;
	margin: 20px auto;
	border: 1px solid #333;
	border-radius: 10px;
	color: #eee;
	max-width: 720px;
	box-shadow: 0 0 12px rgba(0, 255, 255, 0.08);
	box-sizing: border-box;
	min-width: 0;
}

.egl-receipt-card {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-top: 15px;
	flex-wrap: wrap;
}
.egl-receipt-image img {
	width: 120px;
	height: 120px;
	max-width: 100%;
	object-fit: cover;
	border: 1px solid #444;
	border-radius: 4px;
}
.egl-receipt-details {
	flex: 1;
	min-width: 200px;
}

/* Perks Popup */
.egl-perks-popup {
	max-width: 300px;
	box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
	background: #2a2a2a;
	color: #eee;
	border: 1px solid #333;
	border-radius: 6px;
	padding: 10px;
}
