/*
 * Craft Axis — Shortlist styles (brief section 10, "Brand styling").
 * Fonts: Manner (product title font) for headings, Karla (product details font) for body.
 * Colours only from the brief: #793912, #5B3A24, #F6F1EC, #1A1A1A, #5F5F5F, #BDBDBD, #D9D9D9.
 */

:root {
	--ca-primary: #793912;
	--ca-brown: #5B3A24;
	--ca-panel: #F6F1EC;
	--ca-text: #1A1A1A;
	--ca-muted: #5F5F5F;
	--ca-field-border: #BDBDBD;
	--ca-divider: #D9D9D9;
	--ca-heading-font: "Manner", Georgia, serif;
	--ca-body-font: "Karla", Arial, sans-serif;
}

/* ---------- Shared pieces ----------
 * Element-qualified "body a.x / body h1.x" selectors: Elementor's kit rules
 * (`.elementor-kit-6 a`, `.elementor-kit-6 h1`) set link colour and heading font site-wide. */

body h1.ca-heading,
body h2.ca-heading {
	font-family: var(--ca-heading-font);
	font-weight: 500;
	color: var(--e-global-color-text, var(--ca-text));
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	margin: 0 0 8px;
}

.ca-sl-secondary {
	font-family: var(--ca-body-font);
	font-size: 13px;
	line-height: 1.5;
	color: var(--ca-muted);
	margin: 0;
}

.ca-panel {
	background: var(--ca-panel);
	border: 0;
	padding: 20px;
}

.ca-btn,
.ca-btn:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 0 16px;
	border-radius: 0;
	font-family: var(--ca-body-font);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 2px;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	box-shadow: none;
	cursor: pointer;
}

body a.ca-btn--primary,
body a.ca-btn--primary:visited {
	background: var(--ca-primary);
	border: 1.5px solid var(--ca-primary);
	color: #fff;
}
body a.ca-btn--primary:hover,
body a.ca-btn--primary:focus {
	background: var(--ca-brown);
	border-color: var(--ca-brown);
	color: #fff;
}

body a.ca-btn--outline,
body a.ca-btn--outline:visited {
	background: #fff;
	border: 1.5px solid var(--ca-brown);
	color: var(--ca-brown);
}
body a.ca-btn--outline:hover,
body a.ca-btn--outline:focus {
	background: var(--ca-brown);
	color: #fff;
}

body a.ca-sl-link,
body a.ca-sl-link:visited,
body button.ca-sl-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;              /* tap area */
	padding: 0;
	background: none;
	border: 0;
	font-family: var(--ca-body-font);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ca-brown);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
body a.ca-sl-link:hover,
body button.ca-sl-link:hover { color: var(--ca-primary); }

.ca-tick,
.ca-thanks__tick {
	display: inline-block;
	width: 14px;
	height: 8px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg) translate(1px, -2px);
	margin-right: 10px;
}

.ca-chat-icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v12H8l-4 4z'/%3E%3C/svg%3E");
}

/* ---------- 1. Product page button (A) ----------
 * YITH prints #p-{id}.add-request-quote-button.button{...!important}; the ids
 * below out-rank it so the Elementor widget colour (black) is replaced. */
#wrapper #main .yith-ywraq-add-to-quote a.add-request-quote-button.button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	background-color: var(--ca-primary) !important;
	color: #fff !important;
	font-family: var(--ca-body-font);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}
#wrapper #main .yith-ywraq-add-to-quote a.add-request-quote-button.button:hover,
#wrapper #main .yith-ywraq-add-to-quote a.add-request-quote-button.button:focus {
	background-color: var(--ca-brown) !important;
	color: #fff !important;
}

