/* Ajapnyakmc Core — Elementor widgets. Low-specificity defaults; widget controls override them. */

.ajap-el-placeholder {
	padding: 18px;
	border: 1px dashed #c3c4c7;
	border-radius: 4px;
	background: #f6f7f7;
	color: #50575e;
	font-size: 13px;
	text-align: center;
}

/* ------------------------------------------------------------------ logo */
.ajap-logo {
	line-height: 0;
}

.ajap-logo__image {
	display: inline-block;
	max-width: 150px;
	vertical-align: middle;
}

.ajap-logo__image img {
	display: block;
	width: 100%;
	height: auto;
	transition: opacity 0.3s;
}

/* ----------------------------------------------------------- media grid */
.ajap-media-grid {
	--ajap-cols: 4;
	--ajap-gap: 10px;
}

/* No-JS fallback: CSS columns. */
.ajap-media-grid__items {
	column-count: var(--ajap-cols);
	column-gap: var(--ajap-gap);
}

.ajap-media-grid__item {
	position: relative;
	display: block;
	overflow: hidden;
	break-inside: avoid;
	margin-bottom: var(--ajap-gap);
	line-height: 0;
}

.ajap-media-grid__img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.4s ease;
}

.ajap-media-grid__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.25);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

a.ajap-media-grid__item::before {
	/* magnifier icon */
	content: "";
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2342499b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.2-4.2M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 22px no-repeat;
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.ajap-media-grid__item:hover::after,
.ajap-media-grid__item:focus-visible::after,
a.ajap-media-grid__item:hover::before,
a.ajap-media-grid__item:focus-visible::before {
	opacity: 1;
	transform: none;
}

.ajap-media-grid__item:hover .ajap-media-grid__img {
	transform: scale(1.04);
}

/* JS masonry: columns filled by the script. */
.ajap-media-grid.is-masonry .ajap-media-grid__items {
	display: flex;
	align-items: flex-start;
	gap: var(--ajap-gap);
	column-count: auto;
}

.ajap-media-grid.is-masonry .ajap-media-grid__col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--ajap-gap);
}

.ajap-media-grid.is-masonry .ajap-media-grid__item {
	margin-bottom: 0;
}

.ajap-media-grid__pool[hidden],
.ajap-media-grid__more[hidden] {
	display: none !important;
}

.ajap-media-grid__footer {
	margin-top: 20px;
	text-align: center;
}

