/**
 * The Hive Calculator Styles
 *
 * @package Batao
 * @since 1.0.0
 */

/* ==========================================================================
   Variables
   ========================================================================== */

.batao-hive {
    --hive-receipt-bg-color: #fff;
    --hive-receipt-separator-border-bottom: 1px solid #8686AF40;

    margin-top: 60px;
}

/* ==========================================================================
   Loading & Error States
   ========================================================================== */

.batao-hive__loading,
.batao-hive__error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    gap: 20px;
}

.batao-hive__spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--wp--preset--color--lavender-mist);
    border-top-color: var(--wp--preset--color--contrast);
    border-radius: 50%;
    animation: hive-spin 0.8s linear infinite;
}

@keyframes hive-spin {
    to { transform: rotate(360deg); }
}

.batao-hive__retry {
    background: #F81951;
    color: #FFFFFF;
    border: 2px solid #F81951;
    border-radius: var(--batao-border-radius);
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.batao-hive__retry:hover {
    background: transparent;
    color: #F81951;
}

/* ==========================================================================
   Case Cards (uses unified batao-category-button component)
   ========================================================================== */

.batao-hive__cases-wrapper {
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
}

/* Case cards order */
.batao-hive__cases [data-slug="webshop"] {
    order: 1;
}

.batao-hive__cases [data-slug="logistiek"] {
    order: 2;
}

.batao-hive__cases [data-slug="management"] {
    order: 3;
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

.batao-hive__content {
    display: grid;
    grid-template-columns: 1fr 486px;
    gap: 32px;
    align-items: start;
}

.batao-hive__categories {
    min-width: 0;
    order: 1;
}

.batao-hive__receipt {
    order: 2;
}

/* ==========================================================================
   Platform Tabs
   ========================================================================== */

.batao-hive__platform-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--wp--preset--color--lavender-mist);
}

