/* Active Dogs Booking — frontend widget
   Palette matcher det kommende tema (THEME-SPEC). */

.adb-booking {
	--adb-green: #2E7D4F;
	--adb-green-dark: #1E5436;
	--adb-green-soft: #EAF3EC;
	--adb-ink: #1C2420;
	--adb-line: #E3E8E2;
	margin: 0 0 1.5em;
	max-width: 560px;
}

.adb-booking.adb-busy { opacity: .6; pointer-events: none; }

.adb-loading, .adb-empty { color: #777; padding: 12px 0; }
.adb-error { color: #b32d2e; padding: 12px 0; }

/* --- Kalender --- */
.adb-cal { border: 1px solid var(--adb-line); border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.adb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.adb-cal-head button {
	background: var(--adb-green-soft); color: var(--adb-green-dark); border: 0;
	width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; line-height: 1;
}
.adb-cal-head button:hover { background: var(--adb-green); color: #fff; }
.adb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.adb-cal-wd { text-align: center; font-size: 12px; font-weight: 600; color: #888; padding: 2px 0; }
.adb-cal-pad { }
.adb-cal-day {
	aspect-ratio: 1; border: 1px solid var(--adb-line); border-radius: 10px; background: #fff;
	font-size: 14px; cursor: pointer; color: var(--adb-ink);
}
.adb-cal-day.adb-free:hover { border-color: var(--adb-green); background: var(--adb-green-soft); }
.adb-cal-day.adb-active { background: var(--adb-green); border-color: var(--adb-green); color: #fff; font-weight: 700; }
.adb-cal-day:disabled { background: #f6f6f6; color: #bbb; cursor: default; }
.adb-cal-day.adb-blocked {
	background: #f6efe3; color: #a08b66; cursor: pointer;
	position: relative; border-color: #e7dcc6;
}
.adb-cal-day.adb-blocked:hover { background: #efe3cd; border-color: #d9c79f; }
.adb-cal-day.adb-blocked.adb-active { background: #a08b66; border-color: #a08b66; color: #fff; }
.adb-block-dot {
	position: absolute; top: 2px; right: 4px; font-size: 10px;
	font-weight: 700; opacity: .7; line-height: 1;
}
.adb-cal-note { margin: 8px 0 0; font-size: 13px; color: #a08b66; min-height: 0; }

/* Lukket-dag-besked i slot-området */
.adb-blocked-msg {
	display: flex; gap: 12px; align-items: flex-start;
	background: #f6efe3; border: 1.5px solid #e7dcc6; border-radius: 12px;
	padding: 14px 16px; color: #6b5836;
}
.adb-blocked-msg-icon { font-size: 22px; line-height: 1.2; }
.adb-blocked-msg strong { color: #6b5836; }
.adb-blocked-msg p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }

/* --- Slots --- */
.adb-slots { margin-bottom: 16px; }
.adb-group h4 { margin: 12px 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: #777; }
.adb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.adb-chip {
	display: flex; flex-direction: column; align-items: center; min-width: 76px;
	padding: 8px 12px; border: 1.5px solid var(--adb-line); border-radius: 12px;
	background: #fff; cursor: pointer; transition: border-color .15s, transform .15s;
}
.adb-chip:hover { border-color: var(--adb-green); transform: translateY(-1px); }
.adb-chip.adb-active { border-color: var(--adb-green); background: var(--adb-green-soft); }
.adb-chip-time { font-weight: 700; font-size: 16px; color: var(--adb-ink); }
.adb-chip-price { font-size: 12px; color: #777; }

/* --- Optagede tider (vises på booking-siden) --- */
.adb-chip-busy { cursor: default; background: #f6f8f5; border-style: dashed; }
.adb-chip-busy:hover { transform: none; border-color: var(--adb-line); }
.adb-chip-busy .adb-chip-time { color: #9aa39c; text-decoration: line-through; text-decoration-thickness: 1px; }
.adb-chip-status { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #b0746a; margin-top: 2px; }
.adb-chip-activity { font-size: 12.5px; font-weight: 700; color: var(--adb-green-dark); margin-top: 1px; }

/* --- Valgte tider (multi) --- */
.adb-chip.adb-in-range { border-color: var(--adb-green); background: var(--adb-green-soft); opacity: .85; }
.adb-cal-day.adb-has-hold { box-shadow: inset 0 -3px 0 var(--adb-green); }

.adb-cart-list {
	border: 1.5px solid var(--adb-green); border-radius: 14px; background: var(--adb-green-soft);
	padding: 14px 16px; margin-bottom: 14px;
}
.adb-cart-title { margin: 0 0 10px; font-size: 15px; color: var(--adb-green-dark); }
.adb-cart-item { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.adb-cart-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.adb-cart-item-head strong { color: var(--adb-green-dark); font-size: 14px; }
.adb-item-remove { background: none; border: 0; color: #b32d2e; cursor: pointer; font-size: 14px; line-height: 1; }
.adb-cart-item-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.adb-item-price { color: var(--adb-green-dark); }
.adb-item-msg { margin: 6px 0 0; font-size: 12px; color: #b32d2e; }
.adb-cart-extra-line { background: #f6f6f4; }
.adb-cart-extra-line .adb-cart-item-row { margin-top: 0; }
.adb-extra-label { font-size: 13px; color: #555; }
.adb-cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 2px 0; }
.adb-cart-total strong { font-size: 20px; color: var(--adb-green-dark); }
.adb-cart-note { margin: 6px 0 0; font-size: 12px; color: #777; }

.adb-duration { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.adb-duration button {
	width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--adb-green);
	background: #fff; color: var(--adb-green-dark); cursor: pointer; font-size: 12px; line-height: 1;
}
.adb-duration button:hover:not(:disabled) { background: var(--adb-green); color: #fff; }
.adb-duration button:disabled { opacity: .4; cursor: default; }
.adb-dur-value { font-weight: 700; min-width: 64px; text-align: center; }
.adb-dur-msg { font-size: 12px; color: #b32d2e; }
.adb-price-line { display: flex; gap: 8px; align-items: baseline; }
.adb-price-value { font-size: 20px; color: var(--adb-green-dark); }

/* --- Succesbesked --- */
.adb-success {
	border: 1.5px solid var(--adb-green); border-radius: 12px; background: var(--adb-green-soft);
	color: var(--adb-green-dark); padding: 12px 16px; margin-bottom: 14px; font-weight: 600;
}
.adb-success a { color: var(--adb-green-dark); text-decoration: underline; }

/* --- Extras --- */
.adb-extras {
	margin-bottom: 16px; padding: 16px 18px;
	display: flex; flex-direction: column; gap: 14px;
	background: var(--adb-green-soft);
	border: 1px solid #d6e5da;
	border-radius: 16px;
}
.adb-extra { margin: 0; }
.adb-extra label {
	display: block; font-weight: 600; margin-bottom: 6px;
	color: var(--adb-ink); font-size: 15px;
}
.adb-extra .required { color: var(--adb-green); text-decoration: none; }

/* Pæn select der matcher kalenderens kort: afrundet, custom pil, grøn fokus */
.adb-extra select {
	width: 100%; max-width: 360px;
	appearance: none; -webkit-appearance: none; -moz-appearance: none;
	padding: 11px 40px 11px 14px;
	font-size: 15px; color: var(--adb-ink); line-height: 1.3;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232E7D4F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	border: 1.5px solid var(--adb-line);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.adb-extra select:hover { border-color: #c5d3c8; }
.adb-extra select:focus {
	outline: none; border-color: var(--adb-green);
	box-shadow: 0 0 0 3px rgba(46,125,79,.12);
}

/* Checkbox-extras som en pæn klikbar pille-linje */
.adb-extra input[type=checkbox] {
	width: 18px; height: 18px; accent-color: var(--adb-green);
	vertical-align: middle; margin-right: 8px; cursor: pointer;
}

/* --- Læg-i-kurv-knap (egen styling, så den ikke afhænger af temaets knapper) --- */
.adb-add {
	width: 100%;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--adb-green) !important;
	color: #fff !important;
	padding: 15px 24px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-shadow: none !important;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(46,125,79,.22);
	transition: background .15s, transform .15s, box-shadow .15s;
}
.adb-add:hover:not(:disabled) { background: var(--adb-green-dark) !important; transform: translateY(-1px); }
.adb-add:disabled {
	opacity: 1;
	background: var(--adb-green-soft) !important;
	color: var(--adb-green-dark) !important;
	box-shadow: none;
	cursor: not-allowed;
}

/* --- Betal med klip --- */
.adb-clip-box { margin: 12px 0 16px; padding: 14px 16px; border: 1.5px solid var(--adb-green); border-radius: 14px; background: var(--adb-green-soft); }
.adb-clip-head { font-weight: 700; color: var(--adb-green-dark); font-size: 14px; margin-bottom: 8px; }
.adb-clip-card { width: 100%; padding: 9px 12px; border: 1px solid var(--adb-line); border-radius: 10px; margin-bottom: 6px; background: #fff; }
.adb-clip-name { font-weight: 700; color: var(--adb-ink); }
.adb-clip-window { font-size: 12.5px; color: #5C6660; margin: 2px 0 6px; }
.adb-clip-info { font-size: 13.5px; color: var(--adb-green-dark); font-weight: 600; }
.adb-clip-warn { font-size: 12.5px; color: #b32d2e; margin: 6px 0 0; }
.adb-clip-book { width: 100%; margin-top: 10px; border: 0; border-radius: 999px; background: var(--adb-green);
	color: #fff; font-weight: 700; font-size: 15px; padding: 13px 20px; cursor: pointer; transition: background .15s; }
.adb-clip-book:hover:not(:disabled) { background: var(--adb-green-dark); }
.adb-clip-book:disabled { background: #cdd6cf; cursor: not-allowed; }

@media (max-width: 480px) {
	.adb-chip { min-width: 64px; padding: 6px 10px; }
}

/* "Lagt i kurven"-modal (ligger på document.body, så faste farver — ikke vars) */
.adb-modal-overlay {
	position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
	background: rgba(18, 28, 21, .55); padding: 20px; opacity: 0; transition: opacity .25s ease;
}
.adb-modal-overlay.is-in { opacity: 1; }
.adb-modal {
	position: relative; background: #fff; border-radius: 22px; padding: 36px 30px 26px; max-width: 380px; width: 100%;
	text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
	transform: translateY(16px) scale(.96); transition: transform .28s cubic-bezier(.2, .9, .3, 1.2);
}
.adb-modal-overlay.is-in .adb-modal { transform: none; }
.adb-modal-close {
	position: absolute; top: 12px; right: 15px; background: none; border: 0; font-size: 26px; line-height: 1;
	color: #9aa39c; cursor: pointer; padding: 0;
}
.adb-modal-close:hover { color: #1C2420; }
.adb-modal-check {
	width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 50%; background: #2E7D4F; color: #fff;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(46, 125, 79, .34);
}
.adb-modal-title { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: #1C2420; letter-spacing: -.01em; }
.adb-modal-msg { margin: 0 0 22px; font-size: 14.5px; color: #5C6660; line-height: 1.5; }
.adb-modal-actions { display: flex; flex-direction: column; gap: 8px; }
.adb-modal-primary {
	display: block; background: #2E7D4F; color: #fff !important; font-weight: 700; font-size: 15px; padding: 14px 20px;
	border: 0; border-radius: 999px; text-decoration: none; cursor: pointer; transition: background .15s;
}
.adb-modal-primary:hover { background: #1E5436; }
.adb-modal-secondary { background: none; border: 0; color: #5C6660; font-weight: 600; font-size: 14px; padding: 8px; cursor: pointer; }
.adb-modal-secondary:hover { color: #1C2420; }

/* Gentag ugentligt */
.adb-repeat-box {
	margin-top: 14px; padding: 14px 16px; border: 1px dashed #cdd8cf; border-radius: 14px; background: #f6faf6;
}
.adb-repeat-head { font-weight: 700; color: var(--adb-green-dark); font-size: 14px; }
.adb-repeat-help { font-size: 12.5px; color: #5C6660; margin: 4px 0 11px; line-height: 1.45; }
.adb-repeat-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adb-repeat-label { font-size: 13px; color: var(--adb-ink); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.adb-repeat-weeks { padding: 7px 9px; border-radius: 9px; border: 1px solid #cdd8cf; font-size: 14px; }
.adb-repeat-btn {
	background: var(--adb-green); color: #fff; font-weight: 700; font-size: 13.5px; border: 0;
	padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background .15s;
}
.adb-repeat-btn:hover { background: var(--adb-green-dark); }
.adb-repeat-msg { margin: 11px 0 0; font-size: 13px; color: var(--adb-green-dark); font-weight: 600; line-height: 1.45; }