.ajap-media-grid__more {
	display: inline-block;
	padding: 8px 15px;
	border: 0;
	border-radius: 3px;
	background-color: #605be5;
	color: #fff;
	font-size: 15px;
	line-height: 1.6;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ajap-media-grid__more:focus-visible {
	outline: 2px solid #42499b;
	outline-offset: 2px;
}

/* --------------------------------------------------------- product price */
.ajap-product-price {
	color: #605be5;
	font-size: 25px;
}

.ajap-product-price del {
	color: #a3a3a3;
	opacity: 1;
}

.ajap-product-price ins {
	margin-left: 5px;
	text-decoration: none;
}

/* ---------------------------------------------------------- post content */
.ajap-post-content {
	color: #777;
	font-size: 14px;
}

/* ------------------------------------------------------------- checkout
   Mirrors the look the checkout had with Royal Elementor Addons defaults. */
.elementor-widget-ajap-checkout ul {
	padding: 0;
}

.elementor-widget-ajap-checkout form .form-row {
	margin: 0;
}

.elementor-widget-ajap-checkout .form-row:not(.place-order) {
	margin-top: 10px !important;
}

.elementor-widget-ajap-checkout .col2-set .col-1,
.elementor-widget-ajap-checkout .col2-set .col-2 {
	float: none;
	width: 100%;
}

.elementor-widget-ajap-checkout .col-1,
.elementor-widget-ajap-checkout .col-2,
.elementor-widget-ajap-checkout .ajap-checkout__review-inner,
.elementor-widget-ajap-checkout .woocommerce-checkout #payment,
.elementor-widget-ajap-checkout .woocommerce-order-details,
.elementor-widget-ajap-checkout .woocommerce-form-coupon {
	padding: 10px;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	background-color: #fff;
}

.elementor-widget-ajap-checkout .woocommerce-order-details {
	margin-bottom: 34px;
}

.ajap-checkout--vertical .col-1,
.ajap-checkout--vertical .col-2,
.ajap-checkout--vertical .ajap-checkout__review-inner {
	margin-bottom: 34px;
}

/* Two-column layout */
.ajap-checkout--horizontal .ajap-checkout__customer {
	display: flex;
	align-items: flex-start;
	gap: 34px;
}

.ajap-checkout--horizontal .ajap-checkout__customer > .col2-set,
.ajap-checkout--horizontal .ajap-checkout__review {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.ajap-checkout--horizontal .col-1,
.ajap-checkout--horizontal .ajap-checkout__review-inner {
	margin-bottom: 34px;
}

@media (max-width: 767px) {
	.ajap-checkout--horizontal .ajap-checkout__customer {
		flex-direction: column;
		gap: 0;
	}

	.ajap-checkout--horizontal .ajap-checkout__customer > .col2-set,
	.ajap-checkout--horizontal .ajap-checkout__review {
		width: 100%;
	}
}

.ajap-checkout__review {
	overflow: hidden;
}

.woocommerce-checkout .ajap-checkout__review-inner #order_review,
.woocommerce-checkout .ajap-checkout__review-inner #order_review_heading {
	float: none;
	width: auto;
}

/* Headings */
.elementor-widget-ajap-checkout .woocommerce-billing-fields h3,
.elementor-widget-ajap-checkout #ship-to-different-address,
.elementor-widget-ajap-checkout #order_review_heading,
.elementor-widget-ajap-checkout .woocommerce-order-details__title,
.elementor-widget-ajap-checkout .woocommerce-column__title,
.elementor-widget-ajap-checkout .woocommerce-additional-fields h3 {
	color: #222;
	font-weight: 400;
}

/* Labels */
.elementor-widget-ajap-checkout .col2-set label,
.elementor-widget-ajap-checkout .checkout_coupon p:first-child {
	color: #787878;
}

/* Fields */
.elementor-widget-ajap-checkout .input-text {
	padding: 10px;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	background-color: #fff;
	color: #222;
}

.elementor-widget-ajap-checkout .input-text:focus {
	color: #222;
}

.elementor-widget-ajap-checkout select {
	padding: 10px;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	background-color: #fff;
}

.elementor-widget-ajap-checkout .col2-set .select2-container {
	padding: 10px;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	background-color: #fff;
}

.elementor-widget-ajap-checkout .col2-set .select2-container span {
	background-color: #fff;
}

.elementor-widget-ajap-checkout .select2-container--focus span,
.elementor-widget-ajap-checkout .select2-container--default .select2-selection--single {
	border: none !important;
	outline: none !important;
}

.elementor-widget-ajap-checkout .select2-selection {
	position: relative;
}

.elementor-widget-ajap-checkout .select2-container .select2-selection--single .select2-selection__rendered {
	padding-left: 0;
}

.elementor-widget-ajap-checkout textarea {
	height: 100px;
}

/* Notices */
.elementor-widget-ajap-checkout .woocommerce-message,
.elementor-widget-ajap-checkout .woocommerce-info,
.elementor-widget-ajap-checkout .woocommerce-error {
	padding: 13px 25px 13px 63px;
	border: none;
	border-radius: 4px;
	background-color: #605be5;
	color: #fff;
}

.elementor-widget-ajap-checkout .woocommerce-message a,
.elementor-widget-ajap-checkout .woocommerce-info a,
.elementor-widget-ajap-checkout .woocommerce-error a {
	color: #fff;
}

.elementor-widget-ajap-checkout .woocommerce-message::before,
.elementor-widget-ajap-checkout .woocommerce-info::before,
.elementor-widget-ajap-checkout .woocommerce-error::before {
	top: 13px;
	left: 25px;
	font-size: 18px;
}

.elementor-widget-ajap-checkout .woocommerce-message::before { color: #fff; }
.elementor-widget-ajap-checkout .woocommerce-info::before { color: #30b5ff; }
.elementor-widget-ajap-checkout .woocommerce-error::before { color: #ff19fd; }

/* Order table */
.elementor-widget-ajap-checkout table.shop_table {
	margin: 0;
	border-collapse: collapse;
}

.elementor-widget-ajap-checkout #order_review {
	border: 1px solid #e8e8e8;
	border-radius: 4px;
}

.elementor-widget-ajap-checkout #order_review table {
	border: none !important;
}

.elementor-widget-ajap-checkout table.woocommerce-orders-table th,
.elementor-widget-ajap-checkout table.shop_table thead th,
.elementor-widget-ajap-checkout table.shop_table tfoot th,
.elementor-widget-ajap-checkout table.shop_table td {
	padding: 10px;
	border: 1px solid #e8e8e8;
	background-color: #fff;
	color: #787878;
	text-align: start;
}

.elementor-widget-ajap-checkout #order_review thead th:first-child { border-left-style: none !important; border-top-style: none !important; }
.elementor-widget-ajap-checkout #order_review thead th:last-child { border-right-style: none !important; border-top-style: none !important; }
.elementor-widget-ajap-checkout #order_review tbody td:first-child { border-left-style: none !important; }
.elementor-widget-ajap-checkout #order_review tbody td:last-child { border-right-style: none !important; }
.elementor-widget-ajap-checkout #order_review tfoot tr th:first-child { border-left-style: none !important; }
.elementor-widget-ajap-checkout #order_review tfoot tr td:last-child { border-right-style: none !important; }
.elementor-widget-ajap-checkout #order_review tfoot tr:last-child td,
.elementor-widget-ajap-checkout #order_review tfoot tr:last-child th { border-bottom-style: none !important; }

/* Payment */
.elementor-widget-ajap-checkout .woocommerce-checkout #payment ul.payment_methods {
	border-color: #e8e8e8;
}

.elementor-widget-ajap-checkout ul.payment_methods li.wc_payment_method .input-radio {
	margin-right: 10px !important;
}

.elementor-widget-ajap-checkout #payment .payment_box {
	background-color: #f6f6f6;
}

.elementor-widget-ajap-checkout #payment .payment_box::before {
	border-bottom-color: #f6f6f6;
}

.elementor-widget-ajap-checkout #payment .woocommerce-privacy-policy-link,
.elementor-widget-ajap-checkout #payment .woocommerce-privacy-policy-link:hover {
	color: #605be5;
}

/* Buttons */
.elementor-widget-ajap-checkout .place-order button,
.elementor-widget-ajap-checkout .checkout_coupon button {
	margin: 0;
	padding: 12px 25px;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	background-color: #605be5;
	color: #fff;
	font-size: 15px;
	transition-duration: 0.3s;
}

.elementor-widget-ajap-checkout .place-order button:hover,
.elementor-widget-ajap-checkout .checkout_coupon button:hover {
	background-color: #605be5;
	color: #fff;
}

.elementor-widget-ajap-checkout .checkout_coupon button {
	width: 100%;
	padding: 10px;
}

.elementor-widget-ajap-checkout .checkout_coupon .form-row-first { width: 80%; }
.elementor-widget-ajap-checkout .checkout_coupon .form-row-last { width: 18%; }
.elementor-widget-ajap-checkout .checkout_coupon p:first-child { margin: 0; }