.batao-hive__platform-tabs-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b6b8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.batao-hive__platform-tabs-list {
    display: flex;
    gap: 12px;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

/* Platform tab overrides (uses batao-category-button base) */
.batao-hive__platform-tab {
    font-size: 18px;
    font-weight: 700;
    gap: 0.3rem;
}

.batao-hive__platform-tab .batao-category-button__image {
    width: 36px;
    height: 36px;
}

/* Inline platform tabs (inside solution group) */
.batao-hive__platform-tabs-inline {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.batao-hive__platform-tabs-inline .batao-hive__platform-tab {
    flex: 1 1 auto;
}

/* Platform solutions container */
.batao-hive__platform-solutions {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==========================================================================
   Solution Groups
   ========================================================================== */

.batao-hive__solution-group {
    margin-bottom: 32px;
    background-color: #D8D3E880;
    padding: 31px 35px;
    border-radius: var(--batao-border-radius);
}

.batao-hive__solution-group:last-child {
    margin-bottom: 0;
}

.batao-hive__solution-group-title {
    font-size: 25px;
    font-weight: 700;
    margin: 0 0 22px 0;
}

.batao-hive__solution-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Solution Subgroups (inside webshop group) */
.batao-hive__solution-subgroup {
    margin-bottom: 0;
}

.batao-hive__solution-subgroup:not(:last-child) {
    margin-bottom: 24px;
}

/* Separator after platform tabs */
.batao-hive__separator {
    margin-bottom: 24px;
}

.batao-hive__separator.batao-plus-separator {
    margin: 0 0 24px 0;
    height: 40px;
}

/* Subgroup title (for nested subcategories like Modules) */
.batao-hive__solution-subgroup-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--wp--preset--color--contrast);
    margin: 0 0 16px 0;
}

/* ==========================================================================
   Solution Items (uses unified batao-category-button component)
   ========================================================================== */

/* Hidden input for form functionality */
.batao-hive__solution-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Solution item overrides */
.batao-hive__solution {
    width: 100%;
    cursor: pointer;
    align-items: flex-start;
    /* Align checkbox-to-content gap with icon-to-text gap (0.7rem) */
    /* Checkbox ends at 41px (15px left + 26px width), so padding = 41px + 0.7rem */
    padding-left: calc(41px + 0.7rem);
}

/* Keep checkbox at top when description is expanded */
.batao-hive__solution.batao-category-button--checkbox-left::after {
    top: 15px;
    transform: none;
}

/* Smaller checkbox in solutions */
.batao-hive__solutions .batao-category-button--checkbox-left::after {
    width: 22px;
    height: 22px;
}

.batao-hive__solutions .batao-category-button--checkbox-left.is-active::after {
    background-size: 1rem;
}

/* Solution-specific name styling */
.batao-hive__solution .batao-category-button__name {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.8;
}

/* Solution-specific image sizing */
.batao-hive__solution .batao-category-button__image {
    width: 28px;
    height: 28px;
}

/* Solution icons: #F81951 by default, white on hover/active */
.batao-hive__platform-solutions .batao-category-button__image {
    filter: brightness(0) saturate(100%) invert(22%) sepia(97%) saturate(6063%) hue-rotate(340deg) brightness(99%) contrast(101%);
}

.batao-hive__platform-solutions .batao-hive__solution:hover .batao-category-button__image,
.batao-hive__platform-solutions .batao-hive__solution.is-active .batao-category-button__image {
    filter: brightness(0) invert(1);
}

/* Description dropdown toggle arrow */
.batao-hive__solution-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    outline: none;
    height: 20px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.batao-hive__solution-toggle svg {
    width: 12px;
    height: 12px;
    transition: all 0.2s ease;
}

.batao-hive__solution-toggle svg path {
    stroke: var(--wp--preset--color--contrast);
    transition: stroke 0.2s ease;
}

/* Arrow color matches text when active/hover */
.batao-hive__solution:hover .batao-hive__solution-toggle svg path,
.batao-hive__solution.is-active .batao-hive__solution-toggle svg path {
    stroke: #ffffff;
}

.batao-hive__solution-toggle.is-open {
    transform: rotate(180deg);
}

/* Hidden description by default */
.batao-hive__solution .batao-category-button__description {
    display: none;
    font-size: 14px;
    line-height: 1.4;
}

.batao-hive__solution .batao-category-button__description.is-visible {
    display: block;
}

/* Price element on the right */
.batao-hive__solution-price {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 500;
    margin-left: auto;
    transition: color 0.3s ease;
    line-height: 1.8;
}

.batao-hive__solution:hover .batao-hive__solution-price,
.batao-hive__solution.is-active .batao-hive__solution-price {
    color: #ffffff;
}

/* Read more link */
.batao-hive__solution-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--wp--preset--color--contrast);
    text-decoration: underline;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.batao-hive__solution-link::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    mask-image: url('../icons/arrow-right-sharp-solid-full.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    background-color: currentColor;
    flex-shrink: 0;
}

.batao-hive__solution:hover .batao-hive__solution-link,
.batao-hive__solution.is-active .batao-hive__solution-link {
    color: #ffffff;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.batao-hive__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: var(--wp--preset--color--base);
    border: 2px dashed var(--wp--preset--color--lavender-mist);
    border-radius: var(--batao-border-radius);
    text-align: center;
}

.batao-hive__empty p {
    font-size: 16px;
    color: #6b6b8d;
    margin: 0;
}

/* ==========================================================================
   Receipt Panel (Desktop)
   ========================================================================== */

.batao-hive__receipt {
    position: sticky;
    top: 120px;
    background: var(--hive-receipt-bg-color);
    border-radius: var(--batao-border-radius) var(--batao-border-radius) 0 0;
    padding: 28px 36px;
    padding-bottom: 0;
    box-shadow: 0 4px 10px 5px #0000000D;
    overflow: visible;
}

.batao-hive__receipt-title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.375;
    margin: 0 0 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--wp--preset--color--lavender-mist);
}

.batao-hive__receipt-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
    max-height: 320px;
    overflow-y: auto;
}

.batao-hive__receipt-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 16px;
    border-bottom: var(--hive-receipt-separator-border-bottom);
}

.batao-hive__receipt-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.batao-hive__receipt-group-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.227;
    color: var(--wp--preset--color--contrast);
    margin: 0 0 8px 0;
}

