.aam-google-address {
	margin: 0 0 20px;
	padding: 16px 18px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.aam-google-address__label {
	display: block;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #0f172a;
}

.aam-google-address__field {
	position: relative;
	display: block;
}

.aam-google-address__autofill-trap {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.aam-google-address__input::-webkit-contacts-auto-fill-button,
.aam-google-address__input::-webkit-credentials-auto-fill-button {
	visibility: hidden !important;
	display: none !important;
	pointer-events: none !important;
	position: absolute !important;
	right: 0 !important;
}

.aam-google-address__field::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 14px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	background: no-repeat center / contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 1;
}

.aam-google-address__input.form-control,
.aam-google-address__input {
	display: block;
	width: 100%;
	height: 44px;
	padding: 10px 14px 10px 40px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
	font-size: 15px;
	line-height: 1.4;
	color: #0f172a;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aam-google-address__input:focus {
	border-color: #4285f4;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}

.aam-google-address__input--filled {
	border-color: #34a853;
	background: #f7fff9;
}

.aam-google-address__attribution {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin-top: 10px;
	min-height: 18px;
}

.aam-google-address__powered {
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.01em;
	color: #70757a;
}

.aam-google-address__google-wordmark {
	display: inline-flex;
	align-items: baseline;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.aam-google-address__google-wordmark .aam-g-blue { color: #4285f4; }
.aam-google-address__google-wordmark .aam-g-red { color: #ea4335; }
.aam-google-address__google-wordmark .aam-g-yellow { color: #fbbc05; }
.aam-google-address__google-wordmark .aam-g-green { color: #34a853; }

.aam-google-address__attached {
	box-shadow: inset 0 0 0 1px rgba(66, 133, 244, 0.28);
}

/* Pac container above Journal/Bootstrap layers */
.pac-container {
	z-index: 2147483000 !important;
	border-radius: 8px !important;
	border: 1px solid #e2e8f0 !important;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12) !important;
	margin-top: 4px !important;
	font-family: inherit !important;
}

.pac-item {
	padding: 8px 12px !important;
	line-height: 1.35 !important;
	cursor: pointer;
}

.pac-item:hover,
.pac-item-selected {
	background: #f1f5f9 !important;
}

/* Journal 3 quick checkout spacing */
.quick-checkout .aam-google-address,
.journal-checkout .aam-google-address,
.checkout-section .aam-google-address {
	margin-top: 8px;
}

/* Bootstrap horizontal forms (admin + default storefront): keep box in the input column */
.aam-google-address-row > .aam-google-address,
.aam-google-address--inline {
	margin-bottom: 0;
	max-width: 100%;
}

.aam-google-address-row > label.control-label,
.aam-google-address-row > label.col-form-label {
	padding-top: 18px;
}

#content .aam-google-address {
	max-width: 100%;
}

@media (max-width: 767px) {
	.aam-google-address {
		padding: 14px;
	}

	.aam-google-address__input.form-control,
	.aam-google-address__input {
		height: 42px;
		font-size: 16px;
	}
}
