/* ===============================
   BUILDER LAYOUT
   =============================== */

/* ✅ FIXED: Hide modal WITHOUT blocking JS */
#ivb-music-modal {
    position: absolute !important;   /* 🔥 key change */
    inset: auto !important;
    z-index: 99999 !important;
    display: none;                   /* JS controls visibility */
}

#ivb-music-modal.show {  /* ✅ JS adds this class to show */
    opacity: 1 !important;
    visibility: visible !important;
}

.ivb-music-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.ivb-music-box {
    position: absolute;
    max-width: 420px;
    max-height: 80vh;
    margin: 0 !important;
    background: #fff;
    border-radius: 16px;
    padding: 20px 20px 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
}

/* PERFECT 4-SONG VIEWPORT */
.ivb-music-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    overflow-y: auto !important;
    flex: 1;
    /* ✅ EXACTLY 4 SONGS VISIBLE (64px height × 4 = 256px) */
    height: 256px !important;
    max-height: 256px !important;
    padding-right: 8px;
    scroll-snap-type: y proximity;
}

/* ✅ EACH ROW PERFECT HEIGHT FOR 4-VIEWPORT */
.ivb-music-row {
    display: grid !important;
    grid-template-columns: 40px 1fr 24px;
    align-items: center;
    column-gap: 12px;
    padding: 12px !important;
    height: 64px !important;        /* FIXED 64px = perfect math */
    box-sizing: border-box !important;
    scroll-snap-align: start;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ivb-music-row:hover {
    background: #f8fafc;
}

.ivb-music-row.playing {
    background: #fef2f2;
    border: 2px solid #ef4444;
}

/* PERFECT SCROLLBAR */
.ivb-music-list::-webkit-scrollbar {
    width: 6px;
}

.ivb-music-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.ivb-music-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
    border-radius: 3px;
}

.ivb-music-list::-webkit-scrollbar-thumb:hover {
    background: #ef4444;
}

/* RESPONSIVE: MOBILE 3-SONG VIEW */
@media (max-height: 700px) {
    .ivb-music-list {
        height: 192px !important;  /* 3 songs on small screens */
    }
}


.ivb-music-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.ivb-music-list li.active {
    background: #fdeaea;
}

button.ivb-music-open {
    font-size: 12px;
    border-radius: 5px;
}

button.ivb-music-play-btn {
    padding: 0rem;
}

.ivb-music-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.ivb-music-item.active {
    background: #fff1f1;
    border: 1px solid #ef4b4b;
}

.ivb-music-item.playing .ivb-music-play {
    background: #ef4b4b;
}

.ivb-music-selected {
    margin-left: auto;
    font-size: 12px;
    color: #ef4b4b;
    display: none;
}

.ivb-music-item.active .ivb-music-selected {
    display: inline;
}

.ivb-music-open.music-selected {
    background: #ef4b4b;
    color: #fff;
    font-weight: 600;
}

.ivb-music-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    cursor: pointer;
}

.ivb-music-title:hover {
    text-decoration: underline;
}

.ivb-music-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #ef4b4b;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.ivb-music-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #444;
    z-index: 1;
}

.ivb-music-close-btn:hover {
    background: #f2f2f2;
}

.ivb-music-row {
    display: grid !important;
    grid-template-columns: 40px 1fr 24px;
    align-items: center;
    column-gap: 12px;
    padding: 10px 12px;
    height: 60px;
    box-sizing: border-box;
}

.ivb-music-progress {
    width: 100%;
    height: 3px;
    background: #e6e6e6;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.ivb-music-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: #ef4b4b;
    transition: width 0.15s linear;
}

.ivb-music-row.playing {
    background: #f6f6f6;
}

.ivb-music-radio {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    cursor: pointer;
}

.ivb-music-radio input {
    display: none;
}

.ivb-music-radio span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #333;
    display: inline-block;
}

