/* Gold-select appearance from the Collections page (Inventory.cshtml). */
.ce-gold-select {
    position: relative;
}

.ce-gold-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ce-gold-select-trigger {
    display: flex;
    width: 100%;
    min-height: 3rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.4);
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    transition: border-color 0.15s ease;
}

.ce-gold-select-trigger:hover:not(:disabled),
.ce-gold-select-trigger[aria-expanded="true"]:not(:disabled) {
    border-color: rgba(212, 168, 83, 0.42);
}

.ce-gold-select-trigger:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ce-gold-select-trigger span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Set names run long ("2022 Canvas Collection - Women of Marvel") -- give
   that dropdown a wider column and let its label wrap up to two lines
   instead of ellipsis-truncating to one. */
.ce-gold-select-wide .ce-gold-select-trigger {
    align-items: flex-start;
    min-height: 3.6em;
}

.ce-gold-select-wide .ce-gold-select-trigger span:first-child {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    line-height: 1.3;
}

.ce-gold-select-wide .ce-gold-select-caret {
    margin-top: 0.15em;
}

.ce-gold-select-caret {
    flex: 0 0 auto;
    color: #f4cf80;
    font-size: 1.15rem;
    line-height: 1;
}

.ce-gold-select-popover {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid rgba(212, 168, 83, 0.38);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 0.35rem;
}

.ce-gold-select-option {
    display: block;
    width: 100%;
    min-height: 2.7rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
    font-weight: 750;
    line-height: 1.3;
    padding: 0.6rem 0.85rem;
    text-align: left;
}

.ce-gold-select-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ce-gold-select-option.is-active {
    background: rgba(212, 168, 83, 0.18);
    color: #f4cf80;
    font-weight: 900;
}

.ce-gold-select { min-width: 0; }
.ce-gold-select-native { min-width: 0 !important; max-width: 1px !important; clip-path: inset(50%); }
.ce-gold-select-popover[hidden] { display: none !important; }
.ce-gold-select-option { cursor: pointer; white-space: normal; overflow-wrap: anywhere; }
.ce-gold-select-trigger:focus-visible, .ce-gold-select-option:focus-visible { outline: 2px solid #d4a853; outline-offset: 2px; }
.ce-gold-select:has(.ce-gold-select-trigger[aria-expanded="true"]) { z-index: 65; }
.ce-gold-select-option:disabled { opacity: .45; cursor: not-allowed; }
.ce-gold-select-trigger { cursor: pointer; }
