﻿/* ==========================================================================
   ChatCart Pro – Frontend Styles
   ========================================================================== */

:root {
	--velchk-green-start:  #30BF2F;
	--velchk-green-end:    #59F270;
	--velchk-dark:         #1F1F1F;
	--velchk-light:        #F6F7F9;
	--velchk-white:        #FFFFFF;
	--velchk-border:       #E2E8F0;
	--velchk-text:         #1F1F1F;
	--velchk-text-muted:   #718096;
	--velchk-error:        #E53E3E;
	--velchk-radius:       12px;
	--velchk-radius-sm:    8px;
	--velchk-gradient:     linear-gradient(90deg, var(--velchk-green-start), var(--velchk-green-end));
	--velchk-shadow-btn:   0 4px 16px rgba(48, 191, 47, 0.35);
}

/* ==========================================================================
   WhatsApp Buttons
   ========================================================================== */

.velchk-btn--whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--velchk-gradient);
	color: var(--velchk-white) !important;
	border: none;
	border-radius: var(--velchk-radius);
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	text-decoration: none !important;
	box-shadow: var(--velchk-shadow-btn);
	transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	letter-spacing: 0.01em;
}

.velchk-btn--whatsapp::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0);
	transition: background 0.2s;
}

.velchk-btn--whatsapp:hover {
	opacity: 0.92;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(48, 191, 47, 0.45);
}

.velchk-btn--whatsapp:active {
	transform: translateY(0);
	opacity: 1;
}

.velchk-btn--whatsapp:disabled,
.velchk-btn--whatsapp.velchk-btn--loading {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.velchk-btn__icon {
	width: 22px !important;
	height: 22px !important;
	min-width: 22px;
	min-height: 22px;
	max-width: 22px;
	max-height: 22px;
	flex-shrink: 0;
	display: inline-block;
}

/* Force white fill on every WhatsApp button icon regardless of theme CSS.
   Uses high-specificity selectors because some themes (e.g. Elessi) target
   svg/path elements with !important rules that beat a single-class selector. */
.velchk-btn--whatsapp .velchk-btn__icon,
.velchk-btn--whatsapp svg.velchk-btn__icon {
	fill: #ffffff !important;
	color: #ffffff !important;
}

.velchk-btn--whatsapp .velchk-btn__icon path,
.velchk-btn--whatsapp svg.velchk-btn__icon path {
	fill: #ffffff !important;
}

/* Force white text on every WhatsApp button regardless of theme CSS.
   Targets the text span and the button itself with two-class specificity. */
.velchk-mini-cart-btn-wrapper .velchk-btn--mini-cart,
.velchk-mini-cart-btn-wrapper .velchk-btn--mini-cart span {
	color: #ffffff !important;
}

/* Product page button */
.velchk-btn--product {
	margin-top: 12px;
	margin-bottom: 14px;
}

/* Cart button */
.velchk-btn--cart {
	margin-top: 10px;
}

/* Mini-cart WhatsApp button */
.velchk-btn--mini-cart {
	margin-top: 8px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	padding: 11px 16px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	white-space: nowrap;
	box-sizing: border-box !important;
	background: var(--velchk-gradient) !important;
	color: var(--velchk-white) !important;
	border-radius: var(--velchk-radius-sm) !important;
	border: none !important;
	box-shadow: var(--velchk-shadow-btn) !important;
	text-decoration: none !important;
}

.velchk-btn--mini-cart .velchk-btn__icon {
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	max-width: 18px;
	flex-shrink: 0 !important;
}

/* Checkout button */
.velchk-btn--checkout {
	font-size: 17px;
	padding-top: 27px !important;
	padding-bottom: 27px !important;
	padding-left: 28px;
	padding-right: 28px;
	letter-spacing: 0.02em;
	margin-top: 39px;
}

/* Spinner */
.velchk-btn__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: var(--velchk-white);
	border-radius: 50%;
	animation: velchk-spin 0.6s linear infinite;
}

.velchk-btn--loading .velchk-btn__spinner {
	display: inline-block;
}

@keyframes velchk-spin {
	to { transform: rotate(360deg); }
}