/* ---------- 2. "Added to your shortlist" panel (B) ---------- */
.yith-ywraq-add-to-quote .yith_ywraq_add_item_product_message,
.yith-ywraq-add-to-quote .yith_ywraq_add_item_response_message {
	display: none !important;  /* YITH's own one-line messages */
}
.yith-ywraq-add-to-quote .yith_ywraq_add_item_browse_message a { text-decoration: none; }
.ca-added-panel__title {
	display: flex;
	align-items: center;
	margin: 0 0 6px;
	font-family: var(--ca-body-font);
	font-size: 15px;
	font-weight: 600;
	color: var(--ca-text);
}
.ca-added-panel__text {
	margin: 0 0 16px;
	font-family: var(--ca-body-font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ca-text);
}

/* ---------- 3. Shortlist page list (C, D, E, F) ---------- */
.ca-shortlist .yith-ywraq-before-table,
.ca-shortlist .update-list-wrapper,
.ca-shortlist .return-to-shop { display: none !important; }

.ca-sl-header { margin: 0 0 16px; }
body h1.ca-sl-title { font-size: 30px; } /* desktop = product title size; 28px on mobile */

.ca-shortlist .ywraq-form-table-wrapper.vertical { display: block; }
.ca-shortlist .ywraq-form-table-wrapper .ywraq-before-form,
.ca-shortlist .ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper {
	width: 100%;
	max-width: 100%;
	float: none;
	padding: 0;
	border: 0;
}

.ca-sl-list-form { margin: 0; }
table.ca-sl-list {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border-top: 1px solid var(--ca-text);
	border-bottom: 1px solid var(--ca-text);
}
#yith-ywrq-table-list td {
	text-align: left;
	padding: 16px 0;
	border: 0;
	vertical-align: top;
}
table.ca-sl-list tr + tr td { border-top: 1px solid var(--ca-divider); }
.ca-sl-item__thumb { width: 96px; padding-right: 16px !important; }
.ca-sl-item__thumb img { display: block; width: 80px; height: auto; margin: 0; }
.ca-sl-item__name {
	margin: 0 0 2px;
	font-family: var(--ca-body-font);
	font-size: 15px;
	font-weight: 600;
	color: var(--ca-text);
}
body .ca-sl-item__name a { color: inherit; text-decoration: none; }
.ca-sl-item__remove { font-size: 13px; margin-top: 4px; }

.ca-sl-continue { margin: 8px 0 32px; }
.ca-sl-empty { padding: 8px 0 24px; }

/* ---------- 4. Send section (G, R, S, T, H, I, J) ---------- */
.ca-send { margin: 0 0 40px; }
body h2.ca-send__title { font-size: 30px; }
.ca-send__intro {
	margin: 0 0 20px;
	font-family: var(--ca-body-font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--ca-text);
}
.ca-send__notes { margin: 12px 0 8px; text-align: center; }

.ca-form-toggle {
	display: flex;
	width: 100%;
	justify-content: space-between;
	gap: 12px;
	text-align: left;
	border-top: 1px solid var(--ca-divider);
	margin-top: 8px;
	padding-top: 8px;
}
.ca-form-toggle__arrow {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
	margin-right: 4px;
}
.ca-form-toggle[aria-expanded="true"] .ca-form-toggle__arrow { transform: rotate(-135deg); }

.ca-form-collapse[hidden] { display: none !important; }
.ca-form-collapse__intro {
	margin: 8px 0 16px;
	font-family: var(--ca-body-font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ca-text);
}

.ca-send #yith-ywraq-default-form .form-row {
	width: 100%;
	float: none;
	margin: 0 0 16px;
	padding: 0;
}
.ca-send #yith-ywraq-default-form label {
	font-family: var(--ca-body-font);
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ca-text);
	margin-bottom: 6px;
}
.ca-send #yith-ywraq-default-form label .required { color: var(--ca-text); text-decoration: none; border: 0; }
/* Flatsome hides WooCommerce's "(optional)"; the brief wants it on the message label (H). */
.ca-send #yith-ywraq-default-form label .optional { display: inline !important; font-weight: 400; visibility: visible; }
.ca-send #yith-ywraq-default-form input.input-text,
.ca-send #yith-ywraq-default-form textarea {
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--ca-field-border);
	border-radius: 0;
	box-shadow: none;
	font-family: var(--ca-body-font);
	font-size: 15px;
	color: var(--ca-text);
}
.ca-send #yith-ywraq-default-form textarea { min-height: 110px; }
/* Brief: no greys lighter than #5F5F5F (the theme's placeholder is #ccc). */
body .ca-send #yith-ywraq-default-form input::placeholder,
body .ca-send #yith-ywraq-default-form textarea::placeholder { color: var(--ca-muted) !important; opacity: 1; }

