.title { position: relative; margin-bottom: 25px; }

.btnt { display: inline-block; background: #27ae60; color: #fff; text-transform: uppercase; padding: 7px 20px; text-align: center; }
.btnt:hover { background: #484848; }
.btnn { display: inline-block; background: #aaaaaa; color: #fff; text-transform: uppercase; padding: 7px 20px; text-align: center; }
.btnn:hover { background: #484848; }

/*---------- Checkout fields and boxes ----------
   One look on every checkout page (cart, Доставка и Плащане, Потвърди, thank-you) and the order view in Моите поръчки:
   the same grey border, red while you type, no rounded corners.
   Fields: .input-form, .checkout-input (one input: promo code, Speedy search), the quantity box. Read-only boxes: .final-text.
   The "Map" button and the map popup (public/styles/map-dialog.css) and the Speedy list (public/styles/speedy-picker.css) take the same variables.
   .input-form on login and Лични данни (vhod.css, moipor.css) keeps #e1e4dc: the override is only inside .bigTabCont. */
:root { --field-border: #bbb; --field-border-focus: #dc2b19; }
.bigTabCont .input-form,
.checkout-input { border: 1px solid var(--field-border); border-radius: 0; }
.bigTabCont .input-form:focus-within,
.checkout-input:focus { border-color: var(--field-border-focus); outline: none; }

.final-text { min-height: 38px; font-size: 15px; color: #000; background: #fff; border: 1px solid var(--field-border); margin-bottom: 20px; padding: 10px 15px; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; }

.bigTabCont { overflow: hidden; }
.bigTabCont a { text-decoration: none; }
ul.big-tabs { margin: 0 !important; height: 38px; padding: 0; border-bottom: 1px solid #ccc; }
ul.big-tabs li { float: left; padding: 0; margin: 0; list-style-type: none; }
ul.big-tabs a { float: left; font-size: 14px; text-transform: uppercase; display: block; padding: 9px 18px; text-decoration: none; border: 1px solid #fff; border-bottom: 0px; background: #fff; height: 18px; color: #b0b1b4; margin-right: 4px; position: relative; top: 1px; outline: 0; }
ul.big-tabs a:hover { color: #000; }
ul.big-tabs a.current-tab { border: 1px solid #ccc; border-bottom: 1px solid #F6F6F6; color: #000 !important; cursor: default; background: #F6F6F6; font-weight: bold; }

.my-basket { background: #F6F6F6; padding: 20px; }
.out-stock { background: #FAFFBD; }
.big-panes { padding: 20px 5px; }
.goods { margin-bottom: 15px; font-size: 16px; }
.out-stock .goods { color: #dc2b19; }

/*--------------- shopping cart table ------------- */
.my-basket table { overflow: hidden; width: 100%; border-collapse: collapse; border: none; margin-bottom: 20px; }
.my-basket table th { display: table-cell; padding: 12px 8px; color: #000; background: #ddd; border-bottom: 2px solid #bbb; font-size: 12px; overflow: hidden; text-align: center; text-transform: uppercase; }
.my-basket table td { background: #fff; display: table-cell; padding: 8px 12px; font-size: 14px; color: #333; text-align: center; border-top: 1px solid #f3f2f0; border-left: 1px solid #f3f2f0; }
.my-basket table td:before { display: none; content: attr(data-th); width: 30%; color: #999; font-weight: normal; }
.my-basket td.flex-break { display: none; }
.out-stock table th { background: #dc2b19; color: #fff; }
.p-img { text-align: center; max-height: 100px; overflow: hidden; }
.p-img img { max-width: 100px; }
.cart-pr-info { text-align: left; }
.cart-pr-info a { font-size: 14px; font-weight: bold; color: #000; }
.cart-pr-info a:hover { color: #dc2b19; }
.cart-pr-info .code { padding: 0px; color: #818181; margin-top: 2px; }

div.bigTabCont div.my-basket table tbody tr td button {
    background-color: #4CAF50;
    border: navajowhite;
    color: white !important;
    padding:  0.5rem 1rem;
    text-align: center;
    font-size: 15px ;
    font-weight: bold;
    border-radius: 0.2rem
}
div.bigTabCont div.my-basket table tbody tr td button:hover{
    background: green;
}
div.bigTabCont div.my-basket table tbody tr td button a
{color: white !important;
}

/*---------- instructions --------- */
.instructions textarea.pole { height: 70px; }
.instructions .btn { font-weight: normal; font-size: 13px; margin-top: 0px; display: block; }
.instructions .btnn { font-weight: normal; font-size: 13px; margin-top: 0px; display: block; }
.instructions .btnt { font-weight: normal; font-size: 13px; margin-top: 0px; display: block; }

/*---------- change quantity --------- */
.change-qty { position: relative; text-align: center; min-width: 90px; }
.change-qty > div { display: inline-block; }
.change-qty input { display: block; float: left; outline: none; border: 1px solid var(--field-border); width: 36px; height: 26px; text-align: center; margin: 0 5px; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; }
.change-qty input[type="text"]:focus { color: #dc2b19; border-color: var(--field-border-focus); }
.change-down, .change-up { display: block; float: left; color: #bbb; font-size: 20px; font-weight: bold; }
.change-down:hover, .change-up:hover { color: #000; }
.sum { display: inline-block; color: #000; font-size: 16px; font-weight: bold; text-align: left;}

/*---------- icons in table --------- */
.clear-prod, .icon-in-basket { font-size: 18px; }
.icon-in-basket i.fa-map-marker { font-size: 20px; }
.clear-prod { color: #aaa; font-size: 20px; }
.clear-prod:hover { color: #dc2b19; }

/*---------- final price --------- */
.my-basket table tr.other-styles td { background: #f6f6f6; border-bottom: 1px solid #e6e6e6; border-left: 1px solid transparent; }
.text-value { text-align: right; font-weight: bold; font-size: 14px; }
.delivery-cost { text-align: left; font-size: 14px; }
.pr-value { display: inline-block; color: #000; font-size: 18px; font-weight: bold; text-align: left; white-space: nowrap; }
.sum-red { display: inline-block; color: #dc2b19; font-size: 18px; font-weight: bold; text-align: left; }
.info-icon a { color: #aaa; font-size: 20px; }
.info-icon a:hover { color: #000; }

/*---------- delivery info --------- */
.delivery-free { float: left; width: 65%; background: #fff; text-align: right; }
.delivery-price { float: right; width: 35%; background: #fff; }
.d-tr { width: 100%; display: table; color: #818181; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; }
.d-tr > div { display: table-cell; width: 50%; font-size: 14px; padding: 8px; border: 1px solid #f3f2f0; line-height: 22px; }
.d-tr > div.d-th { font-weight: bold; text-align: center; color: #444; font-size: 15px; background: #ddd; width: 100%; }
.red-text { color: #dc2b19; }

/*---------- buttons in basket --------- */
th.alt-btn{border-radius:  5px 0 0 0 !important;}
div.my-basket:nth-child(1) > table:nth-child(2) {border-radius: 5px!important;}
div.my-basket:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > th:nth-child(7){border-radius:  0 5px 0 0 !important;}
.alt-btn{background: #fbe3e3!important;transition: all 0.4s;padding: 0!important;margin: 0!important;}
.alt-btn:hover{background: linear-gradient(to right,#f2f2f2,#67b26b) !important;}
.alt-btn span{display: inline-block;position: relative;transition: 0.4s;}
.alt-btn span:after{content: '\003E \003E';position: absolute;opacity: 0;top: 0;right: -20px;transition: 0.5s;}
.alt-btn:hover span{ padding-right: 20px; }
.alt-btn:hover span:after{opacity: 1;right: 0;}

.btns-place { margin: 30px 0; }
.btns-place a { display: block; float: left; height: 44px; min-width: 140px; background: #48c231; text-align: center; position: relative; font-size: 15px; text-transform: uppercase; color: #fff; line-height: 44px; padding: 0 25px; font-weight: bold; }
.btns-place a.b-left { float: left; background: #333; }
.btns-place a.b-right { float: right; }
.btns-place a.b-rightt { float: right; min-width: 50px; padding: 0 10px; margin-left: 10px; }
.btns-place a:hover { background: #000; }

@media only screen and (max-width: 1280px) {
.my-basket table td { padding: 6px 8px; }
}

@media only screen and (max-width: 990px) {
.my-basket table tr { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid #ebebeb; padding: 0.6rem 0px }
.my-basket table th { display: none; }
.my-basket table td { display: flex; align-items: center; padding: 4px 6px; background: none; border: 0; text-align: left; }
.my-basket table td:before, .my-basket table td:nth-child(1) { display: none; }
.my-basket table tr:not(.other-styles) td:nth-child(2) { flex: 0 0 76px; }
.my-basket table tr:not(.other-styles) td:nth-child(3) { flex: 1; min-width: 0; }
.my-basket table tr:not(.other-styles) td.flex-break { display: block; flex: 0 0 100%; height: 0; padding: 0; }
.my-basket table tr.other-styles { background: #ddd; }
.my-basket table tr:not(.other-styles) + tr.other-styles { margin-top: 1.6rem; }
.my-basket table tr.other-styles td { background: none; border: none; padding-top: 6px; padding-bottom: 6px; }
.my-basket table tr.other-styles td.no-td { display: none; }
.delivery-free, .delivery-price { float: none; width: auto; }
}

@media only screen and (max-width: 560px) {
ul.big-tabs { overflow: hidden;height: auto;margin-bottom: 10px !important; }
ul.big-tabs li, ul.big-tabs a { float: none;margin-right: 0; }
ul.big-tabs a.current { background: #f2f3f5; color: #fff ; }
.my-basket { padding: 10px; }
}

@media only screen and (max-width: 500px) {
.btns-place a, .btns-place a.b-left, .btns-place a.b-right { float: none; margin-bottom: 10px; }
}
/*---------- checkout step 2: one column (case_dopl.php, case_dopl_no.php) --------- */
/* The side bubbles (.just-text-bubble, lichni.css) are gone here; the .just-text twin is the one line under the field, on every width. */
.delivery.checkout-step .just-text-bubble { display: none; }
.delivery.checkout-step .just-text { display: block; }
.delivery.checkout-step .just-text.skrit,
.delivery.checkout-step .just-text[hidden] { display: none; } /* speedy-picker.js hides kurofadr1 with the hidden attribute */
.delivery.checkout-step .checkout-next { margin-bottom: 0; }
/* position: sticky needs no overflow:hidden ancestor; clip still clips but is not a scroll container. */
.bigTabCont:has(.checkout-step) { overflow: clip; }
@media only screen and (max-width: 1023px) {
.delivery.checkout-step .checkout-next { position: sticky; bottom: 0; z-index: 5; margin: 20px -20px 0; padding: 12px 20px; background: #F6F6F6; box-shadow: 0 -6px 12px -8px rgba(0, 0, 0, .25); }
}
/* Radio labels are block flex rows (Tailwind's inline-flex is !important, hence the override): the radio circle (::before, 15px + 10px margin,
   filtri.css) is the first flex item and the text hangs beside it instead of wrapping under it. Payment labels add the text span (mr-2 = 8px) and
   the logos in one .payment-logos span. Flex lines break on the hypothetical size, so the text is capped to the row minus the circle: a short
   logo group stays on the same row (PayPal, bank), a long one (cards) moves to the next row as a whole. */
.delivery.checkout-step .radio-custom label { display: flex !important; align-items: flex-start; }
.delivery.checkout-step .radio-custom label > span:first-of-type { flex: 0 1 auto; max-width: calc(100% - 34px); }
.delivery.checkout-step .payment-logos { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 0; max-width: 100%; }
.delivery.checkout-step .just-text:empty { display: none; }

/* Step 2: a disabled option (cash on delivery with a locker) fades; the address wrapper hides even though it is display: contents. */
.delivery.checkout-step .radio-custom input:disabled + label { opacity: 0.5; cursor: default; }
.delivery.checkout-step #delivery_address_fields { display: contents; } /* not Tailwind's .contents: that one is !important and would beat [hidden] */
.delivery.checkout-step #delivery_address_fields[hidden] { display: none; }
.delivery.checkout-step #cod_locker_note { color: #818181; font-size: .9em; margin: -16px 0 20px; }

/* Step 2: address suggestions under the street field (src/islands/AddressMap.tsx; the shop: scripts/address-map.js); the suggestion list sits right under the street row. */
.delivery.checkout-step .address-map-hint { margin: -12px 0 20px; }
.delivery.checkout-step .address-map-suggestions { list-style: none; margin: 0; padding: 0; border: 1px solid var(--field-border); border-top: 0; background: #fff; }
.delivery.checkout-step .address-map-suggestions li { padding: 8px 10px; cursor: pointer; }
.delivery.checkout-step .address-map-suggestions li:hover, .delivery.checkout-step .address-map-suggestions li.active { background: #f0f0f0; }
/* The map itself is in the popup (public/styles/map-dialog.css): it fills the popup under the title. */
.address-map-canvas { background: #e9e9e9; }
/* ЕИК декодер: бутонът „Попълни“ до полето ЕИК във формата за фактура (citte/utils/company_lookup_button.php, islands/DeliveryForm.tsx) */
.company-lookup-row { display: flex; gap: 8px; }
.company-lookup-row .input-form { flex: 1; min-width: 0; }
.company-lookup-btn { flex: none; padding: 0 16px; background: #48c231; color: #fff; font-size: 14px; font-weight: bold; text-transform: uppercase; border: 0; cursor: pointer; }
.company-lookup-btn:hover { background: #000; }
.company-lookup-btn:disabled { opacity: 0.6; cursor: wait; }
