/* Biosef: tall white fields with the name inside, top left, on the forms with customer, delivery and company details.
   Only the look changes. A browser without :has() keeps the old look. */
:is(#account-register, #account-address, #account-billing, #account-edit, #affiliate-register, #checkout-checkout) .form-group:has(> label.control-label + .col-sm-10 > .form-control:not(textarea)),
#checkout-checkout .form-group:has(> label.control-label + .form-control:not(textarea)) {
	position: relative;
}
:is(#account-register, #account-address, #account-billing, #account-edit, #affiliate-register, #checkout-checkout) .form-group:has(> label.control-label + .col-sm-10 > .form-control:not(textarea)) > label.control-label,
#checkout-checkout .form-group:has(> label.control-label + .form-control:not(textarea)) > label.control-label {
	position: absolute;
	top: 7px;
	left: 28px;
	width: auto;
	margin: 0;
	padding: 0;
	z-index: 2;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	text-align: left;
	color: #666;
	pointer-events: none;
}
#checkout-checkout .form-group:has(> label.control-label + .form-control:not(textarea)) > label.control-label {
	left: 13px;
}
:is(#account-register, #account-address, #account-billing, #account-edit, #affiliate-register, #checkout-checkout) .form-group:has(> label.control-label + .col-sm-10 > .form-control:not(textarea)) > .col-sm-10 {
	width: 100%;
}
:is(#account-register, #account-address, #account-billing, #account-edit, #affiliate-register, #checkout-checkout) .form-group:has(> label.control-label + .col-sm-10 > .form-control:not(textarea)) > .col-sm-10 > .form-control:not(textarea),
#checkout-checkout .form-group:has(> label.control-label + .form-control:not(textarea)) > .form-control:not(textarea) {
	height: 50px !important;
	padding: 20px 12px 4px !important;
	background: #fff !important;
	border: 1px solid #d5dbe5 !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	font-size: 14px !important;
	color: #3b4557 !important;
}
:is(#account-register, #account-address, #account-billing, #account-edit, #affiliate-register, #checkout-checkout) .form-group:has(> label.control-label + .col-sm-10 > .form-control:not(textarea)) > .col-sm-10 > .form-control:not(textarea):focus,
#checkout-checkout .form-group:has(> label.control-label + .form-control:not(textarea)) > .form-control:not(textarea):focus {
	border-color: #f5821f !important;
	box-shadow: 0 0 0 1px #f5821f !important;
}
:is(#account-register, #account-address, #account-billing, #account-edit, #affiliate-register, #checkout-checkout) .form-group:has(> label.control-label + .col-sm-10 > .form-control:not(textarea)) > .col-sm-10 > .form-control::placeholder,
#checkout-checkout .form-group:has(> label.control-label + .form-control:not(textarea)) > .form-control::placeholder {
	color: transparent !important;
}
/* The newsletter stands on the home page, the other columns of the footer share the width */
.typefooter-24 .col_8stx { display: none; }
.typefooter-24 .biosef-foot-logo img { display: block; max-width: 100%; height: auto; margin: 12px auto 0; }
@media (min-width: 1200px) {
  .typefooter-24 .biosef-foot-row { display: flex; justify-content: space-between; align-items: flex-start; margin-left: 0; margin-right: 0; }
  .typefooter-24 .biosef-foot-row::before, .typefooter-24 .biosef-foot-row::after { display: none; }
  .typefooter-24 .biosef-foot-row > div { flex: none; float: none; width: auto; padding-left: 0; padding-right: 0; }
  .typefooter-24 .biosef-foot-row > .biosef-foot-logo { width: 180px; }
}
/* Phones: the top bar of the header on one row, in the order of the desktop: Вход, Регистрация, the currency, the language (body wins over header24.css, which loads later) */
@media (max-width: 767px) {
  body .typeheader-24 .header-top .header-top-right { display: flex; width: 100%; flex-wrap: nowrap; justify-content: center; align-items: center; float: none; padding: 4px 0; }
  body .typeheader-24 .header-top .header-top-right > ul.top-link { float: none; display: flex; flex-wrap: nowrap; align-items: center; margin: 0; padding: 0; }
  body .typeheader-24 .header-top .header-top-right > ul.lang-curr { order: 2; }
  body .typeheader-24 .header-top .header-top-right > ul.top-link > li { float: none; margin: 0; padding: 0 5px; font-size: 12px; white-space: nowrap; }
  body .typeheader-24 .header-top .header-top-right > ul.top-link > li a, body .typeheader-24 .header-top .header-top-right > ul.top-link > li .btn-link, body .typeheader-24 .header-top .header-top-right > ul.top-link > li .btn-group > .btn-link { font-size: 12px; padding-left: 0; padding-right: 0; }
}

