/* =========================================================
   SNW My Dogs – Account Page
   ========================================================= */

.snw-my-dogs-page h2 {
	font-size: 24px;
	color: #1a1a2e;
	margin-bottom: 8px;
}

.snw-my-dogs-page > p {
	color: #6b7280;
	margin-bottom: 24px;
}

/* Empty state */
.snw-my-dogs-empty {
	text-align: center;
	padding: 40px 20px;
	background: #f9fafb;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
}

.snw-my-dogs-empty p {
	color: #6b7280;
	margin-bottom: 16px;
}

/* Dog cards grid */
.snw-my-dogs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 20px;
}

/* Individual dog card */
.snw-dog-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	transition: box-shadow 0.2s;
}

.snw-dog-card:hover {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Card header */
.snw-dog-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.snw-dog-card-header h3 {
	margin: 0;
	font-size: 20px;
	color: #1a1a2e;
}

/* Subscription status badge */
.snw-sub-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.snw-sub-badge--active {
	background: #ecfdf5;
	color: #065f46;
}

.snw-sub-badge--on-hold {
	background: #fef9c3;
	color: #854d0e;
}

.snw-sub-badge--pending-cancel {
	background: #fef2f2;
	color: #b91c1c;
}

.snw-sub-badge--one-off {
	background: #f3f4f6;
	color: #6b7280;
}

/* Dog details */
.snw-dog-details {
	margin-bottom: 16px;
}

.snw-dog-detail {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #f3f4f6;
}

.snw-dog-detail:last-child {
	border-bottom: none;
}

.snw-detail-label {
	color: #6b7280;
	font-size: 13px;
	font-weight: 500;
}

.snw-detail-value {
	color: #1a1a2e;
	font-size: 14px;
	font-weight: 500;
}

.snw-detail-value a {
	color: #f67599;
	text-decoration: none;
}

.snw-detail-value a:hover {
	text-decoration: underline;
}

/* Card action buttons */
.snw-dog-card-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f3f4f6;
}

.snw-dog-card-actions .button-secondary {
	background: transparent;
	color: #374151;
	border: 1.5px solid #d1d5db;
	border-radius: 50px;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
}

.snw-dog-card-actions .button-secondary:hover {
	border-color: #f67599;
	color: #f67599;
}

/* ── Edit Form ──────────────────────────────────────────── */

.snw-dog-edit-form {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
}

.snw-dog-edit-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}

.snw-edit-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 4px;
}

.snw-edit-field input,
.snw-edit-field select {
	width: 100%;
	padding: 8px 12px;
	border: 1.5px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	color: inherit;
	background-color: #fff;
	line-height: 1.4;
	box-sizing: border-box;
}

/* Strip browser-native chrome from <select> and add a custom caret so the
   select visually matches the text inputs in the edit form. */
.snw-edit-field select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
}

.snw-edit-field input:focus,
.snw-edit-field select:focus {
	outline: none;
	border-color: #f67599;
	box-shadow: 0 0 0 3px rgba(246, 117, 153, 0.15);
}

.snw-edit-actions {
	display: flex;
	gap: 10px;
}

.snw-edit-actions .button {
	background: #f67599;
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 8px 20px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.snw-edit-actions .button:hover {
	background: #e55c84;
}

.snw-edit-actions .button-secondary {
	background: transparent;
	color: #6b7280;
	border: 1.5px solid #d1d5db;
	border-radius: 50px;
	padding: 7px 18px;
	font-size: 13px;
	cursor: pointer;
}

/* ── Switch Product Form ────────────────────────────────── */

.snw-dog-switch-form {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
}

.snw-dog-switch-form > p {
	font-size: 14px;
	color: #374151;
	margin-bottom: 12px;
}

.snw-switch-products {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
	max-height: 200px;
	overflow-y: auto;
}

.snw-switch-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: #f9fafb;
	border: 1.5px solid #e5e7eb;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s;
}

.snw-switch-option:hover {
	border-color: #f67599;
}

.snw-switch-option input[type="radio"] {
	accent-color: #f67599;
}

.snw-switch-option span {
	font-size: 14px;
	color: #1a1a2e;
}

.snw-switch-option .snw-switch-product-name {
	flex: 1;
}

.snw-switch-option .snw-switch-product-price {
	font-weight: 600;
	color: #f67599;
	white-space: nowrap;
}

.snw-no-switch-options {
	color: #6b7280;
	font-size: 14px;
	text-align: center;
	padding: 12px;
}

.snw-switch-actions {
	display: flex;
	gap: 10px;
}

.snw-switch-actions .button {
	background: #f67599;
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 8px 20px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.snw-switch-actions .button:hover {
	background: #e55c84;
}

.snw-switch-actions .button-secondary {
	background: transparent;
	color: #6b7280;
	border: 1.5px solid #d1d5db;
	border-radius: 50px;
	padding: 7px 18px;
	font-size: 13px;
	cursor: pointer;
}

.snw-switch-option--current {
	border-color: #d1d5db;
	background: #f3f4f6;
	opacity: 0.7;
}

.snw-switch-option--current input[type="radio"] {
	pointer-events: none;
}

.snw-tier-label {
	font-size: 11px;
	font-weight: 400;
	color: #6b7280;
}

/* ── Messages ───────────────────────────────────────────── */

.snw-msg-success {
	display: inline-block;
	margin-top: 8px;
	color: #065f46;
	font-size: 13px;
	font-weight: 500;
}

.snw-msg-error {
	display: inline-block;
	margin-top: 8px;
	color: #b91c1c;
	font-size: 13px;
	font-weight: 500;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
	.snw-my-dogs-grid {
		grid-template-columns: 1fr;
	}

	.snw-dog-edit-fields {
		grid-template-columns: 1fr;
	}

	.snw-dog-card-actions {
		flex-direction: column;
	}

	.snw-dog-card-actions .button-secondary {
		width: 100%;
		text-align: center;
	}
}
