/**
 * @purpose Shared primary and secondary action appearance across KASA storefront pages.
 * @date 2026-11-27
 * @file app/design/frontend/codeDESIGN/M2_custom/web/css/codedesign_buttons.css
 * @copyright Copyright (C) 2026 Milos Mandic | codeDESIGN
 * @author Milos Mandic | codeDESIGN
 */
/* codeDESIGN - codedesign_buttons.css */
@charset "utf-8";

/* COMPARISON THIN ICON FONT */
@font-face {
	font-family: "Font Awesome 6 Pro";
	font-style: normal;
	font-weight: 100;
	font-display: block;
	src: url("../vendor/fontawesome-pro/webfonts/fa-thin-100.woff2") format("woff2");
}





/* STOREFRONT PRIMARY AND SECONDARY ACTIONS */
body.kasa_custom_theme main.page-main :is(button.action, a.action):not(:is(.action-close, .close, .toggle, .switch, .sorter-action, .next, .previous, .select-all, .skip)),
body.kasa_custom_theme main.page-main :is(a.kasa_catalog_configure, button.kasa_catalog_cart, button.kasa_product_cart, button.kasa_product_gallery_zoom, button.kasa_checkout_review_back, button.kasa_checkout_review_confirm, a.kasa_product_return_link),
body.kasa_custom_theme button.kasa_product_mobile_action {
	--kasa_button_fill: var(--kasa_coal);
	--kasa_button_hover: #1e2021;
	background: var(--kasa_button_fill) !important;
	border: 1px solid var(--kasa_button_fill) !important;
	border-radius: 0px;
	margin: 0px 0px 0px 0px;
	padding: 11px 16px 11px 16px !important;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 700;
	color: #ffffff !important;
	text-align: center;
	box-shadow: none !important;
	box-sizing: border-box;
	min-height: 48px !important;
	line-height: 24px !important;
	text-decoration: none !important;
	vertical-align: middle;
	white-space: normal;
}
body.kasa_custom_theme main.page-main :is(button.action.primary, a.action.primary, button.action.tocart, button.action.checkout, button.action.apply, button.action.select, a.kasa_catalog_configure, button.kasa_catalog_cart, button.kasa_product_cart, button.kasa_checkout_review_confirm, a.kasa_product_return_link),
body.kasa_custom_theme button.kasa_product_mobile_action {
	--kasa_button_fill: var(--kasa_red);
	--kasa_button_hover: var(--kasa_red_hover);
}
body.kasa_custom_theme main.page-main :is(button.action.cancel, a.action.cancel, button.action.back, a.action.back, button.action.reset, button.action.update, a.action.continue, button.action.continue) {
	--kasa_button_fill: var(--kasa_coal);
	--kasa_button_hover: #1e2021;
}
body.kasa_custom_theme main.page-main :is(button.action, a.action):not(:is(.action-close, .close, .toggle, .switch, .sorter-action, .next, .previous, .select-all, .skip)):hover,
body.kasa_custom_theme main.page-main :is(a.kasa_catalog_configure, button.kasa_catalog_cart, button.kasa_product_cart, button.kasa_product_gallery_zoom, button.kasa_checkout_review_back, button.kasa_checkout_review_confirm, a.kasa_product_return_link):hover,
body.kasa_custom_theme button.kasa_product_mobile_action:hover {
	background: var(--kasa_button_hover) !important;
	border-color: var(--kasa_button_hover) !important;
	color: #ffffff !important;
}
body.kasa_custom_theme main.page-main :is(button.action, a.action, a.kasa_catalog_configure, button.kasa_catalog_cart, button.kasa_product_cart, button.kasa_product_gallery_zoom, button.kasa_checkout_review_back, button.kasa_checkout_review_confirm, a.kasa_product_return_link):focus-visible,
body.kasa_custom_theme button.kasa_product_mobile_action:focus-visible {
	outline: 3px solid var(--kasa_red);
	outline-offset: 3px;
}



