/* Product page styles (group c), moved from inline <style> blocks in product_details.php. Order matters. */

/* from line 6122 */
@keyframes npf-fly-arc {
    0%   { transform: translate(0,0) scale(1); opacity: 1; }
    60%  { opacity: 1; }
    100% { transform: translate(var(--fly-dx), var(--fly-dy)) scale(0.25); opacity: 0; }
}
@keyframes npf-cart-pop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.55); }
    60%  { transform: scale(0.88); }
    80%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.npf-fly-dot {
    position: fixed;
    width: 32px; height: 32px;
    background: #c8960c;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px;
    z-index: 99999;
    pointer-events: none;
    animation: npf-fly-arc 0.75s cubic-bezier(.2,.6,.4,1) forwards;
}
.npf-cart-pop { animation: npf-cart-pop 0.5s ease forwards; }
.npf-atc-done-badge {
    display: inline-block; margin-left: 8px;
    background: #2d7a3a; color: #fff;
    font-size: 12px; border-radius: 20px;
    padding: 2px 10px; vertical-align: middle;
    animation: fadeIn .2s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* from line 6370 */
/* ── Floating trigger button ──────────────────────────────── */
#npf-cb-trigger {
    position: fixed;
    left: 0;
    top: 42%;
    transform: translateY(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #5C3A1E 0%, #8B5E3C 60%, #C8860A 100%);
    color: #fff;
    border: none;
    border-radius: 0 14px 14px 0;
    padding: 14px 10px;
    cursor: pointer;
    box-shadow: 3px 4px 18px rgba(92,58,30,.35);
    transition: transform .2s ease, box-shadow .2s ease;
    gap: 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
#npf-cb-trigger:hover {
    transform: translateY(-50%) translateX(3px);
    box-shadow: 6px 6px 24px rgba(92,58,30,.45);
}
#npf-cb-trigger .cb-icon {
    writing-mode: horizontal-tb;
    font-size: 1.1rem;
    animation: cbRing 3s ease-in-out infinite;
}
@keyframes cbRing {
    0%,80%,100% { transform: rotate(0); }
    85%          { transform: rotate(-18deg); }
    90%          { transform: rotate(18deg); }
    95%          { transform: rotate(-10deg); }
}
#npf-cb-trigger .cb-pulse {
    position: absolute;
    top: 10px; right: 10px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: cbDot 2s ease-in-out infinite;
}
@keyframes cbDot {
    0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
    50%      { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

/* ── Mobile: horizontal pill above sticky bar ─────────────── */
@media (max-width: 767px) {
    #npf-cb-trigger { display: none; }
}

/* ── Overlay ──────────────────────────────────────────────── */
#npf-cb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,15,15,.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9800;
    align-items: center;
    justify-content: center;
}
#npf-cb-overlay.open { display: flex; }

/* ── Modal card ───────────────────────────────────────────── */
#npf-cb-modal {
    background: #fff;
    border-radius: 22px;
    width: 94%;
    max-width: 420px;
    box-shadow: 0 24px 80px rgba(0,0,0,.22);
    overflow: hidden;
    transform: translateY(32px) scale(.96);
    opacity: 0;
    transition: transform .32s cubic-bezier(.22,.68,0,1.15), opacity .28s ease;
}
#npf-cb-overlay.open #npf-cb-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Modal header */
.cb-header {
    background: linear-gradient(135deg, #5C3A1E 0%, #8B5E3C 55%, #C8860A 100%);
    padding: 24px 24px 20px;
    text-align: center;
    position: relative;
}
.cb-header-icon {
    width: 58px; height: 58px;
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
}
.cb-header h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 5px;
}
.cb-header p {
    color: rgba(255,255,255,.78);
    font-size: .8rem;
    margin: 0;
}
.cb-close-btn {
    position: absolute;
    top: 14px; right: 16px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: .85rem;
    line-height: 1;
    transition: background .15s;
}
.cb-close-btn:hover { background: rgba(255,255,255,.28); }

/* Promise chips */
.cb-promises {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 14px 20px 0;
}
.cb-promise {
    display: flex; align-items: center; gap: 5px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 4px 11px;
    font-size: .7rem;
    color: #15803d;
    font-weight: 600;
}
.cb-promise i { font-size: .65rem; }

/* Form body */
.cb-body { padding: 20px 24px 24px; }

.cb-field { margin-bottom: 14px; }
.cb-label {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cb-input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: .92rem;
    color: #111827;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    background: #fafafa;
}
.cb-input:focus {
    border-color: #C8860A;
    box-shadow: 0 0 0 3px rgba(200,134,10,.12);
    background: #fff;
}
.cb-input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.1); }

