/* =========================================================
   Booking Panel — Animals Step
   Theme: Maskoten
   @author  RedOcean <https://redocean.pt>
   @version 1.11.1
   ========================================================= */

/* ── Step wrapper ─────────────────────────────────────── */

.rdo-booking-animals {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
}

.rdo-booking-animals__label {
    font-family: "Open Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #7E5B34;
    margin-bottom: 0.9rem;
    letter-spacing: 0.01em;
}

/* ── Animal cards grid — 3 per row ────────────────────── */

.rdo-booking-animals__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .rdo-booking-animals__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

/* ── Animal card ──────────────────────────────────────── */

.rdo-animal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 0.6rem 0.6rem;
    border: 2px solid #EFBE86;
    border-radius: 1rem;
    cursor: pointer;
    background: #ffffff;
    position: relative;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    user-select: none;
    outline: none;
    text-align: center;
}

.rdo-animal-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(239, 76, 36, 0.28);
}

.rdo-animal-card:hover {
    border-color: #EF4C24;
    background: #FFFCEB;
}

.rdo-animal-card.rdo-selected {
    border-color: #EF4C24;
    background: #FFFCEB;
    box-shadow: 0 2px 10px rgba(239, 76, 36, 0.14);
}

/* ── Photo / SVG fallback ─────────────────────────────── */

.rdo-animal-card__photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #EFBE86;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rdo-animal-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rdo-animal-card__photo.rdo-no-photo {
    background-color: #7E5B34;
}

.rdo-animal-card__photo.rdo-no-photo::after {
    content: '';
    position: absolute;
    inset: 22%;
    background-color: #ffffff;
    -webkit-mask: var(--rdo-animal-svg, none) no-repeat center / contain;
            mask: var(--rdo-animal-svg, none) no-repeat center / contain;
}

/* ── Name ─────────────────────────────────────────────── */

.rdo-animal-card__name {
    font-family: "Open Sans", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #7E5B34;
    word-break: break-word;
    line-height: 1.2;
}

/* ── Check indicator ──────────────────────────────────── */

.rdo-animal-card__check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #EFBE86;
    background: #ffffff;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
}

.rdo-animal-card.rdo-selected .rdo-animal-card__check {
    background: #EF4C24;
    border-color: #EF4C24;
}

.rdo-animal-card.rdo-selected .rdo-animal-card__check::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1px;
    width: 6px;
    height: 9px;
    border: 2px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* ── Empty state ──────────────────────────────────────── */

.rdo-booking-animals__none {
    font-family: "Open Sans", sans-serif;
    font-size: 0.82rem;
    color: #a07c52;
    margin: 0;
}

.rdo-booking-animals__cp-link {
    color: #EF4C24;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 0.3em;
}

.rdo-booking-animals__cp-link:hover {
    color: #7E5B34;
}

/* ── Confirm / Cart summary portlet ──────────────────── */

.rdo-confirm-animals {
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid #EFBE86;
}

.rdo-confirm-animals__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #7E5B34;
    margin-bottom: 0.35rem;
}

.rdo-confirm-animals__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.rdo-confirm-animals__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #FFFCEB;
    border: 1px solid #EFBE86;
    border-radius: 2rem;
    padding: 0.2rem 0.6rem 0.2rem 0.25rem;
    font-size: 0.88rem;
    color: #7E5B34;
    font-family: "Open Sans", sans-serif;
}

.rdo-confirm-animals__chip-photo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #EFBE86;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rdo-confirm-animals__chip-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rdo-confirm-animals__chip-photo.rdo-no-photo {
    background-color: #7E5B34;
}

.rdo-confirm-animals__chip-photo.rdo-no-photo::after {
    content: '';
    position: absolute;
    inset: 22%;
    background-color: #ffffff;
    -webkit-mask: var(--rdo-animal-svg, none) no-repeat center / contain;
            mask: var(--rdo-animal-svg, none) no-repeat center / contain;
}


/* =========================================================
   Booking Panel — Full Step Styling (Maskoten Theme)
   Applies to ALL booking steps when this addon is active.
   Mirrors the Customer Panel design language.
   ========================================================= */

/* ── Global booking panel wrapper ──────────────────────── */
.booknetic_booking_public_wrap .booknetic_appointment_step_element,
.booknetic_booking_public_wrap .booknetic_appointment_container_body {
    font-family: "Open Sans", sans-serif !important;
}