.ivb-music-radio input:checked + span {
    background: #ef4b4b;
    border-color: #ef4b4b;
}

/* ===============================
   ALL OTHER CSS (UNCHANGED - EXACT COPY)
   =============================== */

.ivb-builder-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.ivb-builder {
    max-width: 1200px;
    display: flex;
    gap: 60px;
}

.ivb-form {
    width: 380px;
    border: 2px solid #f3b2b2;
    border-radius: 12px;
    background: #fff;
}

.ivb-form-inner {
    padding-top: 28px;
	padding-right: 28px;
	padding-left: 28px;
	padding-bottom: 16px;
    display: block;
    align-items: stretch;
}

.ivb-template-code {
    display: block;
    width: 100%;
    background: #ffffff;
    color: #333;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 18px;
    text-align: left;
    font-size: 20px;
}

.ivb-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ddd !important;
    background: #ffffff !important;
    text-align: center;
    direction: rtl;
    padding-right: 16px;
    font-size: 16px;
    unicode-bidi: plaintext;
}

.ivb-form input::placeholder {
    direction: rtl;
    text-align: center;
    color: #999;
}

.ivb-field-wrap {
    position: relative;
    width: 65%;
    margin: 16px 0 22px 0;
}

.ivb-music-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 38px;
    padding: 6px 36px 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 5px;
    border: none;
    background-color: #ef4b4b;
    color: #ffffff;
    cursor: pointer;
    flex: 1;
}

.ivb-field-wrap::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #ffffff;
    pointer-events: none;
}

.ivb-music-select:hover {
    background-color: #d93434;
}

.ivb-music-select:focus {
    outline: none;
    background-color: #d93434;
}

.ivb-music-select option {
    background: #ffffff;
    color: #000000;
}

.ivb-preview-btn {
    width: 58% !important;
    max-width: 240px;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 30px !important;
    padding: 10px 0 !important;
    font-size: 15px !important;
    font-weight: 600;
    border-radius: 6px !important;
    background: #ef4b4b !important;
    color: #fff !important;
    border: none !important;
    text-align: center !important;
    cursor: pointer;
}

.ivb-preview-btn:hover {
    background: #d93434;
}

.ivb-preview-btn:focus {
    outline: none;
}

.ivb-preview-btn .ivb-price {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    margin-left: 4px;
}

.ivb-pay-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    background: #d93a3a;
    color: #fff;
    border-radius: 5px !important;
    border: none;
    cursor: pointer;
}

.ivb-preview {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ivb-preview-frame {
    position: relative;
    width: 380px;
    height: 675px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.ivb-default-preview-video,
.ivb-preview-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
}

.ivb-progress-text {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.ivb-loader {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    z-index: 5;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
}

.ivb-loader.active {
    display: flex;
}


.ivb-progress {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 6px;
    margin-top: 12px;
    display: none;
}

.ivb-loader.active .ivb-progress {
    display: block;
}

.ivb-progress-bar {
    height: 100%;
    width: 0%;
    background: #ef4b4b;
    transition: width .4s ease;
}

.ivb-watermark-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 4;
}

.ivb-watermark-image img {
    max-width: 42%;
    max-height: 10%;
    opacity: 0.25;
    object-fit: contain;
}

.ivb-template-price {
    font-size: 13px;
    color: #000000;
    margin-top: 4px;
	font-weight: 600;
}

.ivb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: auto; /* ✅ ENABLE CLICKS */
}

.ivb-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    pointer-events: auto;
}

.ivb-modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 420px;
    width: 92%;
    max-height: 90vh !important;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.ivb-modal-header {
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.ivb-modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden !important;
    padding-bottom: 12px;
}

.ivb-modal-video-wrap {
    width: 380px !important;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

#ivb-modal-video {
    width: 380px !important;
    height: calc(90vh - 140px) !important;
    max-width: 100%;
    max-height: 640px;
    object-fit: cover !important;
    border-radius: 12px;
    display: block;
}