.batao-hive__receipt-group-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.batao-hive__receipt-empty {
    font-size: 14px;
    color: #6b6b8d;
    text-align: center;
    padding: 20px;
    margin: 0;
}

.batao-hive__receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 0;
}

.batao-hive__receipt-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.batao-hive__receipt-group-items .batao-hive__receipt-item:first-child {
    padding-top: 0;
}

.batao-hive__receipt-group-items .batao-hive__receipt-item:last-child {
    padding-bottom: 0;
}

.batao-hive__receipt-item-name {
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.batao-hive__receipt-item .batao-category-button__description {
    font-size: 16px;
    font-weight: 400;
    display: block;
    line-height: 1.3;
}

.batao-hive__receipt-item-price {
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 2.2;
}

.batao-hive__receipt-footer {
    position: relative;
    background: #F6F4FD;
    padding: 20px 36px 28px;
    margin: 0 -36px 0;
    border-radius: 0;
}

.batao-hive__receipt-footer::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    right: 0;
    height: 11px;
    background: url('../icons/receipt-footer.svg') no-repeat center top;
    background-size: 100% 11px;
}

.batao-hive__receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.batao-hive__receipt-total-label,
.batao-hive__receipt-total-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--wp--preset--color--contrast);
}

.batao-hive__receipt-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.batao-hive__reset {
    display: none; /* Temporarily hidden */
    background: transparent;
    color: #6b6b8d;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.batao-hive__reset:hover {
    color: var(--wp--preset--color--contrast);
}

.batao-hive__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #F81951;
    color: #FFFFFF;
    border: 2px solid #F81951;
    border-radius: var(--batao-border-radius);
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.batao-hive__cta::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transition: transform 0.2s ease;
}

.batao-hive__cta:hover {
    background: transparent;
    color: #F81951;
}

.batao-hive__cta:hover::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F81951' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transform: translateX(4px);
}

/* CTA Toggle Active State */
.batao-hive__cta-toggle--active::after {
    transform: rotate(90deg);
}

/* ==========================================================================
   Form Section
   ========================================================================== */

.batao-hive__form-section {
    display: none;
    background: var(--wp--preset--color--base);
    padding: 24px 36px 32px;
    padding-top: 35px; /* Space for zigzag decoration */
    margin: 0 -36px;
    margin-top: 11px; /* Height of zigzag */
    border-radius: 0 0 var(--batao-border-radius) var(--batao-border-radius);
}

.batao-hive__form-section--open {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Keep zigzag visible when form is open */
.batao-hive__receipt-footer:has(+ .batao-hive__form-section--open)::after {
    z-index: 1;
}

/* Add border-radius to receipt when form is open */
.batao-hive__receipt:has(.batao-hive__form-section--open) {
    border-radius: var(--batao-border-radius);
    overflow: hidden;
}

/* Gray CTA button when form is open */
.batao-hive__receipt:has(.batao-hive__form-section--open) .batao-hive__cta {
    background: transparent;
    border-color: #8686AF;
    color: #8686AF;
    opacity: 0.6;
}

.batao-hive__receipt:has(.batao-hive__form-section--open) .batao-hive__cta::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238686AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.batao-hive__form-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.batao-hive__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.batao-hive__form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.batao-hive__form-field {
    display: flex;
    flex-direction: column;
}

.batao-hive__form-field label {
    display: block;
    width: 100%;
    font-size: 1rem;
    font-weight: 700;
    color: var(--wp--preset--color--contrast);
    margin-bottom: 0.5rem;
}

.batao-hive__form-field input {
    width: 100%;
    min-height: 40px;
    padding-left: 1rem;
    font-size: 1rem;
    line-height: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--wp--preset--color--contrast);
    background: var(--wp--preset--color--base);
    border: 1px solid #D9D9D9;
    border-radius: var(--batao-border-radius);
    box-shadow: 0 2px 1px 1px #0000000A;
    box-sizing: border-box;
    transition: border-color 0.2s ease, outline-color 0.2s ease;
}

.batao-hive__form-field input:focus {
    outline: none;
}

.batao-hive__form-field input::placeholder {
    color: #8686AF;
}

