/* ============================================================================
 * Checkout cart hover dropdown — extracted verbatim from allnumbers.html's
 * styling (allnumbers-base.css / marketplace-number-style.css) so pages that
 * host the top-bar Checkout dropdown (e.g. portal.html) render it identically
 * to allnumbers.html. Opens on hover; rows are populated by shared.js.
 * ========================================================================== */

@keyframes scale-up-ver-top {
    0%   { -webkit-transform: scaleY(0.5); transform: scaleY(0.5); -webkit-transform-origin: top; transform-origin: top; }
    100% { -webkit-transform: scaleY(1);   transform: scaleY(1);   -webkit-transform-origin: top; transform-origin: top; }
}

.checkuot-dropdown { position: relative; }

/* Opens on hover via shared.js initNavDropdownHover() (adds .show to the
   .dropdown-menu), exactly like allnumbers.html — Bootstrap handles show/hide. */

/* Menu container + upward arrow notch */
.resources-dropdown {
    padding: 0; border-radius: 20px; min-width: fit-content; background: #fff;
    border: none; box-shadow: 0px 64px 250px 0px #00000040; right: 0;
    animation: scale-up-ver-top 0.2s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}
.checkuot-dropdown .resources-dropdown {
    position: absolute; right: 0 !important; left: unset !important; top: 100%;
    padding: 0; background-color: transparent; padding-top: 20px;
    min-width: 482px; box-shadow: unset; z-index: 3000;
}
.checkuot-dropdown .resources-dropdown::after {
    content: ""; position: absolute; right: 50px; top: 8px; margin: auto;
    width: 0; height: 0; border-left: 16px solid transparent;
    border-right: 16px solid transparent; border-top: 13px solid #fff; rotate: 180deg;
}
.checkuot-dropdown-box {
    background-color: #fff; border-radius: 20px; padding: 10px 0 1px;
    box-shadow: 0px 64px 250px 0px #00000040;
}

/* Cart item list */
.checkuot-dropdown .number-list { padding: 0px 30px; max-height: 257px; overflow: auto; }
.checkuot-dropdown .number-list::-webkit-scrollbar { width: 5px; }
.checkuot-dropdown .number-list::-webkit-scrollbar-thumb { background: linear-gradient(260deg, #467efe 5.26%, #61cafd 100%); border-radius: 50px; }
.checkuot-dropdown .number-list::-webkit-scrollbar-track { background: #dddddd; border-radius: 50px; }

.checkuot-dropdown .checkout-number { display: flex; gap: 10px; border-bottom: 1px solid #e7e7e7; margin-bottom: 10px; }
.checkuot-dropdown .checkout-number h1 { font-size: 18px; font-weight: 500; line-height: 27px; color: #222328; margin-bottom: 5px; margin-right: auto; }
.checkuot-dropdown .checkout-number p { font-size: 16px; font-weight: 400; line-height: 22px; color: #8c94b0; margin-bottom: 10px; }
.checkuot-dropdown .checkout-number div div P { margin-bottom: 0px; }
.checkuot-dropdown .checkout-number h2 { font-size: 18px; color: #222328; font-weight: 500; line-height: 28px; margin-bottom: 0; }
.checkuot-dropdown .checkout-number:last-child { border: none; margin-bottom: 0; }

.checkuot-dropdown .deleteNumber-btn { width: 45px; height: 45px; border: 1px solid #e7e7e7; border-radius: 100%; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }

/* Subtotal */
.checkuot-dropdown .subtotal { margin: 0px 0 20px; background: linear-gradient(95.35deg, rgba(70, 126, 254, 0.2) 5.26%, rgba(97, 202, 253, 0.2) 100%); padding: 8px 30px; gap: 10px; display: flex; justify-content: space-between; }
.checkuot-dropdown .subtotal h1 { font-size: 22px; font-weight: 600; line-height: 33px; margin-bottom: 0; color: #222328; }

/* Buttons (Clear Cart / Checkout) */
.checkuot-dropdown .checkout-btns { display: flex; gap: 20px; margin: 0 30px 18px; justify-content: space-between; }
.new-fill-btn { font-size: 18px; border: 1px solid #4260cb; border-radius: 30px; min-height: 55px; background-color: #4260cb; font-weight: 500; line-height: 27px; color: #fff; justify-content: center; }
.new-fill-btn:hover, .new-fill-btn:focus, .new-fill-btn:active { background-color: #fff; color: #4260cb; border: 1px solid #4260cb !important; }
.checkout-btns .clear-cart-btn { color: #fff; background-color: #bb2d3b; border: 1px solid #bb2d3b; border-radius: 30px; height: 55px; font-size: 18px; font-weight: 500; line-height: 27px; min-width: 140px; display: flex; align-items: center; justify-content: center; text-decoration: none; gap: 10px; cursor: pointer; margin-left: 0 !important; }
