﻿/* Jaguar Guitars - site master leftovers and the "Questions?" helper */

/* Moved out of Site.master */
.jg-sprite { display: none; }
.jg-header .navbar-toggle.jg-navtoggle { border-width: 1px; padding: 9px 10px; background: transparent; }
.jg-header nav.navbar.jg-navwrap { margin: 0; padding: 0; flex: 0 1 auto; }
.jg-header .navbar-collapse.jg-navcollapse { padding: 0; }
.jg-header ul.nav.navbar-nav.jg-navright { margin: 0; padding: 0; }

/* "Questions?" helper */
.jgb-btn { position: fixed; right: 20px; bottom: 20px; z-index: 2500; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 999px; padding: 13px 20px 13px 16px; background: #d62828; color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.35); cursor: pointer; }
.jgb-btn i { font-size: 18px; line-height: 1; }
.jgb-btn:hover { background: #b51f1f; }
.jgb-panel { position: fixed; right: 20px; bottom: 20px; z-index: 2600; width: 370px; max-width: calc(100vw - 24px); height: 540px; max-height: calc(100vh - 40px); background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.35); display: none; flex-direction: column; overflow: hidden; border: 1px solid #e5e7eb; font-family: 'Sora', Arial, sans-serif; }
.jgb-panel.open { display: flex; }
.jgb-head { background: #0e1418; color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 3px solid #d62828; }
.jgb-head > i { font-size: 22px; color: #d62828; }
.jgb-head b { font-size: 16px; display: block; }
.jgb-head small { opacity: .8; font-size: 12px; }
.jgb-head .x { margin-left: auto; color: #fff; font-size: 24px; line-height: 1; text-decoration: none; opacity: .9; }
.jgb-head .x:hover { color: #ffb4b4; text-decoration: none; }
.jgb-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f5f5f5; }
.jgb-m { max-width: 85%; margin-bottom: 10px; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.jgb-m.bot { background: #fff; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; color: #222; }
.jgb-m.me { background: #d62828; color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.jgb-m.bot a { color: #b51f1f; font-weight: 600; }
.jgb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.jgb-chips a { font-size: 12.5px; padding: 6px 11px; border-radius: 999px; background: #fdecec; color: #a11b1b; border: 1px solid #f5c2c2; text-decoration: none; cursor: pointer; }
.jgb-chips a:hover { background: #fbdada; text-decoration: none; }
.jgb-typing { display: inline-flex; gap: 4px; }
.jgb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; animation: jgbDot 1s infinite; }
.jgb-typing i:nth-child(2) { animation-delay: .15s; }
.jgb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes jgbDot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.jgb-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e5e7eb; background: #fff; }
.jgb-in textarea { flex: 1; resize: none; border: 1px solid #d1d5db; border-radius: 12px; padding: 9px 12px; font-size: 15px; height: 44px; max-height: 110px; font-family: inherit; color: #222; }
.jgb-in button { border: 0; border-radius: 12px; background: #d62828; color: #fff; width: 46px; font-size: 16px; cursor: pointer; }
.jgb-in button:hover { background: #b51f1f; }
.jgb-in button:disabled { opacity: .5; }
.jgb-in button.jgb-mic { background: #f1f1f1; color: #333; border: 1px solid #d1d5db; display: none; }
.jgb-in button.jgb-mic.show { display: block; }
.jgb-in button.jgb-mic:hover { background: #e6e6e6; }
.jgb-in button.jgb-mic.rec { background: #d62828; color: #fff; border-color: #d62828; animation: jgbPulse 1.2s infinite; }
@keyframes jgbPulse { 0% { box-shadow: 0 0 0 0 rgba(214,40,40,.55); } 70% { box-shadow: 0 0 0 10px rgba(214,40,40,0); } 100% { box-shadow: 0 0 0 0 rgba(214,40,40,0); } }
.jgb-note { font-size: 11px; color: #6b7280; text-align: center; padding: 0 10px 8px; background: #fff; }
.jgb-red { color: #d62828; }
@media (max-width: 600px) {
    .jgb-btn { right: 14px; bottom: 14px; padding: 12px 16px 12px 13px; font-size: 14px; }
    .jgb-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 82vh; max-height: 82vh; border-radius: 18px 18px 0 0; }
}

/* Toast messages (admin pages): centered at the top; success/info fade, warning/error stay until closed */
.jg-toasts { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 30000; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 520px; max-width: calc(100vw - 32px); pointer-events: none; }
.jg-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; width: 100%; color: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: 0 10px 28px rgba(0,0,0,.30); font-size: 15px; font-weight: 600; opacity: 0; transform: translateY(-12px); transition: opacity .22s, transform .22s; font-family: 'Sora', Arial, sans-serif; }
.jg-toast.show { opacity: 1; transform: translateY(0); }
.jg-toast > i { flex: 0 0 auto; font-size: 19px; margin-top: 1px; }
.jg-toast.success { background: #15803d; }
.jg-toast.info { background: #0e1418; }
.jg-toast.warning { background: #b45309; }
.jg-toast.error { background: #d62828; }
.jg-toast-msg { flex: 1 1 auto; min-width: 0; line-height: 1.45; white-space: pre-line; }
.jg-toast-close { flex: 0 0 auto; margin-left: auto; color: rgba(255,255,255,.85); font-size: 22px; line-height: 1; text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; }
.jg-toast-close:hover { color: #fff; }
/* Keep the icon, message and close button on one row even if another stylesheet styles divs or buttons */
body .jg-toasts .jg-toast { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: flex-start; text-align: left; }
body .jg-toasts .jg-toast > i { display: inline-block !important; width: auto !important; }
body .jg-toasts .jg-toast .jg-toast-msg { display: block !important; width: auto !important; flex: 1 1 auto; margin: 0; }
body .jg-toasts .jg-toast .jg-toast-close { display: inline-block !important; width: auto !important; height: auto; margin: 0 0 0 auto; float: none; box-shadow: none; }

/* Moved out of InventoryAdmin.aspx */
.jg-admin-filters .jg-admin-filter.jg-filter-grow { flex: 1; min-width: 280px; }
.jg-admin-filters .jg-label.jg-label-spacer { visibility: hidden; }
.admin-grid img.jg-thumb { width: 54px; height: 54px; object-fit: cover; }
.jg-nav-phone { font-size: 14pt; font-weight: bold; }

/* Moved out of InventoryPhotos.aspx */
/* ---------- Photo upload drop zone (same pattern as the DBR bill upload) ---------- */
.jg-dropzone {
    position: relative;
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    background: #f8fafc;
    padding: 22px 18px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
    margin: 6px 0 12px;
    max-width: 100%;
    box-sizing: border-box;
}
.jg-dropzone:hover { border-color: #dc2626; background: #f1f5f9; }
.jg-dropzone.jg-dz-over { border-color: #dc2626; background: #fef2f2; }

.jg-dropzone .jg-dz-icon {
    font-size: 26px;
    color: #dc2626;
    margin-bottom: 6px;
    pointer-events: none;
}
.jg-dropzone .jg-dz-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
    pointer-events: none;
}
.jg-dropzone .jg-dz-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.35;
    pointer-events: none;
}

/* The real <input type=file> stretches invisibly over the whole zone so
   both click-to-browse and native drag/drop land on it. */
.jg-dropzone input[type=file] {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* When files are selected, swap the title/hint out for the file summary +
   Clear button so the dropzone keeps a constant height. */
.jg-dropzone .jg-dz-file {
    display: none;
    font-size: 13px;
    font-weight: 700;
    color: #166534;
    pointer-events: none;
    word-break: break-word;
}
.jg-dropzone .jg-dz-clear {
    display: none;
    position: relative;
    z-index: 3;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}
.jg-dropzone.jg-dz-has-file .jg-dz-title,
.jg-dropzone.jg-dz-has-file .jg-dz-hint { display: none; }
.jg-dropzone.jg-dz-has-file .jg-dz-file { display: block; }
.jg-dropzone.jg-dz-has-file .jg-dz-clear { display: inline-block; }
.jg-photos-page .lblUploadMessage.jg-hide { display: none; }
