/* Большие экраны (настольные компьютеры, менее 1400 пикселей) */
@media (max-width: 1599.98px) {
  .bouquet-category-links .content div {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
  }
}

/* Большие экраны (настольные компьютеры, менее 1400 пикселей) */
@media (max-width: 1399.98px) {
  .mobile-bouquet-search-block {
    width: 40%;
  }
}

/* Большие устройства (настольные компьютеры, менее 1200 пикселей) */
@media (max-width: 1199.98px) {
  .account-line .header-item, .account-line .group-field {
    grid-template-columns: repeat(7, 100px);
  }
  .account-line .standart-button a, .account-line .group-button .standart-button {
    width: 110px;
  }
  .dashboard-social.block-link-us .nav-link.dropdown-toggle, .account-header .cover-info-block-2 p, .account-header .left-block .cover-order-block a {
    max-width: 168px;
    width: 168px;
  }
  .account-header .cover-info-block-2 {
    width: auto;
  }
  .bouquet-category-links .content div {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }
}


/* Средние устройства (планшеты, менее 992 пикселей) */
@media (max-width: 991.98px) {
  #navbar-main {
    padding: 5px 0;
    border-bottom: 0;
  }
  #navbar-main .block-address {
    margin-right: 15px;
  }
  #block-artflora-main-menu .nav-item .nav-link.is-active {
    border: none;
  }
  .block-header-search input {
    max-width: 100%;
  }
  .block-header-search, .block-header-search .js-form-type-textfield {
    flex: 1;
  }
  .block-header-search input {
    font-size: 12px;
    height: 30px;
  }
  .block-header-search .flex-wrap .form-actions button {
    background-size: 25px;
    width: 25px;
    height: 25px;
  }
  .commerce-checkout-flow .header-line {
    display: none;
  }
  .commerce-checkout-flow .views-view-grid {
    font-size: 12px;
  }
  .commerce-checkout-flow .cart-controls-spinner {
    flex-direction: column;
  }
  .commerce-checkout-flow .cart-controls-spinner .cart-controls-minus {
    height: 18px;
    width: 100%;
    margin-bottom: 2px;
    background-size: 12px;
  }
  .commerce-checkout-flow .cart-controls-spinner .cart-controls-qty {
    height: 25px;
    margin: 0 0 2px;
    text-align: center;
  }
  .commerce-checkout-flow .cart-controls-spinner .cart-controls-plus {
    width: 100%;
    height: 25px;
    padding: 0;
    background-size: 12px;
    border-radius: 12px;
  }
  .commerce-checkout-flow .views-view-grid .views-col {
    grid-auto-columns: 100px 1fr 50px;
  }
  .commerce-checkout-flow .views-field-link-flag {
    right: 5px;
  }
  .commerce-checkout-flow .block-cover {
    display: flex;
    flex-wrap: wrap;
  }
  .commerce-checkout-flow .block-cover .views-field {
    width: 100%;
    text-align: left;
  }
  .commerce-checkout-flow .block-cover .views-field-title {
    min-height: 36px;
  }
  .commerce-checkout-flow .block-cover .views-field-total-price__number {
    width: auto;
    border-right: 1px solid #212529;
    padding-right: 10px;
  }
  .commerce-checkout-flow .block-cover .views-field-field-package-qty, .commerce-checkout-flow .block-cover .views-field-qty {
    font-size: 10px;
  }
  .commerce-checkout-flow .hidden-list {
    display: inline-block;
  }
  .region-top-header .btn-comment-toggle, .region-top-header #cover-field-choose-date {
    display: none !important;
  }
  .js-form-item-order-fieldscheckout-field-comment-0-value label {
    display: none;
  }
  .checkout-summary-sticky {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  .btn-date .date-label {
    display: block;
  }
  .commerce-checkout-flow .checkout-summary-sticky #edit-order-fieldscheckout {
    display: flex;
    flex-direction: column;
  }
  .path-cart #navbar-top, .path-checkout #navbar-main {
    display: none;
  }
  .account-line .header-item, .account-line .group-field {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }
  .custom-dashboard .account-line .container-fluid {
    padding-right: 2px;
    padding-left: 2px;
  }
  .account-line p, .account-line span, .content-item .standart-button a, .account-line .field-number-order a {
    font-size: 12px;
  }
  .account-header .left-block {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: url("../img/line-topbar-full.svg") right center no-repeat, #40ac9d;
    padding: 5px 15px 3px;
  }
  .account-header .left-block {
    justify-content: space-between;
  }
  .account-header .left-block .cover-order-block {
    order: -1;
    margin-left: 0;
    margin-right: 10px;
  }
  .account-header .left-block .cover-order-block a, .mobile-fixed .cover-order-block .top-link {
    max-width: 135px;
    background: url("../img/arror-next.png") calc(100% - 10px) center no-repeat, #fff;
    padding: 1px 32px 1px 10px;
    font-size: 13px;
    line-height: 1.1;
  }
  .account-header .cover-info-block .info-time {
    padding: 1px 3px;
  }
  .account-header .cover-info-block .info-time p.time {
    background: none;
  }
  .account-header .cover-info-block .info-time p {
    margin-bottom: 0px;
    font-size: 12px;
  }
  .account-header .left-block .cover-info-block a.transit-link {
    padding: 2px 20px 2px 40px;
  }
  .account-header .left-block .cover-info-block a, .account-header .left-block .cover-info-block .info-time {
    width: 150px;
  }
  .account-header .text-username {
    width: 100%;
    font-size: 16px;
    margin-bottom: 5px;
  }
  .account-header .wallet-link {
    background: url("../img/wallet.png") 10px 2px no-repeat, rgba(255, 255, 255, 0.8);
    padding: 4px 20px 4px 35px;
    min-width: 104px;
    text-align: left;
    background-size: 18px;
    margin-bottom: 2px;
  }
  .account-header .right-block a.favorites-link {
    background: url("../img/favorites.png") 10px center no-repeat, rgba(255, 255, 255, 0.8);
    padding: 4px 10px 4px 35px;
    text-align: left;
    position: relative;
    background-size: 18px;
    margin-bottom: 2px;
  }
  .account-header .right-block a.exit-link {
    padding: 4px 10px 4px 35px;
    background-size: 16px;
    margin-bottom: 2px;
  }
  .block-not-found p {
    font-size: 32px;
  }
  .mobile-fixed .cover-order-block .to-cart-link {
    background: url("../img/check-green-big.png") calc(100% - 7px) center no-repeat, #fff;
    max-width: 165px;
    padding-right: 40px;
    border: 1px solid #028E08;
  }
  .mobile-fixed .cover-order-block .account-link {
    background: url("../img/black-back.png") 7px center no-repeat, #fff;
    padding: 1px 10px 1px 32px;
  }
  .mobile-fixed .cover-order-block .top-link {
    display: flex;
    height: 31px;
    align-items: center;
  }
  .mobile-fixed .cover-order-block .repeat-link {
    background: url("../img/refresh-green.png") calc(100% - 7px) center no-repeat, #fff;
    max-width: 165px;
    padding-right: 40px;
  }
  .cart-header {
    padding: 5px 0 10px 0;
  }
  .pagination a, .pagination .pager-current, .pagination .pager-ellipsis {
    font-size: 16px;
  }
  .pagination .pager-page, .pagination .pager-current {
    padding: 5px 5px;
  }
  body .field--name-field-shipping-check {
    order: -1;
    margin-bottom: 3px !important;
  }
  .account-header .cover-order-block {
    flex-direction: row;
    justify-content: space-between;
  }
  .account-header .right-block {
    justify-content: space-between;
    width: 100%;
  }
  .account-header .cover-info-block-2 p {
    padding: 2px 5px 1px;
    font-size: 13px;
    max-width: 100%;
    width: auto;
    margin-bottom: 0 !important;
  }
  .dashboard-social.block-link-us .nav-link.dropdown-toggle {
    padding: 4px 25px 4px 10px !important;
    width: 162px;
    font-size: 13px;
  }
  .visible-header .region-top-header .d-none {
    display: block !important;
  }
  #navbar-main .link-logo img {
    max-width: none;
  }
  p.main-text {
    font-size: 18px;
    line-height: 1.2;
  }
  body.path-webform  {
    backdrop-filter: blur(2.5px) saturate(0.85) brightness(0.85);
    -webkit-backdrop-filter: blur(2.5px) saturate(0.85) brightness(0.85);
  }
  .background-opacity {
    background: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
  }
  body.page-node-1, body.page-node-3 {
    background: url("../img/fon-about-mobile.jpg") center center no-repeat;
    background-size: cover;
  }
  body.page-node-2 {
    background: url("../img/fon-geo-mobile.jpg") center center no-repeat;
    background-size: cover;
  }
  body.page-node-8 {
    background: url("../img/fon-design-mobile.jpg") center center no-repeat;
  }
  body.page-node-8 .layout-main-wrapper, body.page-node-1 .layout-main-wrapper, body.page-node-3 .layout-main-wrapper, body.page-node-2 .layout-main-wrapper .align-items-center {
    background: rgba(68, 66, 66, 0.2);
    border-radius: 40px 40px 0 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  a.standart-link-border {
    font-size: 16px;
  }
  .account-header .account-data-trigger {
    padding: 4px 10px;
  }
  body.page-node-2 .layout-main-wrapper .align-items-center {
    padding: 15px;
  }
  .page-user-dashboard .account-header {
    background: #40ac9d;
  }
  .account-header .cover-order-block {
    gap: 2px;
  }
  .page-view-catalog-ready #navbar-main .link-logo img {
    max-width: 100%;
  }
  .mobile-bouquet-search-block {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 72px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .mobile-bouquet-search-block.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-bouquet-search-block{
    width: 100%;
    padding: 0 15px;
  }
  .mobile-bouquet-search-block .bouquet-title-search-form__input,.mobile-bouquet-search-block .bouquet-title-search-form__input:focus-visible {
    border: 2px solid #40ac9d;
  }
  .mobile-bouquet-search-block .bouquet-title-search-form__submit {
    display: none;
  }
  .page-view-catalog-ready #navbar-top {
    height: 0;
    padding: 0;
    margin-bottom: 0;
  }
  nav .pagination {
    margin-bottom: 60px;
  }
  .commerce-checkout-flow .checkout-layout {
    flex-wrap: wrap;
  }
  .commerce-checkout-flow .checkout-layout__left, .commerce-checkout-flow .checkout-layout__right {
    width: 100%;
  }
  .path-checkout .mobile-fixed {
    position: relative;
  }
  .path-checkout #page {
    display: flex;
    flex-direction: column;
  }
  .path-checkout .featured-bottom {
    order: -1;
  }
  .path-checkout #navbar-top {
    background: none;
    margin-bottom: 0;
  }
  .path-checkout .checkout-card--totals {
    order: -1;
    margin-bottom: 0 !important;
  }
  .commerce-checkout-flow .checkout-card--order {
    margin-bottom: 15px;
  }
  .commerce-checkout-flow .block-cover .views-field-price__number,
  .commerce-checkout-flow .block-cover .views-field-qty-discount-price {
    order: 1;
    width: auto;
    flex: 0 0 auto;
  }
  .commerce-checkout-flow .block-cover .views-field-qty-discount-price {
    font-weight: 600;
  }
  .commerce-checkout-flow .views-field-field-image img {
    width: 100px;
    height: 100px;
  }
  .commerce-checkout-flow .checkout-card--products {
    padding: 0 10px;
  }
}


  /* Небольшие устройства (телефоны с горизонтальной ориентацией, менее 768 пикселей) */
  @media (max-width: 767.98px) {
    #navbar-main .navbar-toggler, #block-artflora-main-menu .nav-item .nav-link, .block-address .content p, .node__content, form .block-form input, form .block-form select, .user-login-form input {
      font-size: 12px;
    }
    .user-login-form button, .user-login-form .button--secondary, .block-auth-complete p {
      font-size: 14px;
    }
    .link-logo img {
      max-width: 118px;
      height: auto;
    }
    html, body {
      min-height: 100vh
    }
    #navbar-main .navbar-toggler, #block-artflora-main-menu .nav-item .nav-link {
      padding-left: 0;
    }
    body:after {
      display: none;
    }
    .custom-login-wrapper .user-login-form {
      order: -1;
    }
    p.main-text {
      font-size: 14px;
    }
    form .block-form input, form .block-form select, .user-login-form input, .block-form #edit-reg-type .form-check-label {
      padding: 6px 15px;
    }
    form.form-registraion .webform-button--next, form.form-registraion .webform-button--previous, form.form-registraion .btn-black {
      padding: 8px 5px;
      width: 100%;
      font-size: 12px;
    }
    .user-login-form button, .user-login-form .button--secondary, form.form-registraion .block-form input {
      padding: 4px 15px;
    }
    .block-form .title-step {
      font-size: 18px;
    }
    .custom-login-wrapper .logo-brand {
      margin-bottom: 10px;
      margin-top: 150px;
      max-width: 196px;
      height: auto;
    }
    .user-login-form input, form .block-form input, form .block-form select {
      margin-bottom: 10px;
    }
    form .btn-black {
      font-weight: 400;
      font-size: 12px;
      width: auto;
      padding: 6px 10px;
    }
    .view-catalog .views-view-grid .views-row, .view-catalog-ready .views-view-grid .views-row {
      width: 49%;
    }
    .view-catalog .views-view-grid .views-col, .view-catalog-ready .views-view-grid .views-col {
      max-width: 100%;
      width: 100% !important;
      padding: 0;
    }
    .view-catalog .views-view-grid, .view-catalog-ready .views-view-grid {
      justify-content: space-between;
    }
    .view-catalog .views-view-grid .form-actions button, .add-cart-none a, .view-catalog-ready .views-view-grid .views-field-nothing a {
      height: 30px;
      border-radius: 14px;
      border: 1px solid #000000;
      font-size: 14px;
    }
    .view-catalog-ready .views-view-grid .views-field-price__number {
      font-weight: 400;
      font-size: 10px;
      letter-spacing: 0.05em;
      margin-bottom: 10px;
    }
    .cover-quantity input, .cover-quantity button {
      border-radius: 12px;
    }
    .cover-quantity input.form-control {
      text-align: center;
      padding: 2px 5px;
    }
    .cover-quantity .btn-minus {
      width: 50px;
    }
    .pagination .page-item.active .page-link, .pagination .page-item .page-link {
      padding: 2px 5px;
      border: none;
    }
    .pagination .page-item.active .page-link {
      color: #40ac9d;
    }
    .pagination .pager-next, .pagination .pager-previous {
      width: 22px;
    }
    .pagination .pager-next a, .pagination .pager-previous a {
      background-size: 22px;
    }
    .spb-popup-main-wrapper {
      width: 96% !important;
      left: 2%;
      top: 2%;
    }
    .checkout-custom-cart .views-field-field-image {
      min-width: 60px;
      padding: 2px;
    }
    .checkout-custom-cart .views-field-field-image img {
      width: 100%;
    }
    .checkout-custom-cart table {
      font-size: 12px;
    }
    .checkout-custom-cart .views-field-remove-button button {
      background-size: 15px;
      width: 15px;
      height: 15px;
    }
    .checkout-custom-cart .table > :not(caption) > * > * {
      padding: 2px;
    }
    .checkout-custom-cart h2 {
      font-size: 18px;
    }
    .checkout-custom-cart.order-total-line {
      font-size: 16px;
    }
    .checkout-custom-cart .form-actions button {
      padding: 5px 15px;
      font-size: 14px;
      margin-bottom: 60px;
    }
    body.path-frontpage {
      background: url("../img/fon-main-mobile.jpg") center center no-repeat;
      background-size: cover;
      backdrop-filter: blur(2.5px) saturate(0.65) brightness(0.65);
      -webkit-backdrop-filter: blur(2.5px) saturate(0.65) brightness(0.65);
    }
    .user-login-form {
      flex-direction: column;
      max-width: none;
    }
    .custom-login-intro .custom-login-intro__title {
      font-size: 26px;
      margin-bottom: 15px;
    }
    .custom-login-intro .custom-login-intro__text {
      font-size: 16px;
      line-height: 140%;
    }
    .block-link-us.standart-text-social .nav-link.dropdown-toggle {
      font-size: 16px;
    }
    .block-link-us.standart-text-social {
      margin-left: auto;
    }
    .block-link-us.standart-text-social .dropdown-menu {
      border: 1px solid #fff;
      width: 38px;
      max-width: 38px;
      min-width: 38px;
      inset: auto 0 0 auto !important;
    }
    .block-link-us.standart-text-social .dropdown-menu a {
      font-size: 0 !important;
      width: 27px;
      height: 27px;
      background-size: 26px;
      margin: 5px 0;
    }
    .block-link-us.standart-text-social hr {
      display: none;
    }
    .custom-login-form-side {
      border: 1px solid #FFFFFF;
      border-radius: 12px;
      padding: 20px;
    }
    .block-link-us .dropdown .dropdown-menu {
      padding: 0;
    }
    .custom-login-wrapper {
      margin: 0;
      min-height: calc(100vh - 340px);
    }
    .custom-login-wrapper .custom-login-intro {
      margin-bottom: 20px !important;
    }
    body.page-node-8 .page-content-center {
      font-weight: 500;
    }
    body.page-node-8 p.main-text {
      font-size: 12px;
      font-weight: 500;
    }
    body.page-node-1 .page-content-center, body.page-node-2 .text-content, body.page-node-3 .page-content-center {
      font-weight: 600;
      line-height: 1.5;
      font-size: 14px;
    }
    body.page-node-1 .page-content-center ul, body.page-node-3 .page-content-center ul,  body.page-node-1 .page-content-center ol, body.page-node-3 .page-content-center ol {
      padding-left: 15px;
    }
    .block-publics-content {
      order: 2;
      padding: 0 10px;
    }
    .block-publics-content .social-publics {
      background: rgba(255, 255, 255, 0.2);
      padding: 2px 8px;
      border-radius: 20px;
      border: none;
      min-height: 28px;
    }
    .block-publics-content .social-publics .social-publics__title {
      font-size: 12px;
    }
    .social-publics__icon {
      height: 18px;
    }
    .social-publics__icon--vk {
      width: 22px;
    }
    .page-node-1 .nav-after-toggler {
      padding: 10px 10px 0;
    }
  }

  /* Очень маленькие устройства (портретные телефоны, менее 576 пикселей) */
  @media (max-width: 575.98px) {
    .form-mini-modal {
      width: 100% !important;
    }
    .form-mini-modal .page-modal-content img {
      max-width: 100px;
      height: auto;
    }
    .form-mini-modal .page-modal-content .link-black, .page-favorite-none .link-black {
      padding: 10px 50px;
    }
    .views-field-field-good-action .btn-link {
      width: 30px;
      height: 30px;
      background-size: 30px;
    }
    .account-header .right-block {
      flex-direction: column;
    }
    .account-header .cover-info-block-2 .flex {
      flex-direction: row;
      flex-wrap: wrap;
    }
    .account-header .main-right-content, .account-header .cover-info-block-2 .flex {
      gap: 5px;
    }
    .account-header .account-data-trigger {
      padding: 2px 6px;
    }
    .dashboard-social.block-link-us .nav-link.dropdown-toggle {
      padding: 2px 15px 2px 4px !important;
      width: 135px;
      background: url("../img/menu-dropdown.png") calc(100% - 6px) center no-repeat, rgba(255, 255, 255, 0.8);
    }
    .account-header .right-block a.favorites-link {
      background: url("../img/favorites.png") 5px center no-repeat, rgba(255, 255, 255, 0.8);
      background-size: 16px;
      padding: 2px 5px 2px 25px;
    }
    .account-header .wallet-link {
      background: url("../img/wallet.png") 6px 4px no-repeat, rgba(255, 255, 255, 0.8);
      padding: 2px 5px 2px 25px;
      background-size: 16px;
    }
    .account-header .right-block a.exit-link {
      padding: 2px 5px 2px 25px;
      background: url("../img/exit.png") 6px center no-repeat, rgba(255, 255, 255, 0.8);
      background-size: 14px;
      margin-bottom: 2px;
    }
    .account-header .favorites-link, .account-header .price-type-trigger, .account-header .account-data-trigger, .account-header .right-block a.exit-link, .account-header .wallet-link {
      font-size: 12px !important;
    }
    .account-header .main-right-content button, .account-header .main-right-content .dashboard-social {
      height: 22px;
    }
    .account-header .cover-info-block-2 .icon-question, .account-header .dashboard-social.block-link-us {
      display: flex;
      align-items: center;
    }
    .simple-popup-blocks-global .form-checkboxes .checkbox {
      width: 49%;
    }
  }

  /* Менее 396 пикселей) */
  @media (max-width: 395.98px) {
    .view-catalog .views-view-grid .form-actions button, .add-cart-none a {
      font-size: 12px;
    }
  }
