/* KOHUDIS add-to-cart feedback v2 preview (1.0.226). Scoped to html.koh-atc-v2. */
html.koh-atc-v2 .koh-view-cart-after-add { display: none !important; }

html.koh-atc-v2 .single_add_to_cart_button.koh-atc-busy,
html.koh-atc-v2 .kohudis-mobile-buy-bar__button.koh-atc-busy { opacity: .75; cursor: progress; }
html.koh-atc-v2 .single_add_to_cart_button.koh-atc-done,
html.koh-atc-v2 .kohudis-mobile-buy-bar__button.koh-atc-done {
    background: #1e7a3c !important; border-color: #1e7a3c !important; color: #fff !important;
}

.koh-atc-incart {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; padding: 12px 16px;
    border: 1px solid #bfe3cb; border-radius: 14px; background: #f1faf4; color: #1e5c33 !important;
    font-size: 15px; font-weight: 600; text-decoration: none !important;
}
.koh-atc-incart[hidden] { display: none !important; }
.koh-atc-incart b { color: #1e7a3c; }
.koh-atc-incart__link { color: #b84c00; font-weight: 800; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

.koh-atc-bar-incart { display: block; margin-top: 2px; color: #1e7a3c !important; font-size: 13px; font-weight: 800; text-decoration: none !important; }

.ct-dynamic-count-cart.koh-atc-bump { animation: koh-atc-bump .6s ease; }
@keyframes koh-atc-bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); background: #1e7a3c; } 100% { transform: scale(1); } }

.koh-atc-panel {
    position: fixed; z-index: 100000; top: 90px; right: 24px; width: 360px; max-width: calc(100vw - 32px); box-sizing: border-box;
    padding: 18px; border: 1px solid #eadfd3; border-radius: 18px; background: #fff; color: #181614;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18); opacity: 0; transform: translateY(-10px); transition: opacity .2s, transform .2s;
    font-size: 15px;
}
.koh-atc-panel.is-open { opacity: 1; transform: none; }
.koh-atc-panel[hidden] { display: none; }
.koh-atc-panel__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 16px; }
.koh-atc-panel__head strong { flex: 1; }
.koh-atc-panel__ok { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #1e7a3c; color: #fff; font-size: 14px; }
.koh-atc-panel__head--err strong { color: #b42318; }
.koh-atc-panel__close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f2eee8; color: #4a4239; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.koh-atc-panel__item { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #f0e8df; }
.koh-atc-panel__item img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: #f6f6f6; flex: 0 0 auto; }
.koh-atc-panel__name { margin: 0 !important; font-weight: 800; line-height: 1.3; }
.koh-atc-panel__added { margin: 3px 0 0 !important; color: #6b6259; font-size: 14px; }
.koh-atc-panel__sum { margin: 12px 0 14px; display: grid; gap: 6px; }
.koh-atc-panel__sum div { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.koh-atc-panel__sum dt { color: #6b6259; font-weight: 500; }
.koh-atc-panel__sum dd { margin: 0; font-weight: 800; }
.koh-atc-panel__actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.koh-atc-panel__go, .koh-atc-panel__keep {
    display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 12px; border-radius: 999px;
    font: inherit; font-size: 14px; font-weight: 800; text-align: center; cursor: pointer; text-decoration: none !important;
}
.koh-atc-panel__go { background: #1a1a1a; color: #fff !important; border: 0; }
.koh-atc-panel__keep { background: #fff; color: #181614; border: 1px solid #d9d2c9; }
.koh-atc-panel__err { margin: 0 !important; color: #4a4239; }

@media (max-width: 689px) {
    .koh-atc-panel {
        top: auto; right: 0; left: 0; bottom: 0; width: 100%; max-width: none; border-radius: 20px 20px 0 0;
        padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(100%);
    }
    .koh-atc-panel.is-open { transform: none; }
    html.koh-atc-panel-open .kohudis-mobile-buy-bar { visibility: hidden; }
}
/* 1.0.241: stronger selectors for the "Added" state; button labels stay on one line */
html.koh-atc-v2 body.single-product form.cart button.single_add_to_cart_button.koh-atc-done,
html.koh-atc-v2 body .kohudis-mobile-buy-bar button.kohudis-mobile-buy-bar__button.koh-atc-done {
    background: #1e7a3c !important; background-image: none !important; border-color: #1e7a3c !important; color: #fff !important;
}
.koh-atc-panel__actions { grid-template-columns: 1fr 1fr; }
.koh-atc-panel__go, .koh-atc-panel__keep { white-space: nowrap; }

/* 1.0.242: chat bubble must not cover the confirmation */
html.koh-atc-panel-open #tidio-chat { visibility: hidden !important; }

/* 1.0.243: order total row */
.koh-atc-panel__sum .koh-atc-panel__total { margin-top: 4px; padding-top: 8px; border-top: 1px solid #f0e8df; }
.koh-atc-panel__total dt { color: #181614 !important; font-weight: 800 !important; }
.koh-atc-panel__total dd { color: #1a1a1a; font-size: 18px; }
.koh-atc-panel__note { margin: 2px 0 0 !important; color: #7a7066; font-size: 12.5px; }
