/* checkout-map.css */

#domstroy-shipping-app-container {
	margin-bottom: 30px;
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ds-shipping-wrapper {
	background: #1a1a1e;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	border: 1px solid #2d2d35;
	transition: all 0.3s ease;
}

/* Search Box */
.ds-search-container {
	padding: 20px;
	position: relative;
	border-bottom: 1px solid #2d2d35;
}

.ds-search-input-wrapper {
	position: relative;
}

.ds-search-input {
	width: 100%;
	padding: 16px 20px 16px 45px;
	font-size: 16px;
	background: #111111;
	color: #ffffff;
	border: 2px solid #33333b;
	border-radius: 12px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.ds-search-input::placeholder {
	color: #888888;
}

.ds-search-input:focus {
	border-color: #e40046; /* Domstroy accent color */
	box-shadow: 0 0 0 4px rgba(228, 0, 70, 0.1);
}

.ds-search-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #888888;
}

/* Autocomplete Dropdown */
.ds-autocomplete-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #1a1a1e;
	border-radius: 12px;
	border: 1px solid #2d2d35;
	box-shadow: 0 10px 25px rgba(0,0,0,0.5);
	margin-top: 5px;
	z-index: 1000;
	max-height: 250px;
	overflow-y: auto;
	display: none;
}

.ds-autocomplete-results.active {
	display: block;
}

.ds-result-item {
	padding: 12px 20px;
	cursor: pointer;
	border-bottom: 1px solid #2d2d35;
	transition: background 0.2s;
}

.ds-result-item:last-child {
	border-bottom: none;
}

.ds-result-item:hover {
	background: #25252a;
}

.ds-result-title {
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 4px;
}

.ds-result-subtitle {
	font-size: 12px;
	color: #9ba3af;
}

/* Map */
.ds-map-container {
	height: 350px;
	width: 100%;
	background: #111111;
	position: relative;
}

.ds-map {
	width: 100%;
	height: 100%;
	z-index: 1;
}

/* Genius CSS trick to turn standard OSM tiles into beautiful Dark Mode */
.ds-map .leaflet-layer {
	filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* Summary Card (Glassmorphism Dark) */
.ds-summary-card {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(26, 26, 30, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 15px 25px;
	display: flex;
	gap: 30px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	transition: opacity 0.3s ease, transform 0.3s ease;
	opacity: 0;
	pointer-events: none;
}

.ds-summary-card.active {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.ds-summary-item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ds-summary-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #9ba3af;
	margin-bottom: 5px;
}

.ds-summary-value {
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
}

.ds-summary-value.ds-cost {
	color: #e40046;
}

/* Loaders */
.ds-loader {
	display: none;
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border: 2px solid #33333b;
	border-top: 2px solid #e40046;
	border-radius: 50%;
	animation: ds-spin 1s linear infinite;
}

.ds-loader.active {
	display: block;
}

@keyframes ds-spin {
	0% { transform: translateY(-50%) rotate(0deg); }
	100% { transform: translateY(-50%) rotate(360deg); }
}

/* Error Message */
.ds-error-message {
	display: none;
	padding: 15px;
	background: rgba(228, 0, 70, 0.1);
	color: #ff4d6d;
	border-top: 1px solid rgba(228, 0, 70, 0.2);
	font-size: 14px;
	text-align: center;
}

.ds-error-message.active {
	display: block;
}
.domstroy-hidden-checkout-field { display: none !important; }

/* Prevent price wrapping in WooCommerce totals */
.woocommerce-shipping-totals .woocommerce-Price-amount {
	white-space: nowrap;
}

/* Fix WooCommerce notices breaking CSS grid layouts in checkout */
form.checkout.hp-checkout-grid .woocommerce-NoticeGroup {
    grid-column: 1 / -1;
    width: 100%;
}