.ca-send #yith-ywraq-default-form input.raq-send-request.ca-btn {
	width: 100%;
	min-height: 54px;
	background: #fff;
	border: 1.5px solid var(--ca-brown);
	color: var(--ca-brown);
	font-family: var(--ca-body-font);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	border-radius: 0;
	margin: 0;
}
.ca-send #yith-ywraq-default-form input.raq-send-request.ca-btn:hover {
	background: var(--ca-brown);
	color: #fff;
}
.ca-recaptcha-notice {
	margin: 8px 0 0;
	font-family: var(--ca-body-font);
	font-size: 12px;
	line-height: 1.5;
	color: var(--ca-muted);
	text-align: center;
}
body .ca-recaptcha-notice a { color: var(--ca-muted); text-decoration: underline; }

/* reCAPTCHA badge hidden on the shortlist page only; notice text shown instead (J). */
body.ca-shortlist-page .grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; }

/* Keep space below the content so the floating chat bubble never covers the last button (J). */
body.ca-shortlist-page #main { padding-bottom: 96px; }
/* The bubble is hidden while the send section/thank-you panel is on screen (JS adds the class). */
body.ca-wa-bubble-hidden #custom-btn-wa { opacity: 0; pointer-events: none; transition: opacity .2s ease; }

/* ---------- 6. Thank-you (K, X, L) ---------- */
.ca-thanks { max-width: 640px; margin: 0 0 40px; }
.ca-thanks__tick {
	display: block;
	width: 40px;
	height: 40px;
	margin: 0 0 16px;
	border: 0;
	border-radius: 50%;
	background: var(--ca-panel);
	transform: none;
	position: relative;
}
.ca-thanks__tick::after {
	content: "";
	position: absolute;
	left: 13px;
	top: 13px;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--ca-text);
	border-bottom: 2px solid var(--ca-text);
	transform: rotate(-45deg);
}
body h1.ca-thanks__title { font-size: 30px; }
.ca-thanks__text {
	margin: 0 0 8px;
	font-family: var(--ca-body-font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--ca-text);
}
body .ca-thanks__ref a { color: var(--ca-brown); text-decoration: underline; }
body h2.ca-thanks__items-title {
	margin: 24px 0 0;
	padding: 0 0 8px;
	font-family: var(--ca-body-font);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ca-text);
	border-bottom: 1px solid var(--ca-text);
}
.ca-sl-sent { list-style: none; margin: 0 0 24px; padding: 0; border-bottom: 1px solid var(--ca-text); }
.ca-sl-sent__item {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 12px 0;
}
.ca-sl-sent__item + .ca-sl-sent__item { border-top: 1px solid var(--ca-divider); }
.ca-sl-sent__thumb { flex: 0 0 56px; }
.ca-sl-sent__thumb img { display: block; width: 56px; height: auto; margin: 0; }
.ca-sl-sent__text { display: flex; flex-direction: column; }
.ca-sl-sent__name { font-family: var(--ca-body-font); font-size: 15px; font-weight: 600; color: var(--ca-text); }
.ca-thanks__continue { margin: 0 0 24px; }
.ca-thanks__help-title { margin: 0 0 4px; font-family: var(--ca-body-font); font-size: 14px; font-weight: 600; color: var(--ca-text); }
.ca-thanks__help-text { margin: 0; font-family: var(--ca-body-font); font-size: 14px; line-height: 1.6; color: var(--ca-text); }
.ca-thanks__help-text .ca-sl-link { min-height: 0; }
body .ca-thanks__help-text a[href^="tel:"] { color: var(--ca-text); text-decoration: none; }

