/* My Account → Addresses
 * One symbol, two states: filled star next to a title = this is the default
 * shipping address; outlined star in the actions = make it the default. */

.woocommerce-Address-title {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.woocommerce-Address-title h3 {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.wcms-default-badge {
	display: inline-flex;
	color: var(--theme-link-initial-color, var(--theme-palette-color-1, #f4c430));
}

.wcms-default-badge .wcms-icon--star {
	fill: currentColor;
}

/* Icon-only actions: 32px hit area, 16px glyph */
.wcms-address-title-actions {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}

.wcms-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	color: var(--theme-link-initial-color, var(--theme-palette-color-1, #f4c430));
	transition: background-color .15s ease, color .15s ease;
}

.wcms-action:hover,
.wcms-action:focus-visible {
	background: rgba(0, 0, 0, .05);
	color: var(--theme-link-hover-color, var(--theme-palette-color-2, #d9a400));
}

.wcms-action:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.wcms-action .wcms-icon {
	transition: fill .15s ease;
}

/* Outline → fill on hover: "make this the default" */
.wcms-action--set-default:hover .wcms-icon--star,
.wcms-action--set-default:focus-visible .wcms-icon--star {
	fill: currentColor;
}

.wcms-action--delete:hover,
.wcms-action--delete:focus-visible {
	color: #c0392b;
}

@media (prefers-reduced-motion: reduce) {
	.wcms-action,
	.wcms-action .wcms-icon {
		transition: none;
	}
}

/* Delete confirmation (native <dialog>, theme tokens) */
.wcms-confirm {
	width: min(92vw, 440px);
	padding: 0;
	border: 0;
	border-radius: var(--theme-border-radius, 8px);
	background: var(--theme-palette-color-8, #fff);
	color: var(--theme-text-color, inherit);
	box-shadow: var(--theme-box-shadow, 0 24px 64px rgba(0, 0, 0, .18));
}

.wcms-confirm::backdrop {
	background: rgba(0, 0, 0, .45);
	backdrop-filter: blur(2px);
}

.wcms-confirm[open] {
	animation: wcms-confirm-in .18s ease-out;
}

@keyframes wcms-confirm-in {
	from { opacity: 0; transform: translateY(8px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

.wcms-confirm__inner {
	padding: 28px 28px 24px;
}

.wcms-confirm__title {
	margin: 0 0 14px;
	font-size: 1.25rem;
}

.wcms-confirm__address {
	margin: 0 0 14px;
	padding: 12px 16px;
	border-left: 3px solid var(--theme-palette-color-1, #f4c430);
	background: var(--theme-palette-color-7, #f7f7f7);
	font-style: normal;
	line-height: 1.5;
}

.wcms-confirm__hint {
	margin: 0 0 22px;
	font-size: .9em;
	opacity: .75;
}

.wcms-confirm__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

.wcms-confirm__delete {
	background: #c0392b;
	border-color: #c0392b;
	color: #fff;
}

.wcms-confirm__delete:hover,
.wcms-confirm__delete:focus-visible {
	background: #a93226;
	border-color: #a93226;
	color: #fff;
}

.wcms-confirm__delete.is-busy {
	pointer-events: none;
	opacity: .7;
}

@media (prefers-reduced-motion: reduce) {
	.wcms-confirm[open] {
		animation: none;
	}
}