/* ── Main panel container ──────────────────────────────── */
.booknetic_booking_public_wrap .booknetic_booking_panel {
    border-radius: 1.6rem !important;
    overflow: hidden !important;
    box-shadow: 0 4px 24px rgba(126, 91, 52, 0.12) !important;
    border: 1px solid #EFBE86 !important;
}

/* ── Step progress / navigation bar ───────────────────── */
.booknetic_booking_public_wrap .booknetic_appointment_step_menu {
    background: #ffffff !important;
    border-bottom: 1px solid #EFBE86 !important;
}

.booknetic_booking_public_wrap .booknetic_appointment_step_element {
    background: #ffffff !important;
    border-right: 1px solid #f5ede0 !important;
    font-family: "Open Sans", sans-serif !important;
}

.booknetic_booking_public_wrap .booknetic_appointment_step_element.booknetic_active_step {
    background: #FFFCEB !important;
    border-bottom: 2px solid #EF4C24 !important;
}

.booknetic_booking_public_wrap .booknetic_appointment_step_element .booknetic_step_number {
    background: #EFBE86 !important;
    color: #5a3e20 !important;
    border-radius: 50% !important;
    font-family: "DynaPuff", system-ui !important;
}

.booknetic_booking_public_wrap .booknetic_appointment_step_element.booknetic_active_step .booknetic_step_number {
    background: #EF4C24 !important;
    color: #ffffff !important;
}

.booknetic_booking_public_wrap .booknetic_appointment_step_element .booknetic_step_title {
    color: #a07c52 !important;
    font-family: "Open Sans", sans-serif !important;
}

.booknetic_booking_public_wrap .booknetic_appointment_step_element.booknetic_active_step .booknetic_step_title {
    color: #7E5B34 !important;
    font-weight: 600 !important;
}

/* ── Step body ──────────────────────────────────────────── */
.booknetic_booking_public_wrap .booknetic_appointment_container_body {
    background: #ffffff !important;
}

/* ── Step header (title inside step) ───────────────────── */
.booknetic_booking_public_wrap .booknetic_head_content_title {
    color: #7E5B34 !important;
    font-family: "DynaPuff", system-ui !important;
}

/* ── Cards — service, staff, location, extra ───────────── */
.booknetic_booking_public_wrap .booknetic_card,
.booknetic_booking_public_wrap .booknetic_service_card,
.booknetic_booking_public_wrap .booknetic_staff_card,
.booknetic_booking_public_wrap .booknetic_location_card,
.booknetic_booking_public_wrap .booknetic_extra_card {
    border: 2px solid #EFBE86 !important;
    border-radius: 1rem !important;
    background: #ffffff !important;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s !important;
    font-family: "Open Sans", sans-serif !important;
}

.booknetic_booking_public_wrap .booknetic_card:hover,
.booknetic_booking_public_wrap .booknetic_service_card:hover,
.booknetic_booking_public_wrap .booknetic_staff_card:hover,
.booknetic_booking_public_wrap .booknetic_location_card:hover,
.booknetic_booking_public_wrap .booknetic_extra_card:hover {
    border-color: #EF4C24 !important;
    box-shadow: 0 4px 16px rgba(239, 76, 36, 0.12) !important;
    transform: translateY(-2px) !important;
}

.booknetic_booking_public_wrap .booknetic_card.booknetic_active,
.booknetic_booking_public_wrap .booknetic_service_card.booknetic_active,
.booknetic_booking_public_wrap .booknetic_staff_card.booknetic_active,
.booknetic_booking_public_wrap .booknetic_location_card.booknetic_active,
.booknetic_booking_public_wrap .booknetic_extra_card.booknetic_active {
    border-color: #EF4C24 !important;
    background: #FFFCEB !important;
    box-shadow: 0 2px 10px rgba(239, 76, 36, 0.14) !important;
}

.booknetic_booking_public_wrap .booknetic_card .booknetic_card_title,
.booknetic_booking_public_wrap .booknetic_card .booknetic_service_title,
.booknetic_booking_public_wrap .booknetic_card .booknetic_staff_name {
    color: #7E5B34 !important;
    font-family: "Open Sans", sans-serif !important;
    font-weight: 600 !important;
}

.booknetic_booking_public_wrap .booknetic_card .booknetic_card_subtitle,
.booknetic_booking_public_wrap .booknetic_card .booknetic_service_duration,
.booknetic_booking_public_wrap .booknetic_card .booknetic_service_price,
.booknetic_booking_public_wrap .booknetic_card .booknetic_staff_role {
    color: #a07c52 !important;
    font-family: "Open Sans", sans-serif !important;
}