/* ---------- 7. Details page (N, O, P) ---------- */
body .ywraq-view-quote-wrapper header h2 {
	font-family: var(--ca-heading-font);
	font-weight: 500;
	font-size: 30px;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	color: var(--e-global-color-text, var(--ca-text));
}
.ywraq-view-quote-wrapper,
.ywraq-view-quote-wrapper p,
.ywraq-view-quote-wrapper td,
.ywraq-view-quote-wrapper th {
	font-family: var(--ca-body-font);
	color: var(--ca-text);
}
.ywraq-view-quote-wrapper .ywraq-status { color: var(--ca-text); }
.ywraq-view-quote-wrapper .ywraq-admin-message {
	background: var(--ca-panel) !important;
	border: 0 !important;
	padding: 20px !important;
	color: var(--ca-text) !important;
}
.ywraq-view-quote-wrapper .ywraq-admin-message header { display: none; } /* empty "Admin reply:" heading */
.ywraq-view-quote-wrapper .ywraq-admin-message,
.ywraq-view-quote-wrapper .ywraq-admin-message p,
.ywraq-view-quote-wrapper .ywraq-admin-message .message-content {
	font-family: var(--ca-body-font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--ca-text) !important;
	background: transparent;
}
.ywraq-view-quote-wrapper .ywraq-admin-message { background: var(--ca-panel) !important; }
.ywraq-view-quote-wrapper .ywraq-admin-message a { color: var(--ca-brown) !important; text-decoration: underline; }
.ywraq-view-quote-wrapper .product-quantity { display: none; } /* "× 1" */

/* ---------- 5b. Floating WhatsApp panel (Y) ---------- */
.ca-wa-panel {
	position: fixed;
	z-index: 10000;                 /* above #custom-btn-wa (9999) */
	background: #fff;
	color: var(--ca-text);
	box-shadow: 0 8px 32px rgba(26, 26, 26, .18);
	padding: 24px 20px 20px;
	font-family: var(--ca-body-font);
}
.ca-wa-panel[hidden] { display: none !important; }
body h2.ca-wa-panel__title {
	margin: 0 44px 6px 0;   /* clear of the 44px close button */
	font-family: var(--ca-heading-font);
	font-weight: 500;
	font-size: 24px;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ca-text);
}
.ca-wa-panel__intro,
.ca-wa-panel__hours {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ca-muted);
}
.ca-wa-panel__hours { margin: 16px 0 0; text-align: center; }
.ca-wa-panel__options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.ca-wa-panel__options .ca-btn {
	min-height: 48px;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 600;
}
.ca-wa-panel__options .ca-btn:last-child { grid-column: 1 / -1; }
.ca-wa-panel__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 44px;
	color: var(--ca-text);
	cursor: pointer;
}

/* Desktop: small panel just above the chat button (button: right 30px, bottom 30px, 60px). */
@media (min-width: 850px) {
	.ca-wa-panel {
		right: 30px;
		bottom: 104px;
		width: 360px;
		max-width: calc(100vw - 60px);
	}
}

/* Mobile: slides up from the bottom. */
@media (max-width: 849px) {
	.ca-wa-panel {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		padding-bottom: calc(20px + env(safe-area-inset-bottom));
		transform: translateY(100%);
		transition: transform .25s ease;
	}
	.ca-wa-panel.is-open { transform: translateY(0); }
	body h1.ca-sl-title,
	body h2.ca-send__title,
	body h1.ca-thanks__title,
	body .ywraq-view-quote-wrapper header h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.ca-wa-panel,
	.ca-form-toggle__arrow { transition: none; }
}
