/* ipad_test.css — minimal styles to test top & bottom toolbars and submenus */
:root {
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}
* {
  box-sizing: border-box
}
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #111
}

#v3d-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

/* Top toolbar: two-section layout */
.top-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  padding: 8px;
  display: flex;
  align-items: center;
  background: rgba(18, 18, 18, 0.95);
  z-index: 1000;
  padding-top: calc(8px + var(--safe-top));
  gap: 0
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.toolbar-right {
  flex: 1;
	  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch
}
.toolbar-right .toolbar-inner {
  display: flex;
  gap: 8px;
  width: auto;
  padding: 6px 0;
  justify-content: center;
}
/* Left section: dynamic text and arrow buttons */
.arrow-btn {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 18px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.arrow-btn:hover {
  color: #4da6ff;
  text-shadow: 0 0 12px rgba(77, 166, 255, 0.6);
  transform: scale(1.15);
}
.dynamic-text {
    color: #fff;
    font-size: 13px;
    padding: 0 12px;
    white-space: nowrap;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
	width: 95px;
	text-align: center;
}
/* Top toolbar buttons */
.tb-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.tb-btn:hover {
  background: #ff1d5b;
  transform: translateY(-1px);
}
/* Bottom toolbar */
.bottom-toolbar{position:fixed;left:0;right:0;bottom:0;padding:8px;padding-bottom:calc(8px + var(--safe-bottom));display:flex;align-items:center;justify-content:center;background:rgba(18,18,18,0.95);z-index:1000;overflow-x:auto;-webkit-overflow-scrolling:touch}
.bottom-toolbar .toolbar-inner{display:flex;gap:8px;width:auto;justify-content:center}
.bottom-toolbar .bb-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 100px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.bottom-toolbar .bb-btn:hover {
  background: #ff1d5b;
  transform: translateY(-1px);
}

.page-body {
  padding-top: 88px;
  padding-bottom: 96px
}
/* Submenu common styles (default uses absolute so desktop behaves as expected) */
.submenu {
  position: absolute;
  width: 220px;
  background: rgba(12, 12, 12, 0.98);
  color: #fff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
  display: none;
  opacity: 0;
  pointer-events: none;
  z-index: 1100;
  height: auto;
  max-height:60vh;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch
}
.submenu.open {
  display: block;
  opacity: 1;
  pointer-events: auto
}
.submenu button {
  display: block;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 8px 10px;
  margin: 4px 0;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

/* Image-backed submenu items (200px × 55px each) — apply `image-btn` class to buttons */
.submenu button.image-btn2 {
  width: 200px;
  height: 55px;
  padding: 0;
  margin: 0;
  background-size: 200px 55px;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
}
.submenu button.image-btn2 span {
  position: relative;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none
}

/* Image-backed submenu items (200px × 55px each) — apply `image-btn` class to buttons */
.submenu button.image-btn {
  width: 200px;
  height: 55px;
}

.submenu button:hover{
	transform:translateY(-1px);
}

/* Contrast text class: automatically choose black or white for submenu items based on background */
.submenu button.contrast-text {
  color: white;
  mix-blend-mode: lighten;
  -webkit-font-smoothing: antialiased;
}

/* For bright/light backgrounds inside submenu, use dark text instead */
.submenu button.dark-text {
  color: black;
}

/* Custom scrollbar for scrollable UI (iOS/WebKit + Firefox)
   Applies to: top toolbar right area, bottom toolbar, submenus and on-screen logger */
.toolbar-right,.bottom-toolbar,.submenu,#ec-log,.summary-window{
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,0.18) transparent;
}

/* WebKit (Safari / iOS) */
.toolbar-right::-webkit-scrollbar, .bottom-toolbar::-webkit-scrollbar, .submenu::-webkit-scrollbar, #ec-log::-webkit-scrollbar, .summary-window::-webkit-scrollbar{
  width:10px;height:10px
}
.toolbar-right::-webkit-scrollbar-track, .bottom-toolbar::-webkit-scrollbar-track, .submenu::-webkit-scrollbar-track, #ec-log::-webkit-scrollbar-track, .summary-window::-webkit-scrollbar-track{
  background:transparent;border-radius:10px
}
.toolbar-right::-webkit-scrollbar-thumb, .bottom-toolbar::-webkit-scrollbar-thumb, .submenu::-webkit-scrollbar-thumb, #ec-log::-webkit-scrollbar-thumb, .summary-window::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,0.12);border-radius:10px;border:2px solid transparent;background-clip:padding-box
}
.toolbar-right::-webkit-scrollbar-thumb:hover, .bottom-toolbar::-webkit-scrollbar-thumb:hover, .submenu::-webkit-scrollbar-thumb:hover, #ec-log::-webkit-scrollbar-thumb:hover, .summary-window::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,0.18)
}
.toolbar-right::-webkit-scrollbar-corner, .bottom-toolbar::-webkit-scrollbar-corner, .submenu::-webkit-scrollbar-corner, #ec-log::-webkit-scrollbar-corner, .summary-window::-webkit-scrollbar-corner{
  background:transparent
}

/* Tablet / touch fallback: force fixed so it's not clipped by overflow or stacking contexts. JS writes top/left coordinates. */
@media (pointer:coarse) and (min-width:600px) {
  .submenu {
    position: fixed !important;
    z-index: 13000 !important
  }
  .submenu {
    max-width: 85vw
  }
}
/* simple on-screen logger */
#ec-log {
  position: fixed;
  left: 12px;
  bottom: calc(120px + var(--safe-bottom));
  max-width: 320px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 13000
}
#ec-log.hidden {
  display: none
}

