/* MILACKOVO – VLASTNE UPRAVY 1, 2, 3 */

/* 1 – KUPIT TERAZ */
.p-detail button.express-checkout-button {
    background: #FCE4F0 !important;
    background-color: #FCE4F0 !important;
    border: 1px solid #F4B7D4 !important;
    color: #D24C92 !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
}

.p-detail button.express-checkout-button *,
.p-detail button.express-checkout-button::before {
    color: #D24C92 !important;
}

.p-detail button.express-checkout-button:hover {
    background: #F8D2E5 !important;
    background-color: #F8D2E5 !important;
    border-color: #D24C92 !important;
    color: #D24C92 !important;
}

/* 2 – TRI TLACIDLA */
/* MILÁČKOVO – TRI TLAČIDLÁ */

.p-detail .link-icons[data-testid="productDetailActionIcons"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 420px !important;
}

.p-detail .link-icons[data-testid="productDetailActionIcons"] > a.link-icon {
    display: inline-flex !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 9px 2px !important;
    white-space: nowrap !important;
    background: #fff !important;
    border: 1px solid #4CB7BF !important;
    border-radius: 12px !important;
    color: #26364A !important;
    font-size: 11px !important;
    text-decoration: none !important;
}

.p-detail .link-icons[data-testid="productDetailActionIcons"] > a.link-icon::before {
    color: #4CB7BF !important;
    font-size: 16px !important;
    margin: 0 !important;
}

.p-detail .link-icons[data-testid="productDetailActionIcons"] > a.link-icon span {
    color: #26364A !important;
    font-size: 11px !important;
    text-decoration: none !important;
}

.p-detail .link-icons[data-testid="productDetailActionIcons"] > a.link-icon:hover {
    background: #EDF8F8 !important;
}

@media (max-width: 767px) {
    .p-detail .link-icons[data-testid="productDetailActionIcons"] {
        max-width: 100% !important;
    }
}