@media (min-width: 1024px) {
    .batao-hive__form-field input {
        min-height: 57px;
    }
}

.batao-hive__form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #F81951;
    color: #FFFFFF;
    border: 2px solid #F81951;
    border-radius: var(--batao-border-radius);
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.batao-hive__form-submit:hover {
    background: transparent;
    color: #F81951;
}

.batao-hive__form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.batao-hive__form-submit--loading {
    position: relative;
}

.batao-hive__form-submit--loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.batao-hive__form-message {
    padding: 12px 16px;
    border-radius: var(--batao-border-radius);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.batao-hive__form-message:not(:empty) {
    display: block;
}

.batao-hive__form-message--success {
    background: #E8F5E9;
    color: #2E7D32;
}

.batao-hive__form-message--error {
    background: #FFEBEE;
    color: #C62828;
}

/* ==========================================================================
   Mobile Bottom Bar
   ========================================================================== */

.batao-hive__sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--wp--preset--color--base);
    border-top: 1px solid var(--wp--preset--color--lavender-mist);
    padding: 12px 16px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(53, 53, 101, 0.08);
    cursor: pointer;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.batao-hive__sticky-bar:focus {
    outline: none;
}

.batao-hive__sticky-bar:focus-visible {
    outline: 2px solid var(--wp--preset--color--contrast);
    outline-offset: -2px;
}

.batao-hive__sticky-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1320px;
    margin: 0 auto;
}

.batao-hive__sticky-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.batao-hive__sticky-bar-chevron {
    flex-shrink: 0;
    color: var(--wp--preset--color--contrast);
}

.batao-hive__sticky-bar-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.batao-hive__sticky-bar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--wp--preset--color--contrast);
    line-height: 1.2;
}

.batao-hive__sticky-bar-subtitle {
    font-size: 12px;
    color: #6b6b8d;
    line-height: 1.3;
}

.batao-hive__sticky-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.batao-hive__sticky-bar-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.batao-hive__sticky-bar-label {
    font-size: 11px;
    color: #6b6b8d;
    line-height: 1.2;
}

.batao-hive__sticky-bar-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--wp--preset--color--contrast);
    line-height: 1.2;
}

.batao-hive__sticky-bar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #F81951;
    color: #FFFFFF;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.batao-hive__sticky-bar-cta:hover {
    background: #d91545;
}

.batao-hive__sticky-bar-cta:focus {
    outline: none;
}

.batao-hive__sticky-bar-cta:focus-visible {
    outline: 2px solid var(--wp--preset--color--contrast);
    outline-offset: 2px;
}

/* ==========================================================================
   Mobile Bottom Sheet
   ========================================================================== */

.batao-hive__bottom-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.batao-hive__bottom-sheet--open {
    display: block;
}

.batao-hive__bottom-sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(53, 53, 101, 0.5);
    backdrop-filter: blur(2px);
}

.batao-hive__bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--wp--preset--color--base);
    border-radius: var(--batao-border-radius) var(--batao-border-radius) 0 0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: hive-sheet-up 0.3s ease;
}

@keyframes hive-sheet-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.batao-hive__bottom-sheet-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--wp--preset--color--lavender-mist);
}

.batao-hive__bottom-sheet-close {
    width: auto;
    height: auto;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wp--preset--color--contrast);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.batao-hive__bottom-sheet-close:hover {
    background: var(--wp--preset--color--lavender-mist);
}

.batao-hive__bottom-sheet-close:focus {
    outline: none;
}

.batao-hive__bottom-sheet-close:focus-visible {
    outline: 2px solid var(--wp--preset--color--contrast);
    outline-offset: 2px;
}

.batao-hive__bottom-sheet-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--wp--preset--color--contrast);
    margin: 0;
}

.batao-hive__bottom-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.batao-hive__bottom-sheet-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.batao-hive__bottom-sheet-footer {
    border-top: 2px solid var(--wp--preset--color--contrast);
    padding: 20px 24px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.batao-hive__bottom-sheet-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.batao-hive__bottom-sheet-total-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--wp--preset--color--contrast);
}

.batao-hive__bottom-sheet-total-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--wp--preset--color--contrast);
}