/* Hide "Add to Cart" when setting is enabled — excludes Buy Now buttons */
body.velchk-hide-add-to-cart .single_add_to_cart_button:not([class*="buy-now"]):not([class*="buy_now"]):not(.woo-buy-now):not(.wc-direct-checkout),
body.velchk-hide-add-to-cart .add_to_cart_button:not([class*="buy-now"]):not([class*="buy_now"]),
body.velchk-hide-add-to-cart .woocommerce form.cart .button:not([class*="buy-now"]):not([class*="buy_now"]):not(.velchk-btn) {
	display: none !important;
}

/* Hide "Buy Now" button when setting is enabled */
body.velchk-hide-buy-now .wc-buy-now,
body.velchk-hide-buy-now .buy-now,
body.velchk-hide-buy-now .buy_now_button,
body.velchk-hide-buy-now [class*="buy-now"]:not(.velchk-btn),
body.velchk-hide-buy-now [class*="buy_now"]:not(.velchk-btn),
body.velchk-hide-buy-now [name="buy_now"],
body.velchk-hide-buy-now .wc-direct-checkout,
body.velchk-hide-buy-now .cartflows-buy-now-btn,
body.velchk-hide-buy-now .quick-buy,
body.velchk-hide-buy-now .woo-buy-now {
	display: none !important;
}

/* ==========================================================================
   Custom Checkout Form
   ========================================================================== */

.velchk-checkout-wrap {
	font-family: inherit;
}

/* Section titles */
.velchk-section-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--velchk-dark);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--velchk-border);
	display: flex;
	align-items: center;
	gap: 10px;
}

.velchk-section-title::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 22px;
	background: var(--velchk-gradient);
	border-radius: 2px;
}

/* Form Grid */
.velchk-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

@media (max-width: 600px) {
	.velchk-form-grid {
		grid-template-columns: 1fr;
	}
}

.velchk-field-wrap {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.velchk-field-wrap--full {
	grid-column: 1 / -1;
}

.velchk-field-wrap--half {
	grid-column: span 1;
}

.velchk-field-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--velchk-dark);
}

.velchk-field-required {
	color: var(--velchk-error);
	margin-left: 3px;
}

.velchk-field-input,
.velchk-field-select,
.velchk-field-textarea {
	width: 100%;
	padding: 12px 14px;
	font-size: 14px;
	color: var(--velchk-dark);
	background: var(--velchk-white);
	border: 1.5px solid var(--velchk-border);
	border-radius: var(--velchk-radius-sm);
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
}

.velchk-field-input:focus,
.velchk-field-select:focus,
.velchk-field-textarea:focus {
	outline: none;
	border-color: var(--velchk-green-start);
	box-shadow: 0 0 0 3px rgba(48, 191, 47, 0.15);
}

.velchk-field-input.velchk-field--error,
.velchk-field-select.velchk-field--error,
.velchk-field-textarea.velchk-field--error {
	border-color: var(--velchk-error);
	box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

.velchk-field-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.velchk-field-textarea {
	resize: vertical;
	min-height: 90px;
}

.velchk-field-error-msg {
	font-size: 12px;
	color: var(--velchk-error);
	margin: 0;
	display: none;
}

.velchk-field-wrap.has-error .velchk-field-error-msg {
	display: block;
}

/* CEP lookup feedback */
.velchk-cep-status {
	font-size: 12px;
	color: var(--velchk-text-muted);
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}

.velchk-cep-status--loading::before {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 2px solid var(--velchk-border);
	border-top-color: var(--velchk-green-start);
	border-radius: 50%;
	animation: velchk-spin 0.6s linear infinite;
}

/* ==========================================================================
   Hide WooCommerce's default checkout fields
   ========================================================================== */

/* Only suppress WC native checkout fields/payment when our custom form is active */
.velchk-custom-checkout-active.woocommerce-checkout .woocommerce-billing-fields,
.velchk-custom-checkout-active.woocommerce-checkout .woocommerce-shipping-fields,
.velchk-custom-checkout-active.woocommerce-checkout .woocommerce-additional-fields {
	display: none !important;
}

.velchk-custom-checkout-active.woocommerce-checkout #customer_details .velchk-shipping-section,
.velchk-custom-checkout-active.woocommerce-checkout .col-2 .velchk-shipping-section {
	display: none !important;
}

/* Only hide native payment list when BOTH custom checkout AND custom payment are active.
   Without custom payment active, WooCommerce's own payment section must stay visible. */
.velchk-custom-checkout-active.velchk-custom-payment-active.woocommerce-checkout .woocommerce-checkout-payment ul.payment_methods,
.velchk-custom-checkout-active.velchk-custom-payment-active.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_methods,
.velchk-custom-checkout-active.velchk-custom-payment-active.woocommerce-checkout #payment ul.payment_methods,
.velchk-custom-checkout-active.velchk-custom-payment-active.woocommerce-checkout #payment > ul {
	display: none !important;
}

