/* ==============================================
   KOŠÍK – DOPRAVA, PLATBA & CHECKOUT SIDEBAR
   Upravuje: doprava/platba, Blansko toggle, sidebar, kontakt, kupon
   ============================================== */

/* ==================================================
   KROK 2: DOPRAVA A PLATBA (Kompaktní verze + FIX)
   ================================================== */

/* 2. KOMPAKTNÍ ŘÁDEK (Radio Wrapper) */
.order-delivery-payment-form .radio-wrapper {
    display: flex !important;
    align-items: center !important;
    min-height: 45px !important;
    padding: 5px 10px !important;
    margin-bottom: 5px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.order-delivery-payment-form .radio-wrapper.active {
    background-color: #fffcf5 !important;
    border-color: var(--rc-gold, #d8a06d) !important;
    box-shadow: 0 0 0 1px var(--rc-gold, #d8a06d) inset !important;
}

.crder-delivery-payment-form .radio-wrapper:hover { border-color: #bbb !important; }

.order-delivery-payment-form .radio-wrapper label {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    cursor: pointer !important;
    flex-wrap: nowrap !important;
}

.crder-delivery-payment-form .radio-wrapper input[type="radio"] { margin: 0 10px 0 0 !important; transform: scale(1.1) !important; }

.order-delivery-payment-form .payment-logo {
    order: -1 !important;
    margin-right: 15px !important;
    flex: 0 0 40px !important;
    text-align: center !important;
}
.order-delivery-payment-form .payment-logo img { max-height: 25px !important; width: auto !important; object-fit: contain !important; }

.order-delivery-payment-form .payment-info { flex: 1 !important; display: flex !important; flex-direction: column !important; justify-content: center !important; line-height: 1.2 !important; }

.crder-delivery-payment-form .shipping-billing-name { font-size: 14px !important; font-weight: 600 !important; color: #333 !important; margin: 0 !important; }

.order-delivery-payment-form .question-tooltip { display: none !important; }

.order-delivery-payment-form .payment-shipping-price {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin-left: 10px !important;
    white-space: nowrap !important;
}

.crder-delivery-payment-form .payment-shipping-price.for-free { color: #28a745 !important; font-size: 12px !important; text-transform: uppercase !important; }

.not-possible-info { color: #d9534f !important; font-size: 11px !important; font-style: italic !important; margin-top: 2px !important; line-height: 1.2 !important; }

.crder-delivery-payment-form .sublabel { margin: 0 !important; font-size: 12px !important; }
.crder-delivery-payment-form .sublabel a { color: var(--rc-gold, #d8a06d) !important; text-decoration: underline !important; }

@media (max-width: 575px) {
    .order-delivery-payment-form .payment-logo { flex: 0 0 30px !important; margin-right: 10px !important; }
    .order-delivery-payment-form .radio-wrapper { min-height: 50px !important; }
}

/* ==================================================
   FIX: SKRÝVÁNÍ ROZBALOVACÍCH MOŽNOSTÍ (ZASILKOVNA)
   ================================================== */

.order-delivery-payment-form .radio-wrapper:not(.active) .sublabel { display: none !important; }

.crder-delivery-payment-form .radio-wrapper.active .sublabel {
    display: block !important;
    width: 100% !important;
    margin-top: 5px !important;
    padding-top: 5px !important;
    border-top: 1px dotted #eee !important;
}

.crder-delivery-payment-form .sublabel a {
    color: var(--rc-gold, #d8a06d) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    background: #fff !important;
    border: 1px solid var(--rc-gold, #d8a06d) !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    display: inline-block !important;
}
.crder-delivery-payment-form .sublabel a:hover { background: var(--rc-gold, #d8a06d) !important; color: #fff !important; }

/* ==================================================
   BLANSKO TOGGLE
   ================================================== */

#shipping-210 { display: none !important; }

#shipping-127, #shipping-130, #shipping-70, #shipping-4, #shipping-64, #shipping-67 {
    display: none !important;
}

#shipping-127.local-shipping-visible,
#shipping-130.local-shipping-visible,
#shipping-70.local-shipping-visible,
#shipping-4.local-shipping-visible,
#shipping-64.local-shipping-visible,
#shipping-67.local-shipping-visible {
    display: flex !important;
    margin-left: 20px !important;
    width: calc(100% - 20px) !important;
    border-left: 3px solid var(--rc-gold, #d8a06d) !important;
    background-color: #f9f9f9 !important;
}

.toggle-local-shipping-btn {
    width: 100%; background-color: #fff; color: #333;
    border: 2px dashed #ccc; padding: 12px 15px; margin-bottom: 10px;
    border-radius: 6px; cursor: pointer; text-align: left;
    font-weight: 600; font-size: 14px; transition: all 0.2s ease;
    display: flex; justify-content: space-between; align-items: center;
}
.toggle-local-shipping-btn:hover { border-color: var(--rc-gold, #d8a06d); color: var(--rc-gold, #d8a06d); background-color: #fffcf5; }
.toggle-local-shipping-btn.open { border-style: solid; border-color: var(--rc-gold, #d8a06d); background-color: #fff; }

.toggle-local-shipping-btn::after {
    content: "" !important; display: inline-block !important;
    width: 0 !important; height: 0 !important;
    border-left: 6px solid transparent !important;
    border-right: 6px solid transparent !important;
    border-top: 7px solid #555 !important;
    margin-left: 10px !important;
    transition: transform 0.3s ease !important;
}
.toggle-local-shipping-btn.open::after { transform: rotate(180deg) !important; border-top-color: var(--rc-gold, #d8a06d) !important; }
.toggle-local-shipping-btn:hover::after { border-top-color: var(--rc-gold, #d8a06d) !important; }

.ordering-process .co-box h4 { line-height: 30px; margin: 0px 0 22px 10px; padding-left: 40px; position: relative; text-align: left; }
.ordering-process .co-box.co-payment-method h4 { margin-top: 30px; }

/* ==================================================
   FIX: ROZSÌŘENÍ KOŠÍKU (OD 1440px)
   ================================================== */

@media (min-width: 1440px) {
    .container { width: 1360px !important; max-width: 95% !important; }
    #checkoutContent { width: 66% !important; float: left !important; position: static !important; padding-right: 30px !important; margin: 0 !important; }
    #checkoutSidebar { width: 33% !important; float: right !important; position: static !important; margin: 0 !important; }
}

/* ==================================================
   SIDEBAR: REKAPITULACE OBJEDNaVKY PLOVOUI NA DETAILU
   ================================================== */

.order-summary-inner {
    background: #fff !important; border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important; padding: 25px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    position: -webkit-sticky !important; position: sticky !important;
    top: 20px !important; z-index: 99 !important;
}

.order-summary-inner h4 {
    font-size: 16px !important; text-transform: uppercase !important;
    font-weight: 700 !important; letter-spacing: 1px !important;
    border-bottom: 2px solid var(--rc-gold, #d8a06d) !important;
    padding-bottom: 15px !important; margin-bottom: 20px !important;
    margin-top: 0 !important; text-align: center !important;
}

.cart-item-name { flex: 1 !important; min-width: 0 !important; padding-right: 0 !important; line-height: 1.3 !important; text-align: left !important; font-size: 14px; font-weight: 600; }
.cart-item-price { flex: 0 0 auto !important; white-space: nowrap !important; font-weight: 700 !important; text-align: right !important; }
.cart-item-amount { color: #999 !important; font-size: 12px !important; margin: 0 10px !important; white-space: nowrap !important; }

.order-summary-item.helper {
    background: #f8f8f8 !important; margin: 15px 0 !important;
    padding: 12px 15px !important; border-radius: 6px !important;
    border: 1px solid #eee !important; color: #555 !important;
    display: flex !important; justify-content: space-between !important;
    align-items: center !important; width: 100% !important;
}
.crder-summary-item.helper > div { padding: 0 !important; margin: 0 !important; }

.recapitulation-shipping-billing-label { flex: 0 0 auto !important; color: #888 !important; padding-top: 3px !important; }

.recapitulation-shipping-billing-info { font-weight: 500 !important; color: #555 !important; font-size: 12px !important; line-height: 1.3 !important; }

.crder-summary-item.price { border: none !important; padding-top: 20px !important; margin-top: 0 !important; text-align: right !important; display: block !important; }

.price-wrapper { text-align: right !important; }
.price-wrapper .price-label.price-primary { display: block !important; font-size: 14px !important; color: #777 !important; margin-bottom: 5px !important; }
.price-wrapper .price.price-primary { display: block !important; font-size: 32px !important; font-weight: 800 !important; color: var(--rc-gold) !important; line-height: 1.1 !important; text-shadow: 0 1px 1px rgba(0,0,0,0.1) !important; }
.price-wrapper .price-secondary { display: block !important; font-size: 12px !important; color: #bbb !important; margin-top: 5px !important; }

/* ==================================================
   SIDEBAR FIX: ZAROVNÁNÍ CEN A TEXTŮ
   ================================================== */

.crder-summary-inner .order-summary-item {
    display: flex !important; align-items: flex-start !important;
    justify-content: space-between !important;
    border-bottom: 1px dashed #eee !important;
    gap: 15px !important; flex-wrap: nowrap !important;
}

.order-summary-inner .cart-item-name {
    flex: 1 !important; min-width: 0 !important; padding-right: 0 !important;
    line-height: 1.3 !important; text-align: left !important;
    white-space: normal !important; margin-bottom: 0 !important;
    color: var(--color-primary);
}
.order-summary-inner .cart-item-name a { display: block !important; }
.order-summary-inner .cart-item-price { flex: 0 0 auto !important; white-space: nowrap !important; font-weight: 700 !important; text-align: right !important; margin-left: 10px !important; }
.crder-summary-inner img { max-width: 40px !important; height: auto !important; margin-right: 10px !important; border-radius: 4px !important; flex-shrink: 0 !important; }

.order-summary-inner .recapitulation-single {
    display: flex !important; justify-content: space-between !important;
    align-items: flex-start !important; margin-bottom: 12px !important;
    font-size: 13px !important; border-bottom: 1px solid #f5f5f5 !important; padding-bottom: 8px !important;
}

.order-summary-inner .recapitulation-shipping-billing-label { flex: 0 0 auto !important; color: #888 !important; padding-top: 3px !important; }

.order-summary-inner .recapitulation-shipping-billing-info {
    display: flex !important; align-items: flex-start !important;
    justify-content: space-between !important;
    padding: 12px 0 !important; border-bottom: 1px dashed #eee !important;
    gap: 15px !important; flex-wrap: nowrap !important;
}

.order-summary-inner .recapitulation-shipping-billing-info span {
    display: block !important; font-weight: 800 !important; color: #000 !important;
    font-size: 14px !important; margin-bottom: 2px !important; order: -1 !important;
}

/* ==================================================
   KOŠÍK FIX: OPRAVA PRO TABLETY A MOBILY
   ================================================== */

@media (max-width: 991px) {
    #checkoutContent, #checkoutSidebar {
        width: 100% !important; float: none !important;
        padding-right: 0 !important; max-width: 100% !important; display: block !important;
    }
    .order-summary-inner {
        position: static !important; margin-top: 30px !important;
        width: 100% !important; box-shadow: none !important; border: 1px solid #eee !important;
    }
    .order-summary-inner .order-summary-item { flex-direction: row !important; align-items: center !important; }
    .crder-summary-inner img { display: block !important; max-width: 50px !important; }
    .checkout-box { width: 100% !important; }
}

/* ==================================================
   KOSŠÍK SIDEBAR: KONTAKTLÍ BOX
   ================================================== */

@media (min-width: 768px) and (max-width: 9999em) {
    .cart-inner .checkout-box .contact-box { padding: 0 0 0 0; }
}

.checkout-box { border-style: none; border-width: 1px; margin: 20px 0 22px; padding: 0; }

.checkout-box .toggle-contacts {
    background-color: #fff !important; border: 2px solid #eee !important;
    border-radius: 8px !important; padding: 15px !important;
    text-align: center !important; display: flex !important;
    flex-direction: column !important; align-items: center !important;
    justify-content: center !important; cursor: pointer !important;
    transition: all 0.2s ease !important; font-size: 15px !important;
    font-weight: 600 !important; color: #333 !important;
    min-height: auto !important; position: relative !important;
    white-space: normal !important; box-shadow: 0 4px 6px rgba(0,0,0,0.03) !important;
}
.checkout-box .toggle-contacts:hover { border-color: var(--rc-gold, #d8a06d) !important; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.1) !important; }
.checkout-box .toggle-contacts::before, .checkout-box .toggle-contacts::after { display: none !important; }

.checkout-box .toggle-contacts span {
    display: flex !important; align-items: center !important;
    justify-content: center !important; margin-top: 8px !important;
    font-size: 20px !important; color: var(--rc-gold, #d8a06d) !important; font-weight: 800 !important;
}
.checkout-box .toggle-contacts span::before { content: "tel. " !important; font-size: 14px !important; margin-right: 8px !important; color: #333 !important; font-weight: normal !important; }

.checkout-box .box-bg-default { background: transparent !important; border: none !important; box-shadow: none !important; padding: 15px 0 0 0 !important; margin-top: 0 !important; }

.contact-box { display: flex !important; flex-direction: column !important; align-items: center !important; width: 100% !important; }

.contact-box img {
    width: 120px !important; height: 120px;
    border-radius: 75px !important; object-fit: cover !important;
    padding: 3px !important; background: #fff !important;
    margin-bottom: 15px !important; box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
    left: 0px; max-width: 100% !important; position: relative !important;
}

.contact-box strong { display: block !important; font-size: 18px !important; font-weight: 700 !important; color: #000 !important; margin-bottom: 20px !important; text-align: center !important; }

.contact-box ul { padding: 0 !important; margin: 0 !important; list-style: none !important; width: 100% !important; }

.contact-box ul li {
    margin-bottom: 12px !important; display: flex !important; align-items: center !important;
    background: #fff !important; border: 1px solid #eee !important;
    border-radius: 6px !important; padding: 12px 15px !important; width: 100% !important;
}

.contact-box a { color: #333 !important; text-decoration: none !important; font-size: 14px !important; font-weight: 600 !important; flex: 1 !important; }
.contact-box a:hover { color: var(--rc-gold, #d8a06d) !important; }

.contact-box li span::before, .contact-box li i { color: var(--rc-gold, #d8a06d) !important; font-size: 18px !important; margin-right: 15px !important; display: inline-block !important; text-align: center !important; width: 24px !important; }

@media (max-width: 480px) {
    .cart-widget-product .cart-widget-product-name { width: 32% !important; font-size: 12px; }
    .cart-widget-product-unit { width: 40px; display: none !important; }
    .cart-widget-product-amount { width: 103px !important; }
    .cart-widget-product-image { height: 59px !important; text-align: center; width: 60px !important; }
    .quantity { padding-left: 30px !important; padding-right: 30px !important; }
    .cart-widget-product-price { text-align: right; font-size: 12px; }
}

.discount-coupon .btn { display: block; font-size: 0; line-height: 32px; padding-left: 20px; padding-right: 20px; width: 100%; border-radius: 0px 5px 5px 0px !important; }

.sidebar-inner { padding-top: 0px; }

.coupon-input .discount-coupon form.input-group { display: flex; flex-wrap: nowrap; align-items: stretch; }
.coupon-input .discount-coupon form.input-group input { flex: 1 1 auto; min-width: 0; }
.coupon-input .discount-coupon form.input-group button { flex: 0 0 auto; width: auto !important; display: inline-flex !important; align-items: center; justify-content: center; white-space: nowrap; font-size: 14px; line-height: 1.2; }
