@import "bulma.min.css";
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

:root {
    --main-color: #dd8d04;
    --clr-danger: #d90429;
}

*,
*::after,
*::before {
    outline: none;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif !important;
    outline: none;
}

#content {
    min-height: 73vh;
}

.pagination-centered {
    justify-content: center !important;
}

.pagination-controls-centered {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.is-justify-content-center {
    justify-content: center;
}

.is-justify-content-center-forced {
    justify-content: center !important;
}

.is-justify-content-space-between {
    justify-content: space-between;
}

.is-justify-content-space-around {
    justify-content: space-around !important;
}

.is-align-content-center {
    align-items: center;
}

.is-align-items-end {
    align-items: end;
}

.is-justify-content-end {
    justify-content: flex-end;
}

.is-justify-content-start {
    justify-content: flex-start;
}

.is-align-items-center {
    align-items: center;
}

.is-flex-direction-column {
    flex-direction: column;
}

.is-flex-grow-0 {
    flex-grow: 0 !important;
}

.is-align-self-flex-end {
    align-self: flex-end;
}

/* table {
  width: 100%;
} */

/* Ukryj checkboxy */
.checkbox-input {
    display: none;
    /* Ukryj checkbox */
}

/* Stylizacja dla zaznaczonego labela */
.checkbox-label {
    display: flex;
    padding: 4px;
    font-size: 0.75rem;
}

/* Kolor tła dla zaznaczonych opcji */
.checkbox-input:checked+.checkbox-label {
    background-color: #dd8d04;
    /* Kolor tła, możesz zmienić */
    color: white;
    /* Kolor tekstu */
}

.px-0 {
    padding-block: 0;
}

.table-middle-right {
    vertical-align: middle !important;
    text-align: right !important;
}

.table-middle-center {
    vertical-align: middle !important;
    text-align: center !important;
}

.gap-05 {
    gap: 0.5rem;
}

.gap-03 {
    gap: 0.3rem;
}

.px-8 {
    padding-left: 6rem !important;
    padding-right: 6rem !important;
}

.is-c-orange {
    color: var(--main-color);
}

.img-1rem {
    height: 1rem !important;
    margin-right: 0.5rem;
}

.img-3rem {
    max-height: 3rem !important;
}

.icon-18 {
    max-height: 18px;
}

.is-special-color {
    color: var(--main-color) !important;
}

.is-special-bg {
    background-color: var(--main-color) !important;
}

.is-wrap {
    flex-wrap: wrap;
}

.is-flex-centered {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

.is-flex-jus-centered {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
}

.is-flex-space-e {
    justify-content: space-evenly;
}

.is-justify-centered {
    justify-content: center !important;
}

.is-align-items-stretch {
    align-items: stretch;
}

.mar-bottom-0 {
    margin-bottom: 0 !important;
}

.icon-season {
    height: 1.5rem !important;
}

.producer-logo {
    max-width: 6rem;
}

.notification {
    background-color: transparent;
}

.product-list-table .column {
    padding: 0.5rem;
}

.product-detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ju-co-start {
    justify-content: flex-start;
}

.d-flex {
    display: flex;
}

.ju-co-between {
    justify-content: space-between !important;
}

.table-middle-center {
    vertical-align: middle !important;
    text-align: center !important;
}

.field.has-addons.addons-center {
    justify-content: center;
}

.tag_radius_4 {
    border-radius: 4px !important;
}

.w-05 {
    width: 05%;
}

.w-10 {
    width: 10%;
}

.w-12 {
    width: 12%;
}

.w-15 {
    width: 15%;
}

.w-25 {
    width: 25%;
}

.w-50 {
    width: 50%;
}

.w-80 {
    width: 80%;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.mw-100 {
    min-width: 100%;
}

.control.is-fullwidth {
    width: 100%;
}

.f-grow-0 {
    flex-grow: 0 !important;
}

.border-left-0 {
    border-left: 0;
}

/* .delivery_adress_form {
  display: none;
} */

#id_kurier:checked~.delivery_adress_form {
    display: block;
}

.note-content {
    white-space: pre-wrap;
    /* Zachowuje nowe linie i wcięcia */
    word-wrap: break-word;
    /* Zawija długie słowa */
}

/* .form-active {
  display: block;
} */

/* Login */
.login-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url(../img/login-bg.jpg);
    background-repeat: no-repeat;
    background-position: 100%;
    background-attachment: fixed;
    background-size: cover;
    height: 100vh;
}

.logo {
    width: 70%;
    margin: 0 auto;
}

/* Navbar */

.navbar-menu a.navbar-item,
.navbar-menu .button {
    font-weight: bold;
    font-size: 14px;
    font-size: 12px;
    text-transform: uppercase;
}

.navbar-item .button {
    margin-left: 0.2rem;
    margin-right: 0.2rem;
    padding: 0 2rem;
    transition: all 0.3s ease;
}

.navbar-link.is-active,
.navbar-link:focus,
.navbar-link:focus-within,
.navbar-link:hover,
a.navbar-item.is-active,
a.navbar-item:focus,
a.navbar-item:focus-within,
a.navbar-item:hover {
    background-color: transparent;
    color: var(--main-color);
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 3rem;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(0.9);
}

/* product-list */

#product-list #id_quantity {
    width: 5rem;
}

