/* ==========================================================================
   Webly Universal Inquiry Bucket (Bulk RFQ) Styles
   High-Contrast Black & White (Monochrome Universal Theme)
   ========================================================================== */

/* 1. Product Card Bucket Button (TOP LEFT CORNER) */
.wb-bucket-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto !important;
    z-index: 50 !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    padding: 0;
    pointer-events: auto !important;
}

/* Product Detail Page Override: Positioned on TOP RIGHT CORNER (leaves top-left for category badges) */
.wb-bucket-btn--top-right,
.wb-bucket-btn.wb-pos-top-right,
.nx-pd-primary-media .wb-bucket-btn,
.tv5-pd-primary-media .wb-bucket-btn,
.lum-pdp-stage .wb-bucket-btn,
.ath-pd-main-stage .wb-bucket-btn,
.lx-pd-primary-media .wb-bucket-btn,
.apex-pd-primary-media .wb-bucket-btn,
.at-stage-box .wb-bucket-btn {
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
}

.wb-bucket-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px) scale(1.08);
    border-color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.wb-bucket-btn.wb-in-bucket {
    background: #000000 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 2px #ffffff, 0 4px 14px rgba(0, 0, 0, 0.5) !important;
    transform: scale(1.04);
}

.wb-bucket-btn svg.wb-bucket-icon {
    width: 17px;
    height: 17px;
    transition: transform 0.2s ease;
}

.wb-bucket-btn .wb-icon-plus {
    display: block;
}

.wb-bucket-btn .wb-icon-check {
    display: none;
}

.wb-bucket-btn.wb-in-bucket .wb-icon-plus {
    display: none !important;
}

.wb-bucket-btn.wb-in-bucket .wb-icon-check {
    display: block !important;
}

.wb-bucket-btn:hover svg {
    transform: scale(1.1);
}

/* 2. Floating Inquiry Bucket Trigger Button (TOP RIGHT CORNER) */
.wb-floating-bucket {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 5px 8px 5px 16px;
    gap: 10px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wb-floating-bucket:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.wb-floating-bucket-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0;
    font-family: inherit;
    text-decoration: none;
    outline: none;
    letter-spacing: -0.01em;
}

.wb-floating-bucket-action svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.wb-floating-bucket-badge {
    background: #ffffff;
    color: #000000;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.wb-floating-bucket-dismiss {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e4e4e7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.15s ease;
    padding: 0;
    outline: none;
    margin-left: 2px;
}

.wb-floating-bucket-dismiss:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

@media (max-width: 640px) {
    .wb-floating-bucket {
        top: 16px;
        right: 16px;
        padding: 4px 6px 4px 12px;
        gap: 8px;
    }
    .wb-floating-bucket-action span:not(.wb-floating-bucket-badge) {
        font-size: 0.82rem;
    }
}

/* 3. Modal Backdrop & Dialog (Universal Black & White) */
.wb-bucket-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.wb-bucket-modal-dialog {
    background: #ffffff;
    color: #09090b;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    width: 100%;
    max-width: 840px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    font-family: inherit;
}

.wb-bucket-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    border-bottom: 1px solid #e4e4e7;
    background: #ffffff;
}

.wb-bucket-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #09090b;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.wb-bucket-modal-subtitle {
    font-size: 0.82rem;
    color: #71717a;
    margin: 4px 0 0 0;
}

.wb-bucket-modal-close {
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    color: #71717a;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.wb-bucket-modal-close:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.wb-bucket-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 24px 26px;
    overflow-y: auto;
    flex: 1;
    background: #ffffff;
}

@media (max-width: 768px) {
    .wb-bucket-modal-body {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}

/* Products Column */
.wb-bucket-products-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wb-bucket-col-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #71717a;
    margin-bottom: 2px;
}

.wb-bucket-clear-btn {
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.wb-bucket-clear-btn:hover {
    color: #000000;
}

.wb-bucket-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    padding: 10px 12px;
    transition: all 0.15s ease;
}

.wb-bucket-item-card:hover {
    border-color: #a1a1aa;
    background: #f4f4f5;
}

.wb-bucket-item-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    flex-shrink: 0;
}

.wb-bucket-item-info {
    flex: 1;
    min-width: 0;
}

.wb-bucket-item-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #09090b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 3px 0;
}

.wb-bucket-item-meta {
    font-size: 0.75rem;
    color: #71717a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wb-bucket-meta-badge {
    background: #e4e4e7;
    color: #18181b;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.wb-bucket-item-remove {
    background: transparent;
    border: none;
    color: #a1a1aa;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.wb-bucket-item-remove:hover {
    background: #000000;
    color: #ffffff;
}

/* Form Column */
.wb-bucket-form-col {
    display: flex;
    flex-direction: column;
    gap: 13px;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 18px 20px;
}

.wb-bucket-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wb-bucket-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #09090b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wb-bucket-input,
.wb-bucket-textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.88rem;
    color: #09090b;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.15s ease;
}

.wb-bucket-input:focus,
.wb-bucket-textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.wb-bucket-input::placeholder,
.wb-bucket-textarea::placeholder {
    color: #a1a1aa;
}

.wb-bucket-submit-btn {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    margin-top: 4px;
}

.wb-bucket-submit-btn:hover {
    background: #27272a;
    border-color: #27272a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.wb-bucket-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wb-bucket-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #71717a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.wb-bucket-success-box {
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    grid-column: 1 / -1;
}

.wb-bucket-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #000000;
    border: 2px solid #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}