/* ── Card images / avatars ──────────────────────────────── */
.booknetic_booking_public_wrap .booknetic_card .booknetic_card_image img,
.booknetic_booking_public_wrap .booknetic_card .booknetic_staff_img img {
    border-radius: 50% !important;
    border: 2px solid #EFBE86 !important;
}

/* ── Calendar ───────────────────────────────────────────── */
.booknetic_booking_public_wrap .booknetic_calendar_header {
    background: #ffffff !important;
    border-bottom: 1px solid #EFBE86 !important;
}

.booknetic_booking_public_wrap .booknetic_calendar_month_title {
    color: #7E5B34 !important;
    font-family: "DynaPuff", system-ui !important;
}

.booknetic_booking_public_wrap .booknetic_calendar_nav button {
    color: #7E5B34 !important;
    background: #ffffff !important;
    border: 1px solid #EFBE86 !important;
    border-radius: 50% !important;
}

.booknetic_booking_public_wrap .booknetic_calendar_nav button:hover {
    background: #FFFCEB !important;
    border-color: #EF4C24 !important;
    color: #EF4C24 !important;
}

.booknetic_booking_public_wrap .booknetic_day_number.booknetic_active_day {
    background: #EF4C24 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
}

.booknetic_booking_public_wrap .booknetic_day_number.booknetic_has_slots {
    color: #7E5B34 !important;
    font-weight: 600 !important;
}

.booknetic_booking_public_wrap .booknetic_day_number:hover {
    background: #FFFCEB !important;
    color: #EF4C24 !important;
    border-radius: 50% !important;
}

/* ── Time slots ─────────────────────────────────────────── */
.booknetic_booking_public_wrap .booknetic_time_slot {
    border: 2px solid #EFBE86 !important;
    border-radius: 2.2rem !important;
    color: #7E5B34 !important;
    background: #ffffff !important;
    font-family: "Open Sans", sans-serif !important;
    font-weight: 500 !important;
    transition: border-color 0.18s, background 0.18s !important;
}

.booknetic_booking_public_wrap .booknetic_time_slot:hover {
    border-color: #EF4C24 !important;
    background: #FFFCEB !important;
}

.booknetic_booking_public_wrap .booknetic_time_slot.booknetic_active {
    background: #EF4C24 !important;
    border-color: #EF4C24 !important;
    color: #ffffff !important;
}

/* ── Information step — form inputs ─────────────────────── */
.booknetic_booking_public_wrap .booknetic_information_label,
.booknetic_booking_public_wrap .booknetic_input_label {
    color: #7E5B34 !important;
    font-weight: 600 !important;
    font-family: "Open Sans", sans-serif !important;
}

.booknetic_booking_public_wrap input[type="text"],
.booknetic_booking_public_wrap input[type="email"],
.booknetic_booking_public_wrap input[type="tel"],
.booknetic_booking_public_wrap input[type="number"],
.booknetic_booking_public_wrap input[type="date"],
.booknetic_booking_public_wrap select,
.booknetic_booking_public_wrap textarea {
    border: 1px solid #EFBE86 !important;
    border-radius: 2.2rem !important;
    color: #7E5B34 !important;
    background: #ffffff !important;
    font-family: "Open Sans", sans-serif !important;
}

.booknetic_booking_public_wrap input[type="text"]:focus,
.booknetic_booking_public_wrap input[type="email"]:focus,
.booknetic_booking_public_wrap input[type="tel"]:focus,
.booknetic_booking_public_wrap input[type="number"]:focus,
.booknetic_booking_public_wrap select:focus,
.booknetic_booking_public_wrap textarea:focus {
    border-color: #EF4C24 !important;
    box-shadow: 0 0 0 3px rgba(239, 76, 36, 0.14) !important;
    outline: none !important;
}

.booknetic_booking_public_wrap textarea {
    border-radius: 1.2rem !important;
}

/* ── Confirm details / cart step ────────────────────────── */
.booknetic_booking_public_wrap .booknetic_portlet,
.booknetic_booking_public_wrap .booknetic_confirm_date_time {
    border: 1px solid #EFBE86 !important;
    border-radius: 1.2rem !important;
    background: #FFFCEB !important;
    font-family: "Open Sans", sans-serif !important;
}