.ivb-modal-actions {
    width: 380px !important;
    max-width: 100%;
    margin: 12px auto 0;
    justify-content: space-between;
    gap: 10px;
}

#hebrew-keyboard {
    position: absolute;
    display: none;
    background: #f7f7f7;
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    direction: rtl;
}

.simple-keyboard {
    max-width: 520px;
}

.simple-keyboard .hg-row {
    flex-direction: row-reverse;
}

.simple-keyboard .hg-button {
    border-radius: 8px;
    margin: 2px;
    min-width: 32px;
    height: 28px !important;
}

.ivb-product div[data-elementor-type="product"],
.ivb-product .elementor-location-single[data-elementor-type="product"] {
    display: none !important;
}

.ivb-music-list::-webkit-scrollbar {
    width: 6px;
}

.ivb-music-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 6px;
}

.ivb-music-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.ivb-music-close-btn:hover {
    background: #ef4444 !important;
    color: white !important;
    transform: scale(1.05);
}

#ivb-music-modal {
    margin-top: -57px; /* move popup UP – adjust: -8 / -12 / -16 */
}
/*
body.ivb-checkout-iframe {
    background: #ffffff;
    margin: 0;
}

body.ivb-checkout-iframe .site,
body.ivb-checkout-iframe header,
body.ivb-checkout-iframe footer {
    display: none !important;
}

/* ================================
   IVB CHECKOUT MODAL – FINAL
================================ */

/* Overlay *//*
#ivb-checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.woocommerce-page .site-header, .woocommerce-page .main-navigation{
    display: none !important;
}

.e-checkout__order_review, 
.e-coupon-box, 
.prod-info, 
.has_eae_slider,
.wpadminbar {
display: none !important;
}


/* Modal dialog *//*
.ivb-checkout-dialog {
    width: 100%;
    max-width: 520px;     /* ← THIS matches your client design *//*
    height: 100dvh;
    margin: auto;
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .ivb-checkout-dialog {
        max-width: 100vw;
        border-radius: 0;
    }
}

.ivb-popup-checkout input,
.ivb-popup-checkout select {
    height: 52px;
    border-radius: 12px;
    font-size: 15px;
    padding: 0 14px;
}

#wc-stripe-upe-form {
    margin-top: 16px;
}

#wc-stripe-upe-form iframe {
    min-height: 190px;
}

#place_order {
    height: 56px;
    border-radius: 14px;
    font-size: 17px;
    background: #ef4444;
}
/* Header fixed *//*
.ivb-checkout-dialog .ivb-modal-header {
    flex-shrink: 0;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
}

/* Body scrolls (THIS IS KEY) *//*
.ivb-checkout-dialog .ivb-modal-body {
    flex: 1;
}*/
.ivb-stripe-field {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.ivb-stripe-field:focus-within {
    border-color: #ef4b4b;
    box-shadow: 0 0 0 3px rgba(239, 75, 75, 0.12);
}

.ivb-stripe-field iframe {
  width: 100% !important;
  height: 100% !important;
  text-align: center !important;
}

.ivb-row {
  display: flex;
  gap: 12px;
}

.ivb-col {
  flex: 1;
}

.ivb-form-group{
    width: 100%;
}
.ivb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.ivb-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.ivb-modal-dialog.ivb-checkout-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: 95%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.ivb-modal-header {
    padding: 20px 24px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ivb-modal-title {
    font-size: 10px;
    font-weight: 500;
    color: #1f293763;
}

.ivb-checkout-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ivb-checkout-close-btn:hover {
    background: #f3f4f6;
}

.ivb-payment-body {
    padding: 0 24px 24px;
}

.ivb-form-group {
    margin-bottom: 16px;
}

.ivb-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.ivb-checkout-input,
.ivb-stripe-field,
.ivb-checkout-select {
    width: 100%;
    height: 44px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    transition: all 0.2s;
}

button#ivb-pay-btn {
    border-radius: 5px;
}

.ivb-checkout-input:focus,
.ivb-checkout-select:focus {
    outline: none;
    border-color: #c084fc;
    box-shadow: 0 0 0 3px rgba(192,132,252,0.1);
}

#ivb-email {
    text-align: center;
    font-size: 16px;
}

