/**
 * MyCreaTools - Product Action Card Styles
 */

/* Container */
.mct-pac-container {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	background-color: #ffffff;
	border-radius: 16px;
	padding: 24px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
	font-family: inherit;
	transition: all 0.3s ease;
}

.mct-pac-container * {
	box-sizing: border-box;
}

/* Header Section */
.mct-pac-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}

.mct-pac-title {
	margin: 0;
	padding: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #1e293b;
	word-break: break-word;
}

.mct-pac-wishlist-btn {
	background: transparent;
	border: none;
	padding: 6px;
	margin: -6px -6px 0 0;
	cursor: pointer;
	color: #0f172a;
	font-size: 22px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: none !important;
	transition: transform 0.2s ease, color 0.2s ease;
}

.mct-pac-wishlist-btn:hover {
	transform: scale(1.15);
	color: #dc2626;
	background-color: #FFF !important;
}

.mct-pac-wishlist-btn svg {
	width: 24px;
	height: 24px;
	fill: #000;
	stroke: currentColor;
	stroke-width: 2;
	transition: all 0.2s ease;
}

.mct-pac-wishlist-btn.is-favorite,
.mct-pac-wishlist-btn.is-active {
	color: #dc2626 !important;
	transform: scale(1.1);
}

.mct-pac-wishlist-btn.is-favorite svg,
.mct-pac-wishlist-btn.is-active svg {
	fill: #dc2626 !important;
	stroke: #dc2626 !important;
}

.mct-pac-wishlist-btn.is-favorite svg path,
.mct-pac-wishlist-btn.is-active svg path {
	fill: #dc2626 !important;
	stroke: #dc2626 !important;
}

.mct-pac-wishlist-btn.is-favorite i,
.mct-pac-wishlist-btn.is-active i {
	font-weight: 900 !important;
	color: #dc2626 !important;
}

.mct-pac-btn.mct-favorite-btn.is-favorite,
.mct-pac-btn.mct-favorite-btn.is-active {
	background-color: #dc2626 !important;
	color: #ffffff !important;
	border-color: #dc2626 !important;
}

/* Price Section */
.mct-pac-price-box {
	margin-bottom: 12px;
}

.mct-pac-price {
	font-size: 26px;
	font-weight: 800;
	color: #dc2626;
	line-height: 1.2;
}

.mct-pac-subtitle {
	font-size: 14px;
	color: #94a3b8;
	margin-top: 4px;
	line-height: 1.4;
}

/* Stats Row */
.mct-pac-stats-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 14px;
	margin-bottom: 14px;
}

.mct-pac-stat-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 500;
	color: #1e293b;
}

.mct-pac-stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #0f172a;
}

.mct-pac-stat-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Dividers */
.mct-pac-divider {
	width: 100%;
	height: 1px;
	background-color: #e2e8f0;
	margin: 16px 0;
}

/* Lists */
.mct-pac-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mct-pac-list-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: #1e293b;
	line-height: 1.4;
}

.mct-pac-list-bullet {
	display: inline-block;
	font-size: 16px;
	line-height: 1;
	color: #000000;
	flex-shrink: 0;
	margin-top: 2px;
}

.mct-pac-list-bullet svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.mct-pac-list-text strong,
.mct-pac-list-text b {
	font-weight: 700;
	color: #000000;
}

/* Highlight Row */
.mct-pac-highlight-box {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	line-height: 1.4;
	color: #000000;
}

.mct-pac-highlight-bullet {
	color: #dc2626;
	font-weight: bold;
}

.mct-pac-highlight-prefix {
	color: #dc2626;
	font-weight: 700;
}

.mct-pac-highlight-text strong,
.mct-pac-highlight-text b {
	font-weight: 700;
}

/* Buttons Section */
.mct-pac-buttons-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 20px;
}

.mct-pac-btn-wrapper {
	width: 100%;
}

.mct-pac-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 20px;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	outline: none;
	border: 2px solid transparent;
	line-height: 1.3;
}

/* Preset 1: Primary Solid Red */
.mct-pac-btn-primary {
	background-color: #dc2626;
	color: #ffffff !important;
	border-color: #dc2626;
}