.booknetic_booking_public_wrap .booknetic_portlet_title {
    color: #7E5B34 !important;
    font-weight: 700 !important;
    font-family: "DynaPuff", system-ui !important;
}

.booknetic_booking_public_wrap .booknetic_portlet_item_label {
    color: #a07c52 !important;
    font-family: "Open Sans", sans-serif !important;
}

.booknetic_booking_public_wrap .booknetic_portlet_item_value {
    color: #7E5B34 !important;
    font-weight: 600 !important;
}

/* ── Payment gateway buttons ────────────────────────────── */
.booknetic_booking_public_wrap .booknetic_payment_item {
    border: 2px solid #EFBE86 !important;
    border-radius: 1rem !important;
    background: #ffffff !important;
    transition: border-color 0.18s !important;
}

.booknetic_booking_public_wrap .booknetic_payment_item:hover,
.booknetic_booking_public_wrap .booknetic_payment_item.booknetic_active {
    border-color: #EF4C24 !important;
    background: #FFFCEB !important;
}

/* ── Action buttons (Next / Back) ───────────────────────── */
.booknetic_booking_public_wrap .booknetic_next_btn,
.booknetic_booking_public_wrap .booknetic_booking_btn {
    background: #EF4C24 !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 2.2rem !important;
    font-family: "Open Sans", sans-serif !important;
    font-weight: 600 !important;
    transition: opacity 0.18s, transform 0.18s !important;
}

.booknetic_booking_public_wrap .booknetic_next_btn:hover,
.booknetic_booking_public_wrap .booknetic_booking_btn:hover {
    opacity: 0.88 !important;
    transform: translateY(-1px) !important;
}

.booknetic_booking_public_wrap .booknetic_prev_btn,
.booknetic_booking_public_wrap .booknetic_back_btn {
    background: transparent !important;
    border: 1px solid #EFBE86 !important;
    color: #7E5B34 !important;
    border-radius: 2.2rem !important;
    font-family: "Open Sans", sans-serif !important;
}

.booknetic_booking_public_wrap .booknetic_prev_btn:hover,
.booknetic_booking_public_wrap .booknetic_back_btn:hover {
    background: #FFFCEB !important;
    border-color: #7E5B34 !important;
}

/* ── Price / total row ──────────────────────────────────── */
.booknetic_booking_public_wrap .booknetic_total_price,
.booknetic_booking_public_wrap .booknetic_price_row .booknetic_price_value {
    color: #EF4C24 !important;
    font-weight: 700 !important;
    font-family: "DynaPuff", system-ui !important;
}

/* ── Completion / thank-you step ────────────────────────── */
.booknetic_booking_public_wrap .booknetic_complete_step_icon {
    color: #287C59 !important;
}

.booknetic_booking_public_wrap .booknetic_complete_step_title {
    color: #7E5B34 !important;
    font-family: "DynaPuff", system-ui !important;
}

.booknetic_booking_public_wrap .booknetic_complete_step_subtitle {
    color: #a07c52 !important;
    font-family: "Open Sans", sans-serif !important;
}

/* ── Skeleton placeholder cards (loading state) ────────────
 * Mirrors the real .rdo-animal-card geometry: vertical stack
 * with circular photo (52px), name line, check dot. Uses the
 * same grid as the real list so layout is stable when the real
 * cards swap in.
 *
 * Shimmer is a moving gradient rather than opacity pulse — feels
 * faster to the eye and matches the brand palette (sand/brown).
 */
.rdo-booking-animals__list--skeleton {
    pointer-events: none;
}

.rdo-animal-card-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 0.6rem 0.6rem;
    border: 2px solid #EFBE86;
    border-radius: 1rem;
    background: #ffffff;
    text-align: center;
}

.rdo-animal-card-skeleton__photo,
.rdo-animal-card-skeleton__name,
.rdo-animal-card-skeleton__check {
    background: linear-gradient(
        90deg,
        #f5e6d0 0%,
        #fbf3e3 50%,
        #f5e6d0 100%
    );
    background-size: 200% 100%;
    animation: rdo-animal-skeleton-shimmer 1.2s ease-in-out infinite;
}

.rdo-animal-card-skeleton__photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rdo-animal-card-skeleton__name {
    width: 70%;
    height: 1.2rem;
    border-radius: 4px;
}

.rdo-animal-card-skeleton__check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes rdo-animal-skeleton-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