/* Phones: the lists without the label Grid view; the site menu (the vertical menu of the layout, content_menu2, module Home 24 - Vertical menu) at the left of the row of the menu button, opposite it; the copy of the home page builder is hidden there so one menu works */
@media (max-width: 767px) {
  .product-filter .list-view .btn-gridview { display: none; }
  .so-page-builder .so-vertical-menu { display: none; }
  .typeheader-24 .header-bottom .row { position: relative; }
  .typeheader-24 .biosef-mobile-menu { position: absolute; left: 15px; top: 0; z-index: 1001; width: auto; } /* above the search (99) and the dropdowns (1000), else the open panel sits under them; below the filter panel (9999) */
  .typeheader-24 .biosef-mobile-menu .megamenu-style-dev .so-vertical-menu .navbar-default .vertical .navbar-header { float: none; margin: 0; top: 0; }
  .typeheader-24 .biosef-mobile-menu #show-verticalmenu { float: none; display: flex; align-items: center; gap: 7px; height: 40px; margin: 0; padding: 0; border: 0; background: none; color: #222; font-size: 14px; font-weight: 600; text-transform: uppercase; line-height: 1; }
  .typeheader-24 .biosef-mobile-menu #show-verticalmenu i { font-size: 22px; color: #222; }
}

/* Phones: the listing page without the Filter button of the side column (it stays on the lists) */
@media (max-width: 767px) {
  .product-product #content.product-view > .open-sidebar { display: none; }
}