/* Time preference pills */
.cb-time-group {
    display: flex;
    gap: 8px;
}
.cb-time-radio { display: none; }
.cb-time-label {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: .76rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all .15s ease;
    background: #fafafa;
}
.cb-time-radio:checked + .cb-time-label {
    border-color: #C8860A;
    background: #fef3c7;
    color: #92400e;
}
.cb-time-label i { display: block; font-size: 1rem; margin-bottom: 3px; }

/* Submit button */
.cb-submit {
    width: 100%;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 20px rgba(22,163,74,.3);
    transition: transform .12s, box-shadow .12s;
    font-family: inherit;
}
.cb-submit::before {
    content: '';
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
    animation: cbShimmer 3s ease-in-out infinite;
}
@keyframes cbShimmer { 0%{left:-100%} 45%,100%{left:100%} }
.cb-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(22,163,74,.4); }
.cb-submit:disabled { opacity: .65; cursor: not-allowed; }

.cb-fine-print {
    text-align: center;
    font-size: .7rem;
    color: #9ca3af;
    margin-top: 10px;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* ── Success state ────────────────────────────────────────── */
.cb-success {
    display: none;
    padding: 40px 24px;
    text-align: center;
}
.cb-success-anim {
    width: 72px; height: 72px;
    margin: 0 auto 18px;
    position: relative;
}
.cb-success-anim svg { width: 72px; height: 72px; }
.cb-check-circle {
    stroke: #16a34a;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-linecap: round;
    transform-origin: 50% 50%;
    animation: cbCircle .5s ease forwards;
}
.cb-check-mark {
    stroke: #16a34a;
    stroke-width: 3.5;
    fill: none;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: cbCheck .35s ease .45s forwards;
}
@keyframes cbCircle { to { stroke-dashoffset: 0; } }
@keyframes cbCheck  { to { stroke-dashoffset: 0; } }
.cb-success h4 { font-size: 1.1rem; font-weight: 800; color: #111827; margin-bottom: 8px; }
.cb-success p  { font-size: .87rem; color: #4b5563; line-height: 1.55; }
.cb-success .cb-eta {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 20px; padding: 6px 14px;
    font-size: .75rem; color: #15803d; font-weight: 700;
    margin-top: 14px;
}

/* from line 6843 */
/* ── Book Now Modal Overlay ─────────────────────────────────── */
#bnm-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#bnm-overlay.open { display: flex; }
#bnm-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,.22);
    animation: bnmSlideUp .28s cubic-bezier(.32,1.2,.5,1) both;
    position: relative;
}
@keyframes bnmSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
/* Header */
.bnm-header {
    background: linear-gradient(135deg, #5C3A1E 0%, #8B5E3C 60%, #c8960c 100%);
    color: #fff;
    padding: 22px 24px 18px;
    border-radius: 20px 20px 0 0;
    position: relative;
}
.bnm-header-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.25;
}
.bnm-header-sub {
    font-size: .8rem;
    opacity: .88;
    margin: 0;
}
.bnm-header-price {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border-radius: 30px;
    padding: 3px 12px;
    font-size: .92rem;
    font-weight: 800;
    margin-top: 10px;
}
.bnm-close {
    position: absolute; top: 14px; right: 16px;
    background: rgba(255,255,255,.15);
    border: none; color: #fff;
    width: 30px; height: 30px;
    border-radius: 50%; font-size: 1rem;
    cursor: pointer; line-height: 30px; text-align: center;
    transition: background .15s;
}
.bnm-close:hover { background: rgba(255,255,255,.3); }
/* Body */
.bnm-body { padding: 20px 24px 24px; }
.bnm-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 5px;
    margin-top: 14px;
}
.bnm-label:first-child { margin-top: 0; }
.bnm-label .req { color: #ef4444; }
.bnm-input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: .9rem;
    color: #111827;
    font-family: inherit;
    outline: none;
    background: #fafafa;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.bnm-input:focus {
    border-color: #8B5E3C;
    box-shadow: 0 0 0 3px rgba(139,94,60,.12);
    background: #fff;
}
.bnm-input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.bnm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 400px) { .bnm-row2 { grid-template-columns: 1fr; } }
.bnm-trust {
    font-size: .73rem;
    color: #16a34a;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}
.bnm-trust i { margin-right: 4px; }
/* Submit button */
.bnm-submit {
    width: 100%;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
    transition: opacity .2s;
}
.bnm-submit:disabled { opacity: .65; cursor: not-allowed; }
.bnm-submit::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    animation: bnmShine 2.4s ease infinite;
}
@keyframes bnmShine {
    0%,60% { left: -75%; }
    100%    { left: 125%; }
}
.bnm-err {
    color: #dc2626;
    font-size: .8rem;
    margin-top: 8px;
    text-align: center;
    display: none;
}
