/*
 * Main container for the whole page.
 * Sets up a flexbox column layout to arrange header, main content, and footer vertically.
 * The h-100 class ensures the body takes up the full viewport height.
 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: white;
}

/*
 * Styles for the main content area.
 * The flex-grow-1 class makes this section expand to fill all available space,
 * pushing the footer to the bottom.
 * We also use flexbox to perfectly center the card both horizontally and vertically.
 */
.main-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Custom card styling for aesthetics */
.card-custom {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

/* Custom card styling for aesthetics */
.card-max {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    width: 100%;
    padding: 2rem;
}

/* Form container padding */
.form-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* Header title styling */
.header-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.text-color-purple {
    color: #522d8c;
}

.form-control:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: #8B5CF6;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(82, 45, 140, .50);
}
    /* Default styles for mobile devices (less than 576px) */
.magentofast-title {
    font-size: 1rem;
}

.magentofast-subtitle {
    font-size: 0.875rem;
}

.magentofast-logo {
    height: 40px;
}

.btn-hover-orange:hover {
    background-color: #ee653c !important;
    color: white !important;
    border-color: #ee653c !important;
}

/* Custom gradient for hero section as Bootstrap doesn't have direct gradient utilities */
.hero-gradient {
    background: linear-gradient(to right, #522d8c, #8B5CF6); /* from-indigo-600 to-purple-700 */
}
.secondary-cta-gradient {
    background: linear-gradient(to right, #522d8c, #8B5CF6);
}
.rounded-pill-custom {
    border-radius: 50rem !important; /* Equivalent to Tailwind's rounded-full */
}
.text-indigo-600 {
    color: #522d8c;
}

.menu-float {
    float: right;
}

.logo-float {
    float: left;
}

.dropdown-menu-fix {
    z-index: 1051 !important; /* A value higher than Bootstrap's default modal z-index of 1050 */
}

.overflow-safari-fix {
    overflow: visible !important;
}

.turbo-progress-bar {
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(to right, #522d8c, #8B5CF6);
    z-index: 2147483647; /* The maximum positive value for a 32-bit signed binary integer 🤓 */
    transition:
            width ${ProgressBar.animationDuration}ms ease-out,
            opacity ${ProgressBar.animationDuration / 2}ms ${ProgressBar.animationDuration / 2}ms ease-in;
    transform: translate3d(0, 0, 0);
}

.login-form {
    display: block;
    margin-top: 0em;
    unicode-bidi: isolate;
}

.btn-primary.color-purple {
    background-color: #522d8c; /* A shade of green */
    border-color: #3d2166;
}

.btn-primary.color-purple:focus {
    background-color: #8B5CF6; /* A shade of green */
    border-color: #3d2166;
}

.bg-purple {
    background-color: #522d8c !important;
    color: white;
}

a {
    color:#3d2166;
}

a:focus {
    color:#8B5CF6;
}

.footer-purple-liniar-gradient {
    background: linear-gradient(to bottom, #3d2166, #29163c);
}

.form-check {
    padding-left: 0;
}

.btn-outline-purple
{
    --bs-btn-color: #3d2166;
    --bs-btn-border-color: #3d2166;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #3d2166;
    --bs-btn-hover-border-color: #3d2166;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #3d2166;
    --bs-btn-active-border-color: #3d2166;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #3d2166;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #3d2166;
    --bs-gradient: none;
}

.form-check-input:checked {
    background: #3d2166;
    color: white;
}

.icon-mini {
    width: 25px;
}

.btn-menu-top
{
    margin-top: 0;
}

.form-check-input {
    margin-left: 10px !important;
    margin-right: 10px;
}

.admin-section .language-selection .dropdown-menu[data-bs-popper] {
    left: -30px;
}

.nav-link {
    color: dimgrey;
}

.nav-link:focus, .nav-link:hover {
    color:  #3d2166;
}

.content-admin-sidebar {
    padding-top: 20px;
    min-height: 78vh;
}

#sidebar-left-menu {
    margin-bottom: 20px;
}

.user-fix {
    padding-top: 2px;
}

/* mobile menu fixed width */
.offcanvas.offcanvas-start {
    width: 300px;
}

.new_shop {
    padding-right: 10px;
    padding-left: 10px;
}

.alert-info {
    color: #522d8c;
    background-color: #fff;
    border-color: #522d8c;
}

    /* Styles for screens larger than 576px (small devices) */
@media (min-width: 576px) {
    .magentofast-title {
        font-size: 1.5rem;
    }
    .magentofast-subtitle {
        font-size: 1rem;
    }

    .magentofast-logo {
        height: 60px;
    }
}

@media (min-width: 991px) {
    .show-on-mobile {
        display: none; /* Hides the element */
    }

    .magentofast-title {
        font-size: 2rem;
    }
    .magentofast-subtitle {
        font-size: 1.25rem;
    }

    .magentofast-logo {
        height: 100px;
    }
}

/* This is the media query to hide the div */
@media (max-width: 991px) {
    .hide-on-mobile {
        display: none; /* Hides the element */
    }
    .main-content {
        padding-top: 0;
        margin-top: 0;
    }

    .btn-menu-top
    {
        margin-top: 10px;
    }

    .admin-section .language-selection .dropdown-menu[data-bs-popper] {
        left: 0;
    }
}

@media (max-width: 410px) {
    .magentofast-subtitle {
        display: none;
    }
}

/* ── Cookie Consent ── */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 1.25rem 1.5rem;
}

.cc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.cc-banner-text {
    flex: 1 1 400px;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
}

.cc-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.cc-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #522d8c;
    transition: background 0.15s, color 0.15s;
}

.cc-btn-primary {
    background: #522d8c;
    color: #fff;
}

.cc-btn-primary:hover {
    background: #3d2166;
}

.cc-btn-secondary {
    background: transparent;
    color: #522d8c;
}

.cc-btn-secondary:hover {
    background: #f3f0f8;
}

/* Modal overlay */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cc-modal {
    background: #fff;
    border-radius: 0.75rem;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.cc-modal-header {
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-modal-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
}

.cc-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
}

.cc-modal-body {
    padding: 1.25rem 1.5rem;
}

.cc-category {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f1f1;
}

.cc-category:last-child {
    border-bottom: none;
}

.cc-category-info {
    flex: 1;
    padding-right: 1rem;
}

.cc-category-title {
    font-weight: 600;
    font-size: 0.925rem;
    color: #212529;
    margin-bottom: 0.2rem;
}

.cc-category-desc {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Toggle switch */
.cc-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.2s;
}

.cc-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.cc-toggle input:checked + .cc-toggle-slider {
    background: #522d8c;
}

.cc-toggle input:checked + .cc-toggle-slider::before {
    transform: translateX(20px);
}

.cc-toggle input:disabled + .cc-toggle-slider {
    background: #522d8c;
    opacity: 0.6;
    cursor: not-allowed;
}

.cc-modal-footer {
    padding: 0.75rem 1.5rem 1.25rem;
    text-align: right;
}

/* Revoker floating button */
.cc-revoker {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #522d8c;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.15s;
    font-size: 1.25rem;
}

.cc-revoker:hover {
    background: #3d2166;
}