.velchk-custom-checkout-active.velchk-custom-payment-active.woocommerce-checkout #payment > *:not(.place-order) {
	display: none !important;
}

/* T&C and privacy policy must always remain visible for WC validation */

/* Only hide WC cart checkout button when the setting is explicitly enabled */
.velchk-hide-wc-checkout-btn.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.velchk-hide-wc-checkout-btn.woocommerce-cart .wc-proceed-to-checkout a.button {
	display: none !important;
}

/* ==========================================================================
   Shipping Section
   ========================================================================== */

.velchk-shipping-section {
	margin-top: 28px;
}

.velchk-shipping-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--velchk-text-muted);
	padding: 16px;
	background: var(--velchk-light);
	border-radius: var(--velchk-radius-sm);
}

.velchk-shipping-loading::before {
	content: '';
	width: 18px;
	height: 18px;
	border: 2px solid var(--velchk-border);
	border-top-color: var(--velchk-green-start);
	border-radius: 50%;
	animation: velchk-spin 0.6s linear infinite;
	flex-shrink: 0;
}

.velchk-shipping-methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.velchk-shipping-method {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--velchk-white);
	border: 1.5px solid var(--velchk-border);
	border-radius: var(--velchk-radius-sm);
	cursor: pointer;
	transition: border-color 0.2s, background 0.15s;
}

.velchk-shipping-method:hover {
	border-color: var(--velchk-green-start);
	background: rgba(48, 191, 47, 0.04);
}

.velchk-shipping-method input[type="radio"] {
	accent-color: var(--velchk-green-start);
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.velchk-shipping-method__label {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	color: var(--velchk-dark);
}

.velchk-shipping-method__price {
	font-size: 14px;
	font-weight: 700;
	color: var(--velchk-green-start);
}

.velchk-shipping-method input:checked ~ .velchk-shipping-method__label {
	color: var(--velchk-green-start);
}

.velchk-shipping-method:has(input:checked) {
	border-color: var(--velchk-green-start);
	background: rgba(48, 191, 47, 0.05);
}

.velchk-no-shipping {
	padding: 16px;
	background: var(--velchk-light);
	border-radius: var(--velchk-radius-sm);
	font-size: 14px;
	color: var(--velchk-text-muted);
	text-align: center;
}

/* ==========================================================================
   Payment Methods Section
   ========================================================================== */

.velchk-payment-section {
	margin-top: 28px;
}

.velchk-payment-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

/* On very small screens (< 360px) drop to 2 columns so cards don't get too narrow */
@media (max-width: 359px) {
	.velchk-payment-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

.velchk-payment-card {
	position: relative;
	display: flex;
	flex-direction: column;
}

.velchk-payment-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.velchk-payment-card__label {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px;
	padding: 20px 12px 24px;
	background: var(--velchk-white);
	border: 1.5px solid var(--velchk-border);
	border-radius: var(--velchk-radius-sm);
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.15s;
	text-align: center;
	min-height: 100px;
	flex: 1;
	box-sizing: border-box;
}

.velchk-payment-card__label:hover {
	border-color: var(--velchk-green-start);
	box-shadow: 0 2px 8px rgba(48, 191, 47, 0.15);
}

.velchk-payment-card input:checked + .velchk-payment-card__label {
	border-color: var(--velchk-green-start);
	background: rgba(48, 191, 47, 0.06);
	box-shadow: 0 0 0 3px rgba(48, 191, 47, 0.2);
}

.velchk-payment-card__icon {
	display: block !important;
	width: 52px;
	height: 40px;
	object-fit: contain;
	flex-shrink: 0;
}

.velchk-payment-card__name {
	font-size: 13px;
	font-weight: 600;
	color: var(--velchk-dark);
	line-height: 1.2;
}

.velchk-payment-card__check {
	display: none;
	width: 20px;
	height: 20px;
	background: var(--velchk-gradient);
	border-radius: 50%;
	position: absolute;
	bottom: 2px;
    right: -6px;
	align-items: center;
	justify-content: center;
}

.velchk-payment-card__check::after {
	content: '';
	width: 5px;
	height: 9px;
	border: 2px solid white;
	border-top: none;
	border-left: none;
	transform: rotate(45deg);
	margin-top: -3px;
}

.velchk-payment-card input:checked ~ .velchk-payment-card__check {
	display: flex;
}

/* Hide WC "Payment Information" heading when plugin payment methods are active */
.velchk-custom-payment-active .woocommerce-checkout #payment > h3,
.velchk-custom-payment-active .woocommerce-checkout #payment > h2 {
	display: none !important;
}

/* Hide native WC payment method list when plugin payment methods are active.
   Scoped to payment-only mode (no custom checkout fields required).
   JS also hides these via inline styles for themes that bypass body_class. */
.velchk-custom-payment-active.woocommerce-checkout #payment > ul,
.velchk-custom-payment-active.woocommerce-checkout #payment > .wc_payment_methods,
.velchk-custom-payment-active.woocommerce-checkout #payment > .payment_methods,
.velchk-custom-payment-active.woocommerce-checkout .woocommerce-checkout-payment > ul,
.velchk-custom-payment-active.woocommerce-checkout .woocommerce-checkout-payment > .wc_payment_methods,
.velchk-custom-payment-active.woocommerce-checkout .woocommerce-checkout-payment > .payment_methods {
	display: none !important;
}

/* ==========================================================================
   Order Summary Sidebar
   ========================================================================== */

.velchk-order-summary {
	background: var(--velchk-white);
	border: 1px solid var(--velchk-border);
	border-radius: var(--velchk-radius);
	overflow: hidden;
	position: sticky;
	top: 20px;
}

.velchk-order-summary__header {
	padding: 16px 20px;
	background: var(--velchk-dark);
	color: var(--velchk-white);
	font-size: 15px;
	font-weight: 700;
}

.velchk-order-summary__items {
	padding: 16px 20px;
	border-bottom: 1px solid var(--velchk-border);
}

.velchk-order-summary__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.velchk-order-summary__item:last-child {
	margin-bottom: 0;
}

.velchk-order-summary__item-img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--velchk-border);
	flex-shrink: 0;
}

