/* ============================================================
   auction-custom.css — Probid Child Theme — Sreera Agency
   ============================================================ */

/* ── Indian Price ──────────────────────────────────────── */
.srr-price {
    font-size: 1.6em;
    font-weight: 700;
    color: #2c2c2c;
    letter-spacing: -0.02em;
}

/* ── Video Thumbnails ──────────────────────────────────── */
.srr-video-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1a0533 0%, #4a0080 100%);
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.srr-video-thumb:hover,
.srr-video-thumb:focus {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(106, 13, 173, 0.4);
    border-color: #6a0dad;
    outline: none;
}

.srr-video-thumb.srr-thumb-active {
    border-color: #6a0dad;
    box-shadow: 0 0 0 3px rgba(106,13,173,0.3);
}

.srr-video-thumb-inner {
    text-align: center;
    color: #fff;
}

.srr-play-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.srr-video-thumb-inner span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

/* ── Video Player ──────────────────────────────────────── */
.srr-video-player-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.srr-video-player-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.srr-close-video {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.srr-close-video:hover {
    background: rgba(198, 40, 40, 0.9);
}


/* ── Download Valuation Button ─────────────────────────── */
.srr-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #6a0dad;
    color: #6a0dad;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.srr-download-btn:hover {
    background: #6a0dad;
    color: #fff;
    box-shadow: 0 4px 16px rgba(106, 13, 173, 0.3);
    transform: translateY(-1px);
}

.srr-download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.srr-download-btn .btn-icon {
    font-size: 18px;
}

.srr-download-btn .btn-text {
    flex: 1;
    text-align: left;
}

.srr-download-btn .btn-price {
    background: rgba(106, 13, 173, 0.12);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.srr-download-btn:hover .btn-price {
    background: rgba(255,255,255,0.2);
    color: #fff;
}


/* ── Participation Fee Notice ──────────────────────────── */
.srr-participation-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3e5f5;
    border: 1px solid #ce93d8;
    border-radius: 8px;
    padding: 10px 16px;
    margin-top: 10px;
    font-size: 14px;
    color: #4a148c;
}

.srr-participation-notice .fee-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.srr-participation-notice .fee-text strong {
    color: #4a148c;
}


/* ── Loading Spinner ───────────────────────────────────── */
.srr-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: srr-spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes srr-spin {
    to { transform: rotate(360deg); }
}


/* ── Modal ─────────────────────────────────────────────── */
.srr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(3px);
}

.srr-modal-overlay.srr-modal-visible {
    opacity: 1;
}

.srr-modal-overlay.srr-modal-visible .srr-modal {
    transform: translateY(0) scale(1);
}

.srr-modal {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.25s ease;
}

.srr-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}

.srr-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.srr-modal-body {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

.srr-modal-body p {
    margin: 0 0 8px;
}

.srr-fee-amount {
    font-size: 32px;
    font-weight: 800;
    color: #6a0dad;
    margin: 12px 0;
    letter-spacing: -0.02em;
}

.srr-modal-actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.srr-modal-primary {
    background: #6a0dad;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}

.srr-modal-primary:hover {
    background: #4a0080;
    transform: translateY(-1px);
}

.srr-modal-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.srr-modal-secondary {
    background: transparent;
    color: #888;
    border: 1.5px solid #ddd;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.srr-modal-secondary:hover {
    background: #f5f5f5;
    color: #555;
}


/* ── Toast Notifications ───────────────────────────────── */
.srr-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    z-index: 9999999;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    max-width: 90vw;
    text-align: center;
    pointer-events: none;
}

.srr-toast.srr-toast-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}


/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
    .srr-modal {
        padding: 28px 20px 22px;
    }

    .srr-modal-title {
        font-size: 18px;
    }

    .srr-fee-amount {
        font-size: 26px;
    }

    .srr-download-btn {
        font-size: 14px;
        padding: 11px 16px;
    }
}


/* ── Register to Bid Button ────────────────────────────── */
.srr-register-bid-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6a0dad 0%, #4a0080 100%);
    border: none;
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(106, 13, 173, 0.35);
}

.srr-register-bid-btn:hover {
    background: linear-gradient(135deg, #7b1fa2 0%, #6a0dad 100%);
    box-shadow: 0 6px 24px rgba(106, 13, 173, 0.5);
    transform: translateY(-2px);
}

.srr-register-bid-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.srr-register-bid-btn .btn-icon {
    font-size: 18px;
}

.srr-register-bid-btn .btn-text {
    flex: 1;
    text-align: left;
}

.srr-register-bid-btn .btn-price {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.srr-fee-hint {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 6px 0 0;
}

/* ── Participation Success Badge ───────────────────────── */
.srr-participation-success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
}


/* ── Current Bid Box ───────────────────────────────────── */
.srr-current-bid-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 10px;
    margin: 8px 0 14px;
    border: 2px solid;
}

.srr-bid-live {
    background: #f3e5f5;
    border-color: #9c27b0;
}