.ivb-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.ivb-col {
    flex: 1;
}

.ivb-col label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.ivb-checkout-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
}

.ivb-pay-submit-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 5px;
    background: #c084fc;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.ivb-pay-submit-btn:hover {
    background: #a78bfa;
}

.ivb-checkout-note {
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
    color: #6b7280;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .ivb-modal-dialog.ivb-checkout-dialog {
        width: 95%;
        margin: 20px;
    }
}

.ivb-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  background: #1f2937; /* dark slate */
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  z-index: 999999;
  transition: all 0.25s ease;
}

.ivb-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ivb-toast.error {
  background: #dc2626; /* red */
}

.ivb-toast.success {
  background: #16a34a; /* green */
}

.ivb-toast.warning {
  background: #d97706; /* amber */
}
button#ivb-show-coupon {
    border-radius: 5px;
}
.ivb-checkout-section {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
	text-align: center;
}

#ivb-coupon-wrap {
    display: none;
    margin-top: 2px;
	text-align:center;
}

#ivb-coupon-wrap.active {
    display: block;
}

#ivb-apply-coupon {
    margin-top: 8px;
	border-radius: 5px;
}

.ivb-coupon-message {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

.ivb-card-section {
    transition: all 0.3s ease;
    overflow: hidden;
}

.ivb-card-section.hidden {
    display: none !important;
    height: 0 !important;
    opacity: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.ivb-apply-coupon-btn.applied {
    background: #16a34a !important;
    color: white;
}

.ivb-free-checkout {
    background: #10b981 !important;
    font-weight: 600;
}

/* 🎬 Render Status Container */
.ivb-render-status {
    text-align: center;
    padding: 40px 30px;
    animation: fadeInUp 0.4s ease;
}

/* 🎥 Icon animation */
.ivb-render-icon {
    font-size: 48px;
    margin-bottom: 2rem;
    animation: pulse 1.8s infinite;
}

/* Main title */
.ivb-render-status h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Subtext */
.ivb-render-subtext {
    font-size: 14px;
    color: #777;
    margin-bottom: 18px;
}

/* Fancy progress bar */
.ivb-progress.fancy {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
}

.ivb-progress.fancy span {
    display: block;
    height: 100%;
    width: 10%;
    background: linear-gradient(
        90deg,
        #ff4d4d,
        #ff9f43,
        #1dd1a1
    );
    background-size: 200% 100%;
    animation: progressFlow 1.5s linear infinite;
    border-radius: 20px;
    transition: width 0.6s ease;
}

/* Timer text */
.ivb-render-timer {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

button.ivb-buy-btn {
    border-radius: 5px;
}

button.ivb-edit-btn {
    border-radius: 5px;
}


button.ivb-preview-close-btn {
    background-color: #fff !important;
    color: #EE343F;
    font-size: 25px;
    padding: 0px;
}

button.ivb-checkout-close-btn {
    background: none !important;
    color: #ff0000;
    padding: 0px;
    font-size: 31px;
    border-color: #fff;
}

button.ivb-preview-close-btn:hover {
    background-color: #fff !important;
    color: #EE343F;
    font-size: 22px;
    padding: 0px;
	transition:0.4s;
}

button.ivb-checkout-close-btn:hover {
	background: none !important;
    color: #ff0000;
    padding: 0px;
    font-size: 29px;
    border-color: #fff;
	transition:0.4s;
}

/* Download button */
.ivb-download-btn {
    padding: 14px 26px;
    font-size: 16px;
    border-radius: 5px;
    background: linear-gradient(135deg, #ff7675, #ef4b4b, #c0392b);
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-block;
    animation: popIn 0.4s ease;
	transition:.4s
}

a#ivb-download-btn:hover{
    color: #f9f9f9 !important;
    font-weight: 500;
    font-size: 17px;
	transition:.6s
}

/* Animations */
@keyframes progressFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ivb-render-percent {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    text-align: center;
    letter-spacing: 0.3px;
}

.ivb-render-percent {
    animation: fadeInUp 0.4s ease;
}

/* 🔒 Disable selection & interaction */
.ivb-preview-frame,
#ivb-modal-video {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* ✅ Allow video interaction */
.ivb-preview-frame video,
#ivb-modal-video {
    pointer-events: auto;
}

/* Allow controls only */
#ivb-modal-video {
    pointer-events: auto;
}

/* ===============================
   CIRCULAR PREVIEW PROGRESS
================================ */

.ivb-circle-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
}