/* Phones: the Filter button of the lists in orange, bold, wider, with room between the icon and the word; the three view buttons at the right edge */
@media (max-width: 767px) {
  .product-filter .view-mode { display: flex; align-items: center; }
  .product-filter .view-mode > .open-sidebar { display: inline-flex; align-items: center; gap: 9px; height: 33px; padding: 0 24px; background: #fb8a00; border: 1.6px solid #fb8a00; color: #fff; font-weight: 700; font-size: 12px; line-height: 1; }
  .product-filter .view-mode > .open-sidebar i { font-size: 14px; }
  .product-filter .view-mode > .list-view { margin-left: auto; }
  .product-filter .view-mode > .list-view .btn:last-child { margin-right: 0; }
}

/* Phones: the panel of the site menu in the light grey of the site (the page background) and above everything of the page; the leaves and the names of the sections in the colours of the menu on the desktop */
@media (max-width: 767px) {
  .typeheader-24 .biosef-mobile-menu .container-megamenu.vertical .vertical-wrapper { background: #f0f1f2 !important; z-index: 100000; } /* important: the theme sets #333 with important */
  .typeheader-24 .biosef-mobile-menu .container-megamenu.vertical .vertical-wrapper ul.megamenu li a strong .fa-leaf { color: #666; }
  .typeheader-24 .biosef-mobile-menu .container-megamenu.vertical .vertical-wrapper ul.megamenu li a, .typeheader-24 .biosef-mobile-menu .container-megamenu.vertical .vertical-wrapper ul.megamenu li a strong { color: #222; }
  .typeheader-24 .biosef-mobile-menu .container-megamenu.vertical .vertical-wrapper ul.megamenu > li { border-color: #d9d9d9; }
  .typeheader-24 .biosef-mobile-menu .container-megamenu.vertical .vertical-wrapper #remove-verticalmenu { color: #222; }
}

/* Phones: the logo at the left edge; at the right four buttons of one size in a row, 12px apart, in the bordered boxes of the desktop (2px #e5e5e5, rounded 5px): Search, Compare, Favorites, the cart */
@media (max-width: 767px) {
  .typeheader-24 .header-middle .navbar-logo .logo { width: auto; margin-left: 0; padding-left: 0; text-align: left; }
  .typeheader-24 .header-middle .shopping_cart { width: 40px; }
  body header.typeheader-24 .header-middle .shopping_cart .btn-shopping-cart > a.top_cart { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 2px solid #e5e5e5 !important; border-radius: 5px; } /* important: the theme removes the border on phones */
  .typeheader-24 .header-middle .shopping_cart .btn-shopping-cart > a .icon-c { width: auto; height: auto; line-height: 1; }
  .typeheader-24 .header-middle .shopping_cart .btn-shopping-cart > a .icon-c i { font-size: 18px; color: #282828; }
  .typeheader-24 .header-middle .shopping_cart .btn-shopping-cart .top_cart .shopcart-inner .total-shopping-cart .items_cart { top: -8px; right: -8px; width: 20px; height: 20px; font-size: 11px; line-height: 20px; }
  /* the cart is only a button: no text, only the count */
  .typeheader-24 .header-middle .shopping_cart .shopcart-inner .text-shopping-cart, .typeheader-24 .header-middle .shopping_cart .shopcart-inner .items_cart2, .typeheader-24 .header-middle .shopping_cart .shopcart-inner .items_carts { display: none; }
  .typeheader-24 .header-middle ul.wishlist-comp { position: absolute; right: 67px; top: 0; z-index: 5; margin: 0 !important; padding: 0; gap: 12px !important; }
  .typeheader-24 .header-middle ul.wishlist-comp > li { float: none; margin: 0; padding: 0; list-style: none; }
  .typeheader-24 .header-middle ul.wishlist-comp .btn-shopping-cart { position: relative; }
  .typeheader-24 .header-middle ul.wishlist-comp .top-link-wishlist { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 2px solid #e5e5e5; border-radius: 5px; background: none; }
  .typeheader-24 .header-middle ul.wishlist-comp .top-link-wishlist i { font-size: 18px; color: #282828; }
  .typeheader-24 .header-middle ul.wishlist-comp .biosef-count { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fb8a00; color: #fff; font-size: 11px; line-height: 20px; text-align: center; }
  .typeheader-24 .header-middle ul.wishlist-comp .dropdown-menu { display: none !important; }
  body header.typeheader-24 .header-middle .search-header-w .icon-search { position: absolute; right: 171px; top: 1px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 2px solid #e5e5e5; border-radius: 5px; }
  .typeheader-24 .header-middle .icon-search i { font-size: 18px; color: #282828; }
  .typeheader-24 .header-middle .search-header-w { position: static; }
  .typeheader-24 .header-middle .search-header-w #sosearchpro .search { left: auto; right: 15px; }
}

/* Phones: the panel of the right menu (Начало, Намалени, ...) in the colours of the Каталог panel: the light grey of the site, dark names, grey leaves */
@media (max-width: 767px) {
  .typeheader-24 .megamenu-style-dev .navbar-default .horizontal .megamenu-wrapper { background-color: #f0f1f2 !important; } /* important: the theme sets #333 with important */
  .typeheader-24 .megamenu-style-dev .navbar-default .horizontal .megamenu-wrapper ul.megamenu > li { border-color: #d9d9d9; }
  .typeheader-24 .megamenu-style-dev .navbar-default .horizontal .megamenu-wrapper ul.megamenu > li > a, .typeheader-24 .megamenu-style-dev .navbar-default .horizontal .megamenu-wrapper ul.megamenu > li > a strong { color: #222; }
  .typeheader-24 .megamenu-style-dev .navbar-default .horizontal .megamenu-wrapper ul.megamenu > li > a i { color: #666; }
  .typeheader-24 .megamenu-style-dev .navbar-default .horizontal .megamenu-wrapper #remove-megamenu { color: #222; }
}

/* Biosef 2026-11-09: the tab Отзиви and the stars under the title follow Настройки › Достъп › Отзиви (catalog/controller/extension/biosef/access.php) */

/* Biosef 2026-11-07: on phones the basket of the list view (before Любими and Сравни) is white like the two next to it, not orange */
@media (max-width: 767px) {
  body .products-list .product-list .product-item-container .list-block .addToCart { background-color: #fff !important; border-color: #eaeaea !important; color: #666 !important; }
  body .products-list .product-list .product-item-container .list-block .addToCart:hover { background-color: #fb8a00 !important; border-color: #fb8a00 !important; color: #fff !important; }
}

/* Biosef 2026-11-07: step Начин на плащане of the order: the agreement box big and orange like the one of the registration (filled when checked), the link Условия за плащане orange and underlined */
#collapse-payment-method .buttons .pull-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
#collapse-payment-method .buttons .pull-right input[name="agree"] { flex: none; width: 22px; height: 22px; margin: 0; -webkit-appearance: none; appearance: none; border: 2px solid #fb8a00; border-radius: 3px; background: #fff; position: relative; cursor: pointer; }
#collapse-payment-method .buttons .pull-right input[name="agree"]:checked { background: #fb8a00; }
#collapse-payment-method .buttons .pull-right input[name="agree"]:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
#collapse-payment-method .buttons .pull-right a.agree, #collapse-payment-method .buttons .pull-right a.agree b { color: #fb8a00; text-decoration: underline; }

/* (user 2026-11-16) shop filter: no lines between the check boxes, the space between the rows stays */
.so-filter-content-opts .so-filter-option.opt-select { border-top: 0 !important; }