/* 3 – NEWSLETTER */
/* MILACKOVO – UPRAVA 3: NEWSLETTER PC + MOBIL */
.newsletter-section{box-sizing:border-box!important}
.newsletter-section .nl-content{box-sizing:border-box!important;min-width:0!important}
.newsletter-section .nl-content form,.newsletter-section .nl-content fieldset{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.newsletter-section .newsletter-row{display:flex!important;flex-direction:row!important;align-items:stretch!important;gap:10px!important;width:100%!important;min-width:0!important}
.newsletter-section .newsletter-row input[type=email]{flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;height:46px!important;box-sizing:border-box!important;border-radius:12px!important}
.newsletter-section .newsletter-submit,.newsletter-section .newsletter-submit:hover{flex:0 0 auto!important;width:auto!important;height:46px!important;padding:0 22px!important;margin:0!important;border-radius:12px!important;background:#FF9800!important;background-color:#FF9800!important;color:#fff!important;font-weight:700!important}
.newsletter-section .newsletter-consent{position:relative!important;display:block!important;width:100%!important;margin:12px 0 0!important;padding:0!important;box-sizing:border-box!important;clear:both!important}
.newsletter-section .newsletter-consent input[type=checkbox]{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;appearance:none!important}
.newsletter-section .newsletter-consent label{position:relative!important;display:block!important;width:100%!important;min-width:0!important;margin:0!important;padding-left:25px!important;color:#fff!important;font-size:12px!important;line-height:1.5!important;white-space:normal!important;box-sizing:border-box!important;cursor:pointer!important}
.newsletter-section .newsletter-consent a{color:#fff!important;text-decoration:underline!important}
@media(min-width:768px){
.newsletter-section .nl-content{width:440px!important;max-width:calc(100% - 20px)!important;margin:0 auto!important}
.newsletter-section .newsletter-row{margin-top:15px!important}
}
@media(max-width:767px){
.newsletter-section{position:relative!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;padding:25px 15px 120px!important;overflow:hidden!important}
.newsletter-section .nl-content{position:relative!important;z-index:2!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 auto!important;padding:0!important;transform:none!important}
.newsletter-section .nl-title{text-align:center!important;font-size:21px!important;line-height:1.3!important;margin:0 0 18px!important}
.newsletter-section .newsletter-row{flex-direction:column!important;align-items:stretch!important;gap:10px!important;margin:0!important}
.newsletter-section .newsletter-row input[type=email],.newsletter-section .newsletter-submit{display:block!important;flex:none!important;width:100%!important;max-width:100%!important;height:46px!important;box-sizing:border-box!important}
.newsletter-section .newsletter-consent{position:relative!important;display:block!important;width:100%!important;max-width:100%!important;margin:14px 0 0!important;padding:0!important;clear:both!important}
.newsletter-section .newsletter-consent label{display:block!important;width:100%!important;max-width:100%!important;padding-left:25px!important;white-space:normal!important;text-align:left!important;line-height:1.5!important}
.newsletter-section>.dog-img{position:absolute!important;z-index:1!important;top:auto!important;bottom:0!important;width:auto!important;max-height:110px!important;object-fit:contain!important}
.newsletter-section>.dog-img:first-child{left:5px!important;right:auto!important}
.newsletter-section>.dog-img:last-child{right:5px!important;left:auto!important}
}

/* 5 – ODSTRANENIE PRAZDNEHO MIESTA V PATiCKE */
#footer .custom-footer__banner7 {
    display: none !important;
}

/* 6 – ZLAVOVY KUPON: TLACIDLO POUZIT */
html body button[data-testid="buttonSubmitDiscountCoupon"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 125px !important;
    height: 48px !important;
    padding: 0 16px !important;
    background: rgba(76, 183, 191, 0.15) !important;
    background-color: rgba(76, 183, 191, 0.15) !important;
    background-image: none !important;
    border: 1px solid #4CB7BF !important;
    border-radius: 12px !important;
    color: transparent !important;
    font-size: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}
html body button[data-testid="buttonSubmitDiscountCoupon"]::before {
    content: "➜" !important;
    display: inline-block !important;
    color: #238A93 !important;
    font-size: 19px !important;
    line-height: 1 !important;
}
html body button[data-testid="buttonSubmitDiscountCoupon"]::after {
    content: "Použiť" !important;
    display: inline-block !important;
    color: #238A93 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}
html body button[data-testid="buttonSubmitDiscountCoupon"]:hover {
    background: #4CB7BF !important;
    background-color: #4CB7BF !important;
    background-image: none !important;
    border-color: #4CB7BF !important;
}
html body button[data-testid="buttonSubmitDiscountCoupon"]:hover::before,
html body button[data-testid="buttonSubmitDiscountCoupon"]:hover::after {
    color: #FFFFFF !important;
}

/* 6 – OPRAVA ZBALOVANIA POLA ZLAVOVEHO KUPONU */
.coupon-input .discount-coupon[style*="display: none"] {
    display: none !important;
}


/* 7 – KOSIK: ZOBRAZENIE CIEN PRI AKTIVNOM KUPONE
   Funguje len na riadkoch, kde JS pridal .milackovo-savings-info. */
tr.removeable:has(.milackovo-savings-info) .p-price .price-final {
    text-decoration: line-through !important;
    color: #999999 !important;
    font-weight: 400 !important;
}
tr.removeable:has(.milackovo-savings-info) td.p-total {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}
tr.removeable td.p-total .milackovo-savings-info {
    display: contents !important;
}
tr.removeable td.p-total .milackovo-savings-original {
    order: 1 !important;
    color: #999999 !important;
    text-decoration: line-through !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}
tr.removeable:has(.milackovo-savings-info) td.p-total .price-final {
    order: 2 !important;
    color: #238A93 !important;
    font-weight: 700 !important;
}
tr.removeable td.p-total .milackovo-savings-amount {
    order: 3 !important;
    color: #D24C92 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-top: 3px !important;
}


/* 8 – MOBIL 320 px: SCHVALENE KOMPAKTNE POCITADLO MNOZSTVA */
@media (max-width: 360px) {
    tr.removeable td.p-quantity .quantity {
        display: flex !important;
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
        box-sizing: border-box !important;
    }
    tr.removeable td.p-quantity .quantity input {
        flex: 0 0 24px !important;
        width: 24px !important;
        min-width: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }
    tr.removeable td.p-quantity .quantity .increase,
    tr.removeable td.p-quantity .quantity .decrease {
        flex: 0 0 24px !important;
        width: 24px !important;
        min-width: 0 !important;
        padding: 0 !important;
    }
    tr.removeable td.p-quantity .quantity input.amount {
        position: relative !important;
        left: -10px !important;
        text-align: center !important;
    }
}


/* 9 – KOSIK: TLACIDLO „TERAZ NEPOUZIT“ PRI UPLATNENOM KUPONE */
/* Vizuálne premenovanie; samotné odstránenie kupónu zostáva funkciou Shoptetu. */
.applied-coupon button.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 145px !important;
    min-height: 38px !important;
    padding: 8px 14px !important;
    background: #fff !important;
    border: 1px solid #4CB7BF !important;
    border-radius: 22px !important;
    color: #238A93 !important;
    font-size: 0 !important;
    box-shadow: none !important;
}
.applied-coupon button.btn::before {
    content: none !important;
    display: none !important;
}
.applied-coupon button.btn::after {
    content: "Teraz nepoužiť" !important;
    display: inline-block !important;
    font-family: Comfortaa, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #238A93 !important;
    white-space: nowrap !important;
}
.applied-coupon button.btn:hover {
    background: #EDF8F8 !important;
}