#product-list .select:not(.is-multiple):not(.is-loading)::after {
    margin-top: -5px;
    border-color: #dd8d04;
}

#product-list .select .dropdown-trigger,
#product-list .is-small.input {
    border-radius: 4px;
}

/*
#product-list table {
  border-collapse: separate;
  border-spacing: 0 1rem;
}

#product-list td {
  border-bottom: solid 1px rgba(221, 141, 4, 0.2);
  padding-bottom: .5rem;
} */

.border-botom-small-dark {
    border-bottom: 1px solid #eaeaec;
}

#product-list .sale-box {
    transition: all 0.3s ease-in-out;
}

#product-list .sale-box:hover {
    background-color: var(--main-color);
    color: #ffffff;
    transition: all 0.3s ease-in-out;
}

#product-list .sale-box:hover p {
    color: #ffffff;
    transition: all 0.3s ease-in-out;
}

#product-detail {
    padding-top: 4rem;
}

#product-detail .is-square img {
    max-width: 25rem;
    max-height: 25rem;
}

#product-detail .logo-img {
    max-height: 5rem;
}

#product-detail .tag_stock {
    font-size: 1rem;
    font-weight: bold;
}

#product-detail .title_price {
    font-weight: bolder;
    font-size: 4rem;
}

#product-detail #id_quantity {
    max-width: 4rem;
}

.courier_logo {
    width: 50px;
    margin: 5px;
    opacity: 0.5;
}

.navbar-start .navbar-item {
    transition: all 0.3s ease;
}

.navbar-start .navbar-item:hover {
    transform: scale(0.9);
}

.navbar-end .navbar-item a {
    transition: all 0.3s ease;
}

.navbar-end .navbar-item a:hover {
    color: var(--main-color);
}

.is-align-items-flex-end {
    align-items: flex-end;
}

.is-justify-content-flex-end {
    justify-content: flex-end;
}

.is-justify-content-flex-start {
    justify-content: flex-start;
}

.is-justify-content-flex-start-force {
    justify-content: flex-start !important;
}


.is-flex-grow-0 {
    flex-grow: 0;
}

.is-flex-grow-1 {
    flex-grow: 1;
}

.is-flex-grow-2 {
    flex-grow: 2;
}

.is-flex-grow-3 {
    flex-grow: 3;
}

.is-flex-grow-4 {
    flex-grow: 4;
}

.is-flex-grow-5 {
    flex-grow: 5;
}


.is-flex-shrink-0 {
    flex-shrink: 0;
}

.is-flex-shrink-1 {
    flex-shrink: 1;
}

.is-flex-shrink-2 {
    flex-shrink: 2;
}

.is-flex-shrink-3 {
    flex-shrink: 3;
}

.is-flex-shrink-4 {
    flex-shrink: 4;
}

.is-flex-shrink-5 {
    flex-shrink: 5;
}