.batao-hive__bottom-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mobile Form Section in Bottom Sheet */
.batao-hive__form-section--mobile {
    margin: 0 -24px;
    padding: 20px 24px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    background: #F6F4FD;
    border-top: 1px solid rgba(134, 134, 175, 0.25);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .batao-hive__content {
        grid-template-columns: 1fr;
    }

    .batao-hive__categories {
        order: 1;
    }

    .batao-hive__receipt {
        display: none;
    }

    .batao-hive__sticky-bar {
        display: block;
    }

    /* Add bottom padding for sticky bar */
    .batao-hive__main {
        padding-bottom: 100px;
    }

    /* Bottom sheet receipt font sizes */
    .batao-hive__receipt-group-title {
        font-size: 19px;
    }

    .batao-hive__receipt-item-info {
        font-size: 15px;
    }

    .batao-hive__receipt-item .batao-category-button__description {
        font-size: 13px;
    }

    /* Bottom sheet footer */
    .batao-hive__bottom-sheet-footer {
        background: #F6F4FD;
        border-top: none;
    }

    .batao-hive__bottom-sheet-total-label,
    .batao-hive__bottom-sheet-total-value {
        font-size: 19px;
    }

    .batao-hive__cta {
        font-size: 17px;
        font-weight: 600;
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Mobile solution variables */
    .batao-hive__solution {
        --hive-solution-checkbox-size: 16px;
        --hive-solution-checkbox-left: 15px;
        --hive-solution-image-size: 23px;
        --hive-solution-gap: 0.7rem;
    }

    .batao-hive__platform-tabs-list {
        flex-direction: column;
        gap: 8px;
    }

    .batao-hive__platform-tab {
        font-size: 15px;
    }

    /* Solution item mobile adjustments */
    .batao-hive__solution {
        padding: 14px 16px 14px calc(var(--hive-solution-checkbox-left) + var(--hive-solution-checkbox-size) + var(--hive-solution-gap));
        display: grid;
        grid-template-columns: var(--hive-solution-image-size) 1fr;
        grid-template-rows: auto auto;
        gap: 4px var(--hive-solution-gap);
        align-items: start;
    }

    /* Smaller checkbox/radio on mobile - aligned with first line */
    .batao-hive__solution.batao-category-button--checkbox-left::after {
        width: var(--hive-solution-checkbox-size);
        height: var(--hive-solution-checkbox-size);
        top: 18px;
        transform: none;
    }

    /* Smaller checkmark icon */
    .batao-hive__solution.batao-category-button--checkbox-left.is-active::after {
        background-size: 0.8rem;
    }

    /* Image in first column, first row */
    .batao-hive__solution .batao-category-button__image {
        width: var(--hive-solution-image-size);
        height: var(--hive-solution-image-size);
        grid-column: 1;
        grid-row: 1;
    }

    /* Content (name + description) in second column, first row */
    .batao-hive__solution .batao-category-button__content {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        gap: 4px;
    }

    .batao-hive__solution .batao-category-button__name {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Description below name (inside content) */
    .batao-hive__solution .batao-category-button__description.is-visible {
        display: block;
        font-size: 13px;
    }

    /* Price in second column, second row */
    .batao-hive__solution-price {
        font-size: 14px;
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        text-align: left;
        margin-left: 0;
    }

    /* Read more link */
    .batao-hive__solution-link {
        font-size: 13px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .batao-hive__solution-group {
        padding: 15px 24px;
    }
}

/* High contrast / reduced motion */
@media (prefers-reduced-motion: reduce) {
    .batao-hive__spinner {
        animation: none;
        border-top-color: var(--wp--preset--color--contrast);
    }

    .batao-hive__bottom-sheet-content {
        animation: none;
    }

    .batao-hive *,
    .batao-hive *::before,
    .batao-hive *::after {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    .batao-hive__sticky-bar,
    .batao-hive__bottom-sheet,
    .batao-hive__reset,
    .batao-hive__cta {
        display: none !important;
    }

    .batao-hive__receipt {
        display: block !important;
        position: static;
        box-shadow: none;
        border: 1px solid #000;
    }

    .batao-hive__content {
        display: block;
    }
}