.ivb-circle-progress {
    stroke-dasharray: 465; /* 2π × 74 */
    stroke-dashoffset: 465;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.35s ease;
}

.ivb-circle-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.ivb-circle-percent {
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
}

.ivb-circle-label {
    margin-top: 6px;
    font-size: 14px;
    opacity: 0.7;
}

.ivb-dyn-upload-wrap {
    width: 100%;
    margin-bottom: 12px;
}

.ivb-dyn-upload-btn {
    background: #ef2e3a;
    color: #fff;
    border: none;
    padding: 6px 20px;
    border-radius: 5px !important;
    font-weight: 600;
    cursor: pointer;
    font-size: 12.2px;
}
.ivb-dyn-upload-btn:hover {
    opacity: 0.9;
}

.ivb-dyn-file-preview img {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.ivb-preview-btn {
    margin-top: auto !important;
}

.ivb-preview-btn,
.ivb-pay-btn,
.ivb-pay-submit-btn,
.ivb-dyn-upload-btn {
    background: #EE343F !important;
}

.ivb-preview-btn:hover,
.ivb-pay-btn:hover,
.ivb-pay-submit-btn:hover,
.ivb-dyn-upload-btn:hover {
    background: #c62832 !important;
}

.ivb-modal-actions {
    display: flex !important;
    justify-content: center !important;
    gap: 14px !important;
}

/* Equal width buttons */
.ivb-modal-actions .ivb-edit-btn,
.ivb-modal-actions .ivb-buy-btn {
    text-align: center !important;
}

.ivb-top-instruction {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    color: #444;
    margin-bottom: 18px;
}
.ivb-preview-note {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.4;
}

.ivb-upload-note {
    font-size: 12px;
    color: #777;
    margin-top: 6px;
    text-align: center;
}

.ivb-dyn-upload-btn,
.ivb-music-open,
.ivb-preview-btn {
    width: 100% !important;
    margin-bottom: 12px;
}

/* Wrap input */
.ivb-input-wrap {
    position: relative;
    width: 100%;
}

/* Clear button */
.ivb-clear-btn {
    position: absolute;
    top: 50%;
    left: 12px; /* RTL side */
    transform: translateY(-50%);
    font-size: 18px;
    color: #bbb;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
}

.ivb-clear-btn:hover {
    color: #ef4b4b;
}

/* Prevent text overlap */
.ivb-input-wrap input.ivb-field {
    padding-left: 30px !important;
}

.ivb-input-wrap textarea.ivb-field {
    padding-left: 30px !important;
}

.ivb-input-wrap.ivb-disabled input,
.ivb-input-wrap.ivb-disabled textarea {
    background: #f3f4f6 !important;
    color: #999 !important;
    opacity: 0.6;
}

/* Make X red when disabled */
.ivb-input-wrap.ivb-disabled .ivb-clear-btn {
    color: #ef4444;
}