.velchk-order-summary__item-info {
	flex: 1;
}

.velchk-order-summary__item-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--velchk-dark);
	margin: 0 0 4px;
}

.velchk-order-summary__item-meta {
	font-size: 12px;
	color: var(--velchk-text-muted);
}

.velchk-order-summary__item-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--velchk-dark);
	flex-shrink: 0;
}

.velchk-order-summary__totals {
	padding: 16px 20px;
}

.velchk-order-summary__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 14px;
	color: var(--velchk-text-muted);
}

.velchk-order-summary__row--total {
	font-size: 16px;
	font-weight: 700;
	color: var(--velchk-dark);
	padding-top: 12px;
	border-top: 1px solid var(--velchk-border);
	margin-top: 8px;
}

.velchk-order-summary__row--total span:last-child {
	color: var(--velchk-green-start);
}

/* ==========================================================================
   Global Form Error
   ========================================================================== */

.velchk-global-error {
	display: none;
	padding: 14px 18px;
	background: rgba(229, 62, 62, 0.1);
	border: 1px solid rgba(229, 62, 62, 0.3);
	border-radius: var(--velchk-radius-sm);
	color: #9b2c2c;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 20px;
}

/* ==========================================================================
   Responsive Layout for Checkout
   ========================================================================== */

.velchk-checkout-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 32px;
	align-items: start;
}

@media (max-width: 900px) {
	.velchk-checkout-layout {
		grid-template-columns: 1fr;
	}

	.velchk-order-summary {
		position: static;
		order: -1;
	}
}

/* ==========================================================================
   Channel Contact Buttons (product page)
   ========================================================================== */

.velchk-channel-buttons-group {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
	margin-bottom: 14px;
}

.velchk-channel-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 9px !important;
	padding: 11px 20px !important;
	border-radius: 50px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	text-decoration: none !important;
	transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
	width: auto !important;
	max-width: fit-content !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
	font-family: inherit !important;
	letter-spacing: 0.01em !important;
	color: #ffffff !important;
	white-space: nowrap !important;
	height: auto !important;
	flex: 0 0 auto !important;
}

.velchk-channel-btn:hover {
	opacity: 0.88;
	transform: translateY(-2px);
}

