/**
 * MZR Settings — Frontend Styles
 *
 * @package MzrSettings
 */

/* ============================================
   Contracts Accordion — Checkout
   ============================================ */
.meshut-contracts-accordion {
	margin: 20px 0 30px;
}

.meshut-contract-item {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 10px;
	overflow: hidden;
	background: #fff;
}

.meshut-contract-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	cursor: pointer;
	background: #fafafa;
	border-bottom: 1px solid #e0e0e0;
	transition: background 0.2s;
	user-select: none;
}

.meshut-contract-header:hover {
	background: #f0f0f0;
}

.meshut-contract-title {
	font-size: 14px;
	font-weight: 600;
	color: #212121;
}

.meshut-contract-toggle {
	color: #757575;
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
	transition: transform 0.3s;
}

.meshut-contract-item.meshut-contract-open .meshut-contract-toggle {
	transform: rotate(180deg);
}

.meshut-contract-body {
	position: relative;
	overflow: hidden;
}

.meshut-contract-preview {
	max-height: 200px;
}

.meshut-contract-body.meshut-contract-expanded {
	max-height: none !important;
}

.meshut-contract-content {
	padding: 18px;
	font-size: 13px;
	line-height: 1.7;
	color: #424242;
}

.meshut-contract-content p {
	margin-bottom: 10px;
}

.meshut-contract-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
	font-size: 12px;
}

.meshut-contract-content table th,
.meshut-contract-content table td {
	padding: 8px 10px;
	border: 1px solid #e0e0e0;
}

.meshut-contract-content table th {
	background: #f5f5f5;
	font-weight: 600;
}

/* Gradient fade overlay */
.meshut-contract-fade {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
	pointer-events: none;
	transition: opacity 0.3s;
}

.meshut-contract-body.meshut-contract-expanded .meshut-contract-fade {
	opacity: 0;
}

/* Checkbox row */
.meshut-contracts-agree-row {
	margin: 15px 0 !important;
	padding: 12px 16px !important;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

.meshut-contracts-agree-row label {
	font-size: 13px;
	color: #424242;
}

.meshut-contract-link {
	color: #2190ce;
	text-decoration: none;
}

.meshut-contract-link:hover {
	text-decoration: underline;
}

/* ============================================
   Contact Buttons — Container
   ============================================ */
.meshut-contact-buttons {
	position: fixed;
	bottom: 15px;
	display: flex;
	align-items: center;
}

.meshut-cb-vertical {
	flex-direction: column;
}

.meshut-cb-horizontal {
	flex-direction: row;
}

.meshut-cb-left {
	left: 15px;
}

.meshut-cb-right {
	right: 15px;
}

/* ============================================
   Contact Buttons — Individual Button
   ============================================ */
.meshut-cb-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	overflow: hidden;
}

.meshut-cb-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.meshut-cb-btn a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.meshut-cb-icon {
	width: 55%;
	height: 55%;
	object-fit: contain;
}

/* ============================================
   WhatsApp Popup Inline (inside button stack)
   ============================================ */
.meshut-cb-wa-inline {
	position: relative;
}

.meshut-cb-wa-inline.floating-wpp {
	position: relative;
	bottom: auto;
	left: auto;
	right: auto;
}

.meshut-cb-wa-inline.floating-wpp:hover {
	bottom: auto;
}

/* Override floatingWhatsApp button to match our button style */
.meshut-cb-wa-inline .floating-wpp-button {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.meshut-cb-wa-inline .floating-wpp-button:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Reset plugin's absolute positioning so icon sits centered */
.meshut-cb-wa-inline .floating-wpp-button img,
.meshut-cb-wa-inline .floating-wpp-button svg {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	transform: none !important;
	width: 55% !important;
	height: 55% !important;
	border-radius: 0 !important;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

/* Hide the plugin's default button-image overlay */
.meshut-cb-wa-inline .floating-wpp-button-image {
	display: none;
}

.meshut-cb-wa-inline .floating-wpp-popup.active {
	bottom: 100%;
	margin-bottom: 8px;
}

/* ============================================
   WhatsApp Popup (floatingWhatsApp)
   ============================================ */
.floating-wpp {
	position: fixed;
	bottom: 15px;
	left: 15px;
	font-size: 14px;
	transition: bottom 0.2s;
}

.floating-wpp .floating-wpp-button {
	position: relative;
	border-radius: 50%;
	box-shadow: 1px 1px 4px rgba(60, 60, 60, 0.4);
	transition: box-shadow 0.2s;
	cursor: pointer;
	overflow: hidden;
}

.floating-wpp .floating-wpp-button img,
.floating-wpp .floating-wpp-button svg {
	position: absolute;
	width: 100%;
	height: auto;
	object-fit: cover;
	top: 50%;
	left: 50%;
	transform: translate3d(-50%, -50%, 0);
	border-radius: 50%;
}

.floating-wpp:hover .floating-wpp-button {
	box-shadow: 1px 2px 8px rgba(60, 60, 60, 0.4);
}

.floating-wpp .floating-wpp-popup {
	border-radius: 6px;
	background-color: #E5DDD5;
	position: absolute;
	overflow: hidden;
	padding: 0;
	box-shadow: 1px 2px 8px rgba(60, 60, 60, 0.25);
	width: 0;
	height: 0;
	bottom: 0;
	opacity: 0;
	transition: bottom 0.1s ease-out, opacity 0.2s ease-out;
	transform-origin: bottom;
}

.floating-wpp .floating-wpp-popup.active {
	padding: 0 12px 12px;
	width: 260px;
	height: auto;
	bottom: 65px;
	opacity: 1;
}

.floating-wpp .floating-wpp-popup .floating-wpp-message {
	background-color: #fff;
	padding: 8px;
	border-radius: 0 5px 5px;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transition: opacity 0.2s;
}

.floating-wpp .floating-wpp-popup.active .floating-wpp-message {
	opacity: 1;
	transition-delay: 0.2s;
}

.floating-wpp .floating-wpp-popup .floating-wpp-head {
	text-align: right;
	color: #fff;
	margin: 0 -15px 10px;
	padding: 6px 12px;
	display: flex;
	justify-content: space-between;
	cursor: pointer;
}

.floating-wpp .floating-wpp-input-message {
	background-color: #fff;
	margin: 10px -15px -15px;
	padding: 0 15px;
	display: flex;
	align-items: center;
}

.floating-wpp .floating-wpp-input-message textarea {
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: none;
	padding: 8px;
	margin: 10px 0;
	width: 100%;
	max-width: 100%;
	font-family: inherit;
	font-size: inherit;
	resize: none;
	min-height: 72px !important;
	line-height: 1rem !important;
}

.floating-wpp .floating-wpp-btn-send {
	margin-left: 12px;
	font-size: 0;
	cursor: pointer;
}