.is-lh-1 {
    line-height: 1;
}

.p-2 {
    padding: 0.5rem;
}

.p-1 {
    padding: 0.25rem;
}

.bb-1 {
    border-bottom: 1px solid #dbdbdb;
}

/* Responsive Table */

table {
    width: 100%;
}

caption,
th,
td {
    padding: 1rem;
    border-bottom: 1px solid #dbdbdb;
}

/* tr:nth-of-type(2n) {
  background: hsl(0 0% 0% / .05);
} */

.disabled {
    background-color: #f5f5f5 !important;
    border-color: #f5f5f5 !important;
    box-shadow: none !important;
    color: #7a7a7a !important;
    pointer-events: none !important;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.cursor-pointer {
    cursor: pointer;
}

.mxw-50 {
    max-width: 50%;
    margin: 0 auto;
}

.mxw-25 {
    max-width: 25%;
    margin: 0 auto;
}

.mxw-10 {
    max-width: 10%;
    margin: 0 auto;
}

.wpx-24 {
    width: 24px;
}

.active {
    font-weight: bold;
    color: #dd8d04;
}

#dashboard-orders .select:not(.is-multiple):not(.is-loading)::after {
    border-color: #264653;
}

#account_add_admin .navbar-link:not(.is-arrowless)::after,
.select:not(.is-multiple):not(.is-loading)::after {
    margin-top: -0.7em;
}

.select2-container {
    width: 100% !important;
}

.select2-container--open .select2-dropdown--below {
    font-size: 0.7rem;
}

.select2-selection__arrow {
    display: none;
}

.dropdown-menu-right {
    right: 0;
    left: auto;
    min-width: 20rem;
}

.flex-1 {
    flex: 1;
}

.w-2r {
    width: 2rem;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbar-menu {
    display: flex;
}

.select2-container .select2-selection--single {
    min-height: 28px;
    padding-right: 3rem;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    white-space: normal;
    word-wrap: break-word;
}

/* Styl kursora na kliknięcie */
.icon.is-clickable {
    cursor: pointer;
}

#toggle_visibility {
    transition: all 0.3s ease-in-out;
}

#toggle_visibility.is-hovered,
#toggle_visibility:hover {
    border-color: #dbdbdb;
}

svg path {
    cursor: pointer;
}

.error-message {
    font-weight: bold;
    font-size: 0.8rem;
    color: var(--clr-danger);
}

/* Custom tooltip */
.custom-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: 280px;
    background-color: white;
    text-align: left;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -140px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: normal;
    font-weight: normal;
}

.custom-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #363636 transparent transparent transparent;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}






/* Edycja profilu */
.section-box {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: .75rem 1rem;
    margin-bottom: .5rem !important;
}
.sticky-save {
    position: sticky;
    bottom: 0;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-top: 1px solid #e0e0e0;
    padding: .75rem 0;
    z-index: 10;
}
.pg-scroll {
    max-height: 200px;
    overflow-y: auto;
    border-radius: 8px;
}
.tag-toggle {
    cursor: pointer;
    user-select: none;
    transition: .15s ease;
}
.is-rounded {
    border-radius: 6px !important;
}

/* Responsywny wygląd */
@media screen and (max-width: 1300px) {
    .navbar-brand {
        justify-content: center;
    }

    .navbar-menu {
        flex-direction: column;
    }

    th {
        display: none;
    }

    tr {
        display: block;
        border: 1px solid #dd8d04;
        margin-bottom: 1rem;
    }

    td {
        display: grid;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        border: none;
        grid-template-columns: 1fr;
    }

    td span.has-text-black {
        justify-content: center;
        text-align: center;
    }

    td:first-child {
        padding-top: 2rem;
    }

    td:last-child {
        padding-bottom: 2rem;
    }

    p [data-cell]::before {
        content: attr(data-cell) "";
        font-weight: 700;
        text-transform: capitalize;
    }

    td .columns {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    td form {
        display: flex;
        justify-content: center;
    }

    td .image.is-64x64 {
        width: 100%;
        height: 100%;
    }
}