/* STOREFRONT TEXT LINKS AND ICON ACTIONS */
body.kasa_custom_theme a.action.paypal.additional {
	display: none !important;
}
body.kasa_custom_theme main.page-main a.action.tocompare::before {
	content: none;
}
body.kasa_custom_theme main.page-main a.action.tocompare > span {
	width: 1px;
	height: 1px;
	border: 0px;
	position: absolute;
	margin: -1px -1px -1px -1px;
	padding: 0px 0px 0px 0px;
	overflow: hidden;
	clip: rect(0px, 0px, 0px, 0px);
	clip-path: inset(50%);
	white-space: nowrap;
}
body.kasa_custom_theme main.page-main a.action.tocompare::after {
	display: inline-block;
	font: 100 14px/1 "Font Awesome 6 Pro";
	color: inherit;
	content: "\e13a" / "";
	flex: 0 0 auto;
}



/* STOREFRONT PURCHASE ROW AND COMPACT CONTENT LINKS */
body.kasa_custom_theme.kasa_product div.kasa_product_buy div.field.qty input.qty {
	height: 48px;
}
body.kasa_custom_theme.kasa_product button.kasa_product_cart {
	justify-content: space-between;
}
body.kasa_custom_theme main.page-main div.checkout-agreement button.action {
	--kasa_button_fill: transparent;
	--kasa_button_hover: transparent;
	background: transparent !important;
	border: 0px !important;
	padding: 0px 0px 0px 0px !important;
	display: inline;
	font-weight: inherit;
	color: inherit !important;
	min-height: 0px !important;
	text-align: left;
	text-decoration: underline !important;
}
body.kasa_custom_theme main.page-main :is(button.action, button.kasa_product_cart, button.kasa_catalog_cart, button.kasa_product_gallery_zoom):disabled,
body.kasa_custom_theme button.kasa_product_mobile_action:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}



/* PRODUCT CARD ACTION ROWS */
body.kasa_custom_theme main.page-main div.kasa_catalog_card_actions {
	display: grid;
	grid-template-columns: minmax(0px, 1fr) max-content;
	align-items: stretch;
	gap: 12px;
}
body.kasa_custom_theme main.page-main div.kasa_catalog_card_actions > form,
body.kasa_custom_theme main.page-main div.kasa_catalog_card_actions > a.kasa_catalog_configure,
body.kasa_custom_theme main.page-main div.kasa_catalog_card_actions > div.kasa_recommendations_choice {
	max-width: 100%;
	margin: 0px 0px 0px 0px;
	display: flex;
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
}
body.kasa_custom_theme main.page-main div.kasa_catalog_card_actions > div.actions-secondary {
	max-width: 100%;
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	grid-column: 1;
	grid-row: 1;
	min-width: 0px;
	gap: 12px;
}
body.kasa_custom_theme main.page-main div.kasa_catalog_card_actions :is(button.kasa_catalog_cart, a.kasa_catalog_configure, a.action) {
	max-width: 100%;
	padding: 7px 8px 7px 8px !important;
	font-size: 13px !important;
	line-height: 18px !important;
	min-width: 0px;
	min-height: 38px !important;
}
body.kasa_custom_theme main.page-main div.kasa_catalog_card_actions > div.actions-secondary > a.action {
	flex: 1 1 auto;
}
body.kasa_custom_theme main.page-main div.kasa_catalog_card_actions > div.actions-secondary > a.action.tocompare {
	width: 48px;
	min-width: 48px;
	flex: 0 0 48px;
}



/* PRODUCT CARD ACTIONS - TABLET AND MOBILE */
@media (max-width: 1199px) {

	body.kasa_custom_theme main.page-main div.kasa_catalog_card_actions {
		grid-template-columns: minmax(0px, 1fr);
		gap: 12px;
	}
	body.kasa_custom_theme main.page-main div.kasa_catalog_card_actions > form,
	body.kasa_custom_theme main.page-main div.kasa_catalog_card_actions > a.kasa_catalog_configure,
	body.kasa_custom_theme main.page-main div.kasa_catalog_card_actions > div.kasa_recommendations_choice {
		grid-column: 1;
		grid-row: 2;
	}
	body.kasa_custom_theme main.page-main div.kasa_catalog_card_actions > div.actions-secondary {
		flex-direction: column;
		align-items: flex-end;
		grid-column: 1;
		grid-row: 1;
		justify-self: end;
		gap: 12px;
	}
	body.kasa_custom_theme main.page-main div.kasa_catalog_card_actions :is(button.kasa_catalog_cart, a.kasa_catalog_configure, a.action) {
		font-size: 14px !important;
		line-height: 20px !important;
	}

}
