/* ============================================================
   Vayaa Cart Popup — popup.css
   Tone: refined minimal / Scandinavian luxury
   ============================================================ */

/* ---- Overlay ---- */
#vcp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#vcp-overlay.vcp-visible {
    opacity: 1;
    pointer-events: all;
}

/* ---- Popup card ---- */
#vcp-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.94);
    z-index: 99999;
    width: min(420px, 92vw);
    background: #faf9f7;
    border-radius: 6px;
    padding: 48px 40px 40px;
    text-align: center;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: inherit;
}

#vcp-popup.vcp-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

/* ---- Close button ---- */
#vcp-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 4px 6px;
    transition: color 0.15s;
}

#vcp-close:hover {
    color: #222;
}

/* ---- Check animation ---- */
#vcp-check-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

#vcp-check-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Circle draw */
#vcp-circle {
    stroke-dasharray: 163;
    stroke-dashoffset: 163;
    transform-origin: center;
    transition: stroke-dashoffset 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}

/* Tick draw */
#vcp-tick {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    transition: stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.55s;
}

/* Trigger animations when popup is visible */
#vcp-popup.vcp-visible #vcp-circle {
    stroke-dashoffset: 0;
}

#vcp-popup.vcp-visible #vcp-tick {
    stroke-dashoffset: 0;
}

/* ---- Text ---- */
#vcp-title {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2a9d5c;
    font-weight: 600;
    margin: 0 0 8px;
}

#vcp-product-name {
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 400;
    margin: 0 0 32px;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* ---- Buttons ---- */
#vcp-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#vcp-checkout {
    display: block;
    width: 100%;
    padding: 15px 24px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    text-align: center;
}

#vcp-checkout:hover {
    background: #333;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

#vcp-continue {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: #666;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: inherit;
}

#vcp-continue:hover {
    border-color: #999;
    color: #333;
}

/* ---- Hide WooCommerce's default notice ---- */
.woocommerce-message,
.wc-block-components-notice-banner,
div.woocommerce-message {
    display: none !important;
}