.velchk-channel-btn:active {
	transform: translateY(0);
	opacity: 1;
}

.velchk-channel-icon {
	width: 22px !important;
	height: 22px !important;
	min-width: 22px;
	flex-shrink: 0;
	fill: currentColor !important;
	display: block;
}

.velchk-channel-btn--whatsapp {
	background: #25D366;
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.velchk-channel-btn--whatsapp:hover { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45); }

.velchk-channel-btn--messenger {
	background: #0084FF;
	box-shadow: 0 4px 14px rgba(0, 132, 255, 0.35);
}
.velchk-channel-btn--messenger:hover { box-shadow: 0 6px 18px rgba(0, 132, 255, 0.45); }

.velchk-channel-btn--instagram {
	background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	box-shadow: 0 4px 14px rgba(220, 39, 67, 0.35);
}
.velchk-channel-btn--instagram:hover { box-shadow: 0 6px 18px rgba(220, 39, 67, 0.45); }

.velchk-channel-btn--imessage {
	background: #30D158;
	box-shadow: 0 4px 14px rgba(48, 209, 88, 0.35);
}
.velchk-channel-btn--imessage:hover { box-shadow: 0 6px 18px rgba(48, 209, 88, 0.45); }

.velchk-channel-btn--rcs {
	background: #4285F4;
	box-shadow: 0 4px 14px rgba(66, 133, 244, 0.35);
}
.velchk-channel-btn--rcs:hover { box-shadow: 0 6px 18px rgba(66, 133, 244, 0.45); }

.velchk-channel-btn--snapchat {
	background: #FFFC00;
	color: #000000 !important;
	box-shadow: 0 4px 14px rgba(200, 198, 0, 0.35);
}
.velchk-channel-btn--snapchat .velchk-channel-icon { fill: #000000 !important; }
.velchk-channel-btn--snapchat:hover { box-shadow: 0 6px 18px rgba(200, 198, 0, 0.45); }

/* ==========================================================================
   Floating Button
   ========================================================================== */

.velchk-floating-wrapper {
	position: fixed;
	z-index: 999999999;
	bottom: 24px;
}

.velchk-floating-wrapper--bottom-right {
	right: 24px;
}

.velchk-floating-wrapper--bottom-left {
	left: 24px;
}

.velchk-floating-button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 58px !important;
	height: 58px !important;
	border-radius: 50% !important;
	background: linear-gradient(135deg, #30BF2F 0%, #59F270 100%) !important;
	box-shadow: 0 4px 20px rgba(48, 191, 47, 0.5) !important;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	color: #ffffff !important;
}

.velchk-floating-button:hover,
.velchk-floating-button:focus {
	transform: scale(1.1);
	box-shadow: 0 6px 24px rgba(48, 191, 47, 0.6);
	outline: none;
}

.velchk-floating-button:focus-visible {
	outline: 3px solid #1F1F1F;
	outline-offset: 3px;
}

.velchk-floating-button__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.velchk-floating-button__icon svg {
	width: 30px !important;
	height: 30px !important;
	fill: #ffffff !important;
}

@media (max-width: 480px) {
	.velchk-floating-wrapper {
		bottom: var(--velchk-float-bottom-mobile, 16px);
	}
	.velchk-floating-wrapper--bottom-right {
		right: 16px;
	}
	.velchk-floating-wrapper--bottom-left {
		left: 16px;
	}
	.velchk-floating-button {
		width: 52px;
		height: 52px;
	}
	.velchk-floating-button__icon svg {
		width: 26px;
		height: 26px;
	}
}


/* -----------------------------------------------------------------------
   Hide WC checkout button (cart + mini-cart + checkout page) when enabled
   ----------------------------------------------------------------------- */

/* Cart page — targets WC's "Proceed to Checkout" button */
.velchk-hide-wc-checkout-btn .checkout-button:not(.velchk-btn),
.velchk-hide-wc-checkout-btn a.checkout-button:not(.velchk-btn) {
	display: none !important;
}

/* Mini-cart — WC uses class "checkout" (not "checkout-button") on the link.
   Target both naming conventions for compatibility across WC versions. */
.velchk-hide-wc-checkout-btn .woocommerce-mini-cart__buttons a.checkout,
.velchk-hide-wc-checkout-btn .woocommerce-mini-cart__buttons .checkout-button {
	display: none !important;
}

/* Checkout page — hide WC's "Place Order" button */
.velchk-hide-wc-checkout-btn.woocommerce-checkout #place_order {
	display: none !important;
}

/* ==========================================================================
   Theme-compatibility: checkout + cart button wrappers
   ========================================================================== */

/* Checkout button wrapper — JS positions this directly above #place_order. */
#velchk-checkout-btn-wrapper {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 20px;
}

/* Cart button wrapper — JS positions this after the Proceed to Checkout button */
#velchk-cart-btn-wrapper {
	display: block;
}

/* ==========================================================================
   Theme-compatibility: mini-cart button wrapper
   Forces the WhatsApp button onto its own full-width line below the native
   "View Cart" / "Checkout" buttons, even when the theme uses flexbox for the
   buttons row (e.g. Blonwe where both native buttons share a horizontal row).
   ========================================================================== */

/* Allow the flex row to wrap so our wrapper drops below */
.woocommerce-mini-cart__buttons,
.widget_shopping_cart_content .buttons {
	flex-wrap: wrap !important;
}

/* Wrapper takes full width and always sorts last */
.velchk-mini-cart-btn-wrapper {
	display: block;
	width: 100%;
	flex: 0 0 100%;
	order: 999;
	clear: both;
	margin-top: 8px;
	box-sizing: border-box;
}

/* The button inside the wrapper stretches full width */
.velchk-mini-cart-btn-wrapper .velchk-btn--mini-cart,
.velchk-mini-cart-btn-wrapper .velchk-btn--whatsapp {
	display: flex !important;
	width: 100% !important;
	box-sizing: border-box;
}

/* ==========================================================================
   Theme-compatibility: fixed / sticky add-to-cart bars
   JS (velchkFixStickyCartBars) moves our button into the rightmost slot of the
   bar. CSS ensures it never stretches to full-width once placed there.
   ========================================================================== */
[class*="add-to-cart-fixed"] .velchk-btn,
[class*="fixed-add-to-cart"] .velchk-btn,
[class*="sticky-add-to-cart"] .velchk-btn,
[class*="add_to_cart_fixed"] .velchk-btn,
[class*="fixed_add_to_cart"] .velchk-btn,
[class*="sticky_add_to_cart"] .velchk-btn,
[class*="add-to-cart-sticky"] .velchk-btn,
[class*="add_to_cart_sticky"] .velchk-btn {
	width: auto !important;
	min-width: 0 !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
}

/* ==========================================================================
   Saved Info Banner
   Appears at the top of the checkout customer section when form data has
   been pre-filled from localStorage (previous session).
   ========================================================================== */
.velchk-saved-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	margin-bottom: 18px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-left: 4px solid var(--velchk-green-start);
	border-radius: var(--velchk-radius-sm);
	font-size: 13.5px;
	color: #166534;
	line-height: 1.4;
}

.velchk-saved-banner__text {
	flex: 1;
}

.velchk-saved-banner__clear {
	background: none;
	border: none;
	padding: 2px 6px;
	font-size: 12px;
	color: var(--velchk-text-muted);
	cursor: pointer;
	text-decoration: underline;
	white-space: nowrap;
	transition: color 0.15s;
}

.velchk-saved-banner__clear:hover {
	color: var(--velchk-error);
}

.velchk-saved-banner__dismiss {
	background: none;
	border: none;
	padding: 0 4px;
	font-size: 18px;
	line-height: 1;
	color: var(--velchk-text-muted);
	cursor: pointer;
	transition: color 0.15s;
	flex-shrink: 0;
}

.velchk-saved-banner__dismiss:hover {
	color: var(--velchk-dark);
}

/* ── Checkout compatibility notice (visible to store managers only) ───────── */
.velchk-compat-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #fffbeb;
	border: 1px solid #f59e0b;
	border-left: 4px solid #f59e0b;
	border-radius: 6px;
	padding: 12px 36px 12px 14px;
	margin-bottom: 16px;
	font-size: 13px;
	line-height: 1.5;
	color: #451a03;
	position: relative;
}

.velchk-compat-notice__icon {
	font-size: 16px;
	flex-shrink: 0;
	margin-top: 1px;
}

.velchk-compat-notice__text a {
	color: #92400e;
	font-weight: 600;
	text-decoration: underline;
}

.velchk-compat-notice__close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: #92400e;
	padding: 0;
	opacity: 0.7;
}

.velchk-compat-notice__close:hover {
	opacity: 1;
}