.srr-bid-ended {
    background: #f5f5f5;
    border-color: #bdbdbd;
}

.srr-bid-upcoming {
    background: #e3f2fd;
    border-color: #1976d2;
}

.srr-bid-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.srr-bid-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    font-weight: 600;
}

.srr-bid-amount {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.srr-bid-live .srr-bid-amount  { color: #4a148c; }
.srr-bid-ended .srr-bid-amount { color: #555; }

.srr-bid-count {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.srr-bid-right {
    display: flex;
    align-items: center;
}

.srr-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.srr-bid-live .srr-status-badge {
    background: #9c27b0;
    color: #fff;
    animation: srr-pulse-badge 2s infinite;
}

.srr-bid-ended .srr-status-badge {
    background: #9e9e9e;
    color: #fff;
}

.srr-bid-upcoming .srr-status-badge {
    background: #1976d2;
    color: #fff;
}

@keyframes srr-pulse-badge {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}


/* ── Payment Options Modal ─────────────────────────────── */
.srr-payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 8px 0;
}

.srr-pay-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.srr-pay-option:hover {
    border-color: #6a0dad;
    background: #f9f0ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106,13,173,0.15);
}

.srr-pay-option .opt-icon {
    font-size: 28px;
}

.srr-pay-option .opt-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.srr-pay-option .opt-sub {
    font-size: 11px;
    color: #888;
    text-align: center;
}

/* ── Manual Payment Form ───────────────────────────────── */
.srr-bank-details {
    background: #f3e5f5;
    border: 1px solid #ce93d8;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: #4a148c;
    margin: 12px 0;
    text-align: left;
    line-height: 1.8;
}

.srr-manual-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    text-align: left;
}

.srr-manual-form input,
.srr-manual-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

.srr-manual-form input:focus,
.srr-manual-form textarea:focus {
    border-color: #6a0dad;
    box-shadow: 0 0 0 3px rgba(106,13,173,0.1);
}

.srr-manual-form textarea {
    resize: vertical;
}


/* ── Addon Sections (Product Page) ────────────────────── */
.srr-addon-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin: 14px 0;
    padding: 14px;
    background: #f9f0ff;
    border-radius: 10px;
    border: 1px solid #e1bee7;
}

.srr-addon-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f3e5f5;
}

.srr-addon-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.srr-addon-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.srr-addon-heading {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9c27b0;
}

.srr-addon-desc {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}


/* ── Addon Icon Image ──────────────────────────────────── */
.srr-addon-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ── Addon Icon Cell (Admin) ───────────────────────────── */
.srr-icon-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.srr-icon-cell img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #ddd;
}


/* ── Gallery Thumbnail Scrolling ───────────────────────── */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs,
.woocommerce-product-gallery ol.flex-control-nav {
    max-height: 420px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: #9c27b0 #f0e5ff;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs::-webkit-scrollbar { width: 4px; }
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs::-webkit-scrollbar-track { background: #f0e5ff; border-radius: 4px; }
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs::-webkit-scrollbar-thumb { background: #9c27b0; border-radius: 4px; }

/* Thumbnail items proper sizing */
.woocommerce-product-gallery .flex-control-thumbs li {
    width: 100% !important;
    margin: 0 !important;
    flex-shrink: 0;
}
.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100% !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li img:hover {
    opacity: 1;
    outline: 2px solid #9c27b0;
}

/* Video thumbnail same size */
.srr-video-thumb {
    aspect-ratio: unset !important;
    height: 70px !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}


/* ── Hide Duplicate "Starting bid: ₹X" ────────────────── */
/* Probid theme shows native price below our custom bid box - hide it */
.woocommerce-auction-product .price,
.summary .woocommerce-Price-amount.amount,
p.price,
.price bdi {
    display: none !important;
}
/* Keep only our custom price box */
.srr-current-bid-box ~ p.price,
.summary > p.price {
    display: none !important;
}
/* Hide "Starting bid:" label that Probid adds */
.wcsap-starting-bid,
.auction-starting-price,
.simpleauction-price-label {
    display: none !important;
}


/* ── Hide "Auction Participation Fee" Related Product ─── */
/* Target by product slug in related section */
.related.products .products .product a[href*="auction-participation-fee"],
.related.products .products .product:has(a[href*="auction-participation-fee"]) {
    display: none !important;
}
/* Hide related products section entirely if empty */
.related.products .products:empty {
    display: none !important;
}
/* Also hide upsell participation fee */
.upsells.products .product:has(a[href*="auction-participation-fee"]) {
    display: none !important;
}


/* ── Video thumb inside flexslider list ────────────────── */
.woocommerce-product-gallery .flex-control-thumbs li.srr-video-li {
    width: 100% !important;
    float: none !important;
}

.flex-control-thumbs li.srr-video-li .srr-video-thumb {
    height: 70px !important;
    width: 100% !important;
    aspect-ratio: unset !important;
    border-radius: 4px;
    margin: 0 !important;
}