/* For bright backgrounds inside submenu, use dark text centered */
.submenu button.center-text {
  color: black;
  text-align: center;
  height: 55px;
}






.preloader-screen {
    display: block;
    position: absolute;
    z-index: 5;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    overflow: hidden;
    background-color: #ffffff;
    justify-content: center !important;
}

.preloader-center {
    position: relative;
    overflow: visible;
    float: none !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.preloader-container {
	color: black;
	width: 200px;
	height: 190px;
	display: block;
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    margin: auto !important;
	top: 0;
    left: 0;
}

.preloader-image-container {
    width: 100%;
	height: 150px;
	position: relative;
}

.preloader-image {
    position: absolute;
    z-index: 7;
    display: block;
    width: 100%;
    height: 100%;
}

.preloader-filling-color {
	position: absolute;
	width: 200px;
	z-index: 6;
	display: block;
	bottom: 0px;
	height: 150px;
	background-color: #000000;
}

.preloader-inner-color {
    position: absolute;
    width: 100%;
    bottom: 0px;
    background-color: #ff1d5b;
    margin-top: auto;
    height: 0%;
}

.preloader-percentage {
	position: static;
	height: 40px;
	width: 200px;
	display: block;
	font-size: 18px;
	text-align: center;
	line-height: 42px;
}

/* preloader visible state (flex) */
#preloader_screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms ease, visibility 0s linear 300ms; /* delay visibility hide until after fade */
  pointer-events: auto;
}

/* hidden state: fades out then becomes non-interactive */
#preloader_screen.preloader-hidden {
  opacity: 0;
  visibility: hidden;        /* becomes hidden after transition due to transition delay above */
  pointer-events: none;
}








.center-banner {
    position: fixed;
    top: calc(56px + var(--safe-top) + 40px); /* right below your top toolbar */
    left: 50%;
    transform: translateX(-50%);
    width: 274px;
    height: 30px;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* does not block UI */
}

.center-banner img {
    width: 274px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;
}

/* INLINE TOGGLE SWITCH BESIDE CONVERSIONS BUTTON */
.btn-with-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-height: 40px;
    padding: 0;
  	background: rgba(255, 255, 255, 0.06);;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-with-toggle:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(0,0,0,0.08));
}

.btn-with-toggle .bb-btn {
    margin: 0;
    border: none;
    background: transparent;
    padding-left: 4px;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: relative;
    cursor: pointer;
    width: 52px;
    height: 22px;
    background-color: #e74c3c;
    border: 2px solid #c0392b;
    transition: .3s;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.toggle-slider:after {
    content: "OFF";
    position: absolute;
    right: 5px;
    color: white;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

.toggle-slider:before {
    position: relative;
    content: "";
    height: 14px;
    width: 14px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    z-index: 2;
}

.conversion-toggle-checkbox:checked + .toggle-slider:after {
    content: "ON";
    left: 6px;
    right: auto;
}

.conversion-toggle-checkbox:checked + .toggle-slider {
    background-color: #27ae60;
    border-color: #229954;
}

.conversion-toggle-checkbox:checked + .toggle-slider:before {
    transform: translateX(28px);
}

.toggle-slider:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.summary-btn {
    position: fixed;
    right: 16px;
    bottom: calc(56px + var(--safe-bottom) + 16px);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-weight: bold;
    z-index: 1300;
    cursor: pointer;
    user-select: none;
    padding: 6px 12px;
    transition: all 0.3s ease;
}
.summary-btn:hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    transform: translateY(-1px);
}

.customer_area {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.input-group label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: Arial, Helvetica, sans-serif;
}

.input-group input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  transition: all 0.2s ease;
  outline: none;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.input-group input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.input-group input:read-only {
  cursor: default;
  opacity: 0.85;
}

.summary-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background-color: rgba(18, 18, 18, 0.98);
    padding: 32px;
    color: #fff;
    letter-spacing: 0.5px;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
    /* Fix bottom toolbar scrolling on mobile */
    .bottom-toolbar {
        justify-content: flex-start;
    }
    
    .bottom-toolbar .toolbar-inner {
        justify-content: flex-start;
    }
    
    /* Fix top toolbar scrolling on mobile */
    .toolbar-right {
        justify-content: flex-start;
    }
    
    .toolbar-right .toolbar-inner {
        justify-content: flex-start;
    }
    
    .summary-window {
        width: 95%;
        max-width: none;
        padding: 24px 20px;
        font-size: 12px;
        max-height: 90vh;
    }
    
    .customer_area {
        padding: 20px;
    }
    
    .input-group input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .enquire {
        padding: 12px 16px;
        font-size: 12px;
        min-width: unset;
        width: 100%;
        margin: 4px 0;
    }
    
    .summary-window form > div:last-child {
        flex-direction: column;
        gap: 0;
    }
    
    h2 {
        font-size: 18px !important;
    }
    
    h3 {
        font-size: 12px !important;
    }
}

.enquire {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 24px;
  margin: 0 6px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 120px;
  flex-shrink: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.enquire:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.enquire:active {
  transform: translateY(0);
}

#summary_submit {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-weight: 600;
}

#summary_submit:hover {
  background: #fff;
}

.preloader-color-boarder {
	width: 200px;
	height: 150px;
	margin: 4px;
	bottom: auto;
}