.mct-pac-btn-primary:hover {
	background-color: #b91c1c;
	border-color: #b91c1c;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

/* Preset 2: Secondary Outline with Dark Text */
.mct-pac-btn-secondary-dark {
	background-color: #ffffff;
	color: #000000 !important;
	border-color: #dc2626;
}

.mct-pac-btn-secondary-dark:hover {
	background-color: #fef2f2;
	color: #000000 !important;
	border-color: #dc2626;
}

/* Preset 3: Secondary Outline with Red Text */
.mct-pac-btn-secondary-red {
	background-color: #ffffff;
	color: #dc2626 !important;
	border-color: #dc2626;
}

.mct-pac-btn-secondary-red:hover {
	background-color: #dc2626;
	color: #ffffff !important;
	border-color: #dc2626;
}

/* Button Icon */
.mct-pac-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mct-pac-btn-icon svg {
	width: 1.1em;
	height: 1.1em;
	fill: currentColor;
}

/* Inline Shortcode Container */
.mct-pac-shortcode-inline {
	width: 100%;
	margin-top: 6px;
}

/* Modal Popup for Shortcodes */
.mct-pac-modal-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background-color: rgba(15, 23, 42, 0.6) !important;
	backdrop-filter: blur(4px);
	z-index: 99999999 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 20px !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mct-pac-modal-overlay.is-open {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.mct-pac-modal-card {
	background-color: #ffffff;
	width: 100%;
	max-width: 600px;
	max-height: 85vh;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transform: scale(0.95);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mct-pac-modal-overlay.is-open .mct-pac-modal-card {
	transform: scale(1);
}

.mct-pac-modal-header {
	padding: 16px 20px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mct-pac-modal-title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.mct-pac-modal-close {
	background: transparent;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
	transition: background 0.2s ease, color 0.2s ease;
}

.mct-pac-modal-close:hover {
	background-color: #f1f5f9;
	color: #0f172a;
}

.mct-pac-modal-body {
	padding: 20px;
	overflow-y: auto;
}

/* Responsiveness */
@media (max-width: 480px) {
	.mct-pac-container {
		padding: 18px;
	}
	.mct-pac-stats-row {
		gap: 16px;
	}
	.mct-pac-price {
		font-size: 22px;
	}
	.mct-pac-btn {
		font-size: 16px;
		padding: 10px 16px;
	}
}

/* Product Offer Modal & Alert Styles */
.mct-offer-modal-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background-color: rgba(15, 23, 42, 0.65) !important;
	backdrop-filter: blur(6px);
	z-index: 99999999 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 20px !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mct-offer-modal-overlay.is-open {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.mct-offer-modal-card {
	background: #ffffff;
	width: 100%;
	max-width: 480px;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
	padding: 28px;
	position: relative;
	transform: scale(0.95);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.mct-offer-modal-overlay.is-open .mct-offer-modal-card {
	transform: scale(1);
}

.mct-offer-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: #f1f5f9;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.mct-offer-modal-close:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.mct-offer-modal-header {
	margin-bottom: 20px;
}

.mct-offer-modal-title {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px 0;
}

.mct-offer-modal-sub {
	font-size: 13px;
	color: #64748b;
	margin: 0;
}

.mct-offer-product-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	margin-bottom: 20px;
}

.mct-offer-prod-thumb-wrap {
	width: 52px;
	height: 52px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background-color: #e2e8f0;
}

.mct-offer-prod-thumb-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mct-offer-prod-details h4 {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 4px 0;
}

.mct-offer-summary-price {
	font-size: 13px;
	font-weight: 700;
	color: #dc2626;
}

.mct-offer-form-group {
	margin-bottom: 16px;
}

.mct-offer-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}

.mct-offer-form-group label .required {
	color: #dc2626;
}

.mct-offer-form-group label .optional {
	color: #94a3b8;
	font-weight: 400;
}

.mct-offer-input-prefix-wrap {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.mct-offer-card-body .mct-offer-control,
.mct-offer-modal-card .mct-offer-control,
.mct-offer-control {
	width: 100% !important;
	padding: 12px 16px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	font-family: inherit !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 12px !important;
	outline: none !important;
	background: #f8fafc !important;
	color: #0f172a !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
	appearance: textfield !important;
	-webkit-appearance: textfield !important;
	-moz-appearance: textfield !important;
}

.mct-offer-control::-webkit-outer-spin-button,
.mct-offer-control::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

.mct-offer-input-prefix-wrap input.mct-offer-control {
	padding-right: 42px !important;
}

.mct-offer-currency-tag {
	position: absolute;
	right: 16px;
	font-size: 16px;
	font-weight: 700;
	color: #64748b;
	pointer-events: none;
	user-select: none;
}

.mct-offer-control:focus {
	background: #ffffff !important;
	border-color: #dc2626 !important;
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15) !important;
}

.mct-offer-textarea {
	resize: vertical !important;
	min-height: 100px !important;
	line-height: 1.5 !important;
}

.mct-offer-modal-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 24px;
}

.mct-offer-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.mct-offer-btn-cancel {
	background: #f1f5f9;
	color: #475569;
}

.mct-offer-btn-cancel:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.mct-offer-btn-submit {
	background: #dc2626;
	color: #ffffff;
}

.mct-offer-btn-submit:hover {
	background: #b91c1c;
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

/* Success Alert Modal */
.mct-offer-success-card {
	text-align: center;
	padding: 32px 24px;
}

.mct-offer-success-icon-wrap {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	background-color: #ecfdf5;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mct-offer-success-svg {
	width: 36px;
	height: 36px;
	stroke: #10b981;
	fill: none;
	stroke-width: 2.2;
}

.mct-offer-success-title {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px 0;
}

.mct-offer-success-desc {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 24px 0;
	line-height: 1.5;
}

.mct-offer-success-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mct-offer-btn-chat {
	background: #dc2626;
	color: #ffffff !important;
	width: 100%;
	padding: 12px;
	font-size: 15px;
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.mct-offer-btn-chat:hover {
	background: #b91c1c;
	color: #ffffff !important;
}

.mct-offer-btn-close-success {
	background: transparent;
	color: #64748b;
	width: 100%;
}

.mct-offer-btn-close-success:hover {
	color: #0f172a;
	background: #f1f5f9;
}
