/* ... (Root and Base styles same as V33) ... */
:root {
  --brand-teal: #4ec4cf;
  --brand-blue: #1182B0;
  --brand-grey: #66737f;
  --brand-light-grey: #EBEDF0;
  --font-head: "Montserrat", sans-serif;
  --font-body: "Lato", sans-serif;
}
body,
h2,
h3 {
  font-family: var(--font-body);
}
h1,
h2,
:root {
  --gce-teal: #4ec4cf;
  --gce-blue: #1182b0;
  --gce-light: #eefbfd;
  --gce-gray: #eee;
  --font-head: "Montserrat", sans-serif;
  --font-body: "Lato", sans-serif;
}
body {
  font-family: var(--font-body);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
}
.gce-wrapper {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 7px;
  color: #333;
}
.gce-hide {
  display: none !important;
}
* {
  border-radius: 0 !important;
}
/* Hide number input arrows – Chrome, Edge, Safari */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide number input arrows – Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* UTILS */
.gce-mb-small {
  margin-bottom: 10px;
}
.gce-mb-medium {
  margin-bottom: 20px;
}
.gce-w-full {
  width: 100%;
}
.gce-mt-medium {
  margin-top: 20px;
}
.gce-scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* AUTH */
.gce-auth-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 30px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.gce-auth-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}
.gce-auth-tab-btn {
  width: 50%;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: bold;
  cursor: pointer;
  color: var(--gce-blue);
}
.gce-auth-tab-btn:hover {
  background: var(--gce-light) !important;
  border: 1px solid var(--gce-blue) !important;
  font-weight: bold;
  color: #000 !important;
}
.gce-auth-tab-btn:focus {
  background: transparent !important;
  border: none !important;
  color: var(--gce-blue) !important;
}
.gce-text-muted {
  color: #999;
}

/* INPUTS */
.gce-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
}
.gce-input:focus {
  border-color: var(--gce-blue);
  outline: none;
}
.gce-input-tiny {
  width: 80px;
  padding: 8px;
  text-align: center;
  border: 1px solid #ccc;
}
.gce-input-readonly {
  background: #f9f9f9;
  color: #666;
  cursor: not-allowed;
}

/* BUTTONS */
.gce-btn-primary {
  background: var(--gce-blue);
  color: #fff;
  padding: 12px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}
.gce-btn-primary:hover {
  background: #0d6a91;
}
.gce-btn-back {
  background: #eee;
  color: #555;
  padding: 12px 30px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  flex: 1;
}
.gce-btn-back:hover, .gce-btn-back:focus {
    background: #eee !important;
    border: none !important;
    color: #000 !important;
}
.gce-btn-next {
  background: var(--gce-teal);
  color: #fff;
  padding: 12px 30px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  flex: 1;
}
.gce-btn-next:hover, .gce-btn-next:focus {
    background: var(--gce-teal);
    color: #fff;
}
.gce-btn-wide {
  width: 250px;
  display: block;
  margin: 20px auto;
}
.gce-btn-link {
  background: none;
  border: none;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}
.gce-btn-link:hover, .gce-btn-link:focus {
    background: none !important;
    color: #000 !important;
    border: none !important;
}

/* HEADER & STEPS */
.gce-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
  margin-bottom: 25px;
}
.gce-welcome-text {
  font-size: 1.2rem;
  color: var(--gce-blue);
  font-family: var(--font-head);
}
.gce-logout-link, .gce-logout-link:hover, .gce-logout-link:focus {
  background: none !important;
  border: none !important;
  color: #495057 !important;
  font-weight: bold !important;
  text-decoration: underline !important;
  cursor: pointer;
}
.gce-step-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gce-blue);
  border-bottom: none !important;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.gce-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.gce-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}
.gce-card {
  border: 1px solid #ddd;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: 0.2s;
}
.gce-card:hover,
.gce-card.act {
  border-color: var(--gce-teal);
  background: var(--gce-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.gce-card h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
}
.gce-icon-large {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* CATEGORIES */
.gce-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}
.gce-cat-btn {
  padding: 8px 15px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-weight: bold;
  color: #666;
}
.gce-cat-btn:hover {
    background-color: var(--gce-light) !important;
    border: 1px solid var(--gce-blue) !important;
    color: var(--gce-blue) !important;
}
.gce-cat-btn.active, .gce-cat-btn:focus  .gce-cat-btn.active:focus {
  background: #333;
  color: #fff;
  border-color: #333;
}


/* ITEMS LIST */
.gce-item-grid {
  height: 400px;
  overflow-y: auto;
  border: none !important;
}
.gce-list-item {
  background: #fff ;
  border: 1.4px solid var(--gce-gray);
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.gce-list-item.checked {
 border: 1.6px solid var(--gce-teal) !important;
 background: var(--gce-light) !important;
}
.gce-radio-option input[type="radio"]:checked {
   accent-color: var(--gce-blue) !important;
}
.gce-list-check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gce-teal) !important;
}
.gce-list-content {
  flex: 1;
}
.gce-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  
}
.gce-list-item.checked .gce-list-header { 
    margin-bottom: 6px;
}
.gce-item-name {
  font-weight: 600;
  font-size: 1rem !important;
}
.gce-item-price {
  font-weight: bold;
  color: var(--gce-blue);
}
.gce-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: bold;
}
.gce-subtotal {
  font-size: 13px;
  color: #666;
  margin-top: 5px;
  text-align: right;
}

/* FOOTER & TABS */
.gce-footer-bar {
  background: #000 !important;
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-top: 10px;
}
.gce-action-row {
  display: flex;
  gap: 0;
  margin-top: 20px;
}
.gce-tab-container {
  display: flex;
  gap: 10px !important;
  padding-bottom: 36px !important;
  border-bottom: 1px solid var(--brand-grey);
}
.gce-tab-btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: 1px solid var(--brand-light-grey) !important;
  cursor: pointer;
  font-weight: bold;
  color: var(--brand-grey) !important;
  transition: 0.2s;
}
.gce-tab-btn:hover {
    background: var(--brand-light-grey)  !important;
    border: 1px solid var(--brand-light-grey) !important;
    color: var(--brand-grey) !important;
}
.gce-tab-btn.active, .gce-tab-btn:focus, .gce-tab-btn.active:focus {
  background-color: var(--gce-teal) !important;
  border-color: 1px solid var(--gce-blue);
  color: #fff !important;
}

/* OTHER */
.gce-panel {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 20px;
}
.gce-label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}
.gce-option-box {
  background: var(--gce-light);
  padding: 15px;
  border: 1px solid var(--gce-teal);
  margin: 20px 0;
  display: flex;
  gap: 20px;
}

.gce-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  padding: 4px 0 !important;
}
.l-content .gce-checkbox-label {
     padding: 22px 0 !important;
}
.gce-checkbox {
  width: 16px;
  height: 16px;
  
  margin-right: 10px;
  accent-color: var(--gce-blue);
}
.gce-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gce-radio-option {
  padding: 15px;
  border: 1px solid #ddd;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}
.gce-radio-option:hover {
  background: #f9f9f9;
}
.gce-info-box {
  padding: 15px;
  background: #f9f9f9;
  border-left: 4px solid var(--gce-blue);
  font-family: monospace;
  margin-top: 10px;
}
.gce-summary-header {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gce-blue);
  margin-bottom: 15px;
}
.gce-summary-list {
  font-size: 14px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}
.gce-summary-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ddd;
  padding-top: 15px;
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: bold;
}
.gce-upload-box {
  background: #eefbfd;
  border: 1px solid #b8e6ea;
  padding: 15px;
  margin-bottom: 20px;
}
.gce-success-view {
  text-align: center;
  padding: 40px 0;
}
.gce-success-icon {
  color: var(--gce-teal);
  margin-bottom: 10px;
}
img.gce-thankyou-icon {
    width: 56px !important;
    height: 56px !important;
}
.gce-order-ref {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .gce-grid-2,
  .gce-grid-3 {
    grid-template-columns: 1fr;
  }
  .gce-action-row {
    flex-direction: row;
  }
  .gce-btn-back,
  .gce-btn-next {
    width: 100%;
  }
  .gce-category-list {
    flex-direction: column;
  }
  .gce-cat-btn {
    width: 100%;
    text-align: left;
  }
  .gce-tab-container {
    flex-direction: column;
    gap: 8px !important;
   
  }
  
  /*.gce-tab-btn {*/
  /*  border-bottom: 1px solid #eee;*/
  /*  width: 100%;*/
  /*  text-align: left;*/
  /*  padding: 15px;*/
  /*}*/
  /*.gce-tab-btn.active {*/
  /*  border-bottom: 1px solid #eee;*/
  /*  border-left: 4px solid var(--gce-blue);*/
  /*  background: #f9f9f9;*/
  /*}*/
  
  .gce-list-item {
    
  }
  .gce-list-check {
    align-self: flex-start;
  }
  .gce-option-box {
    flex-direction: column;
    gap: 10px;
  }
}
.font-heading {
  font-family: var(--font-head);
}
.text-brand-blue {
  color: var(--brand-blue) !important;
}
.text-brand-teal {
  color: var(--brand-teal) !important;
}
.bg-brand-light {
  background: #eefbfd !important;
}
.border-brand-teal {
  border-color: var(--brand-teal) !important;
}
.border-brand-blue {
  border-color: var(--brand-blue) !important;
}
.gce-in {
  width: 100%;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 4px;
  font-size: 16px;
}
.gce-in:focus {
  border-color: var(--brand-blue);
  outline: none;
}
.gce-in.err {
  border-color: var(--brand-blue);
  background: #eefbfd;
}
.gce-in:read-only {
  background: #eee;
  color: #666;
  cursor: not-allowed;
}
.gce-btn {
  background: var(--brand-blue);
  color: #fff;
  padding: 12px;
  font-weight: bold;
  border-radius: 4px;
  transition: 0.2s;
  text-align: center;
  border: none;
  cursor: pointer;
}
.gce-btn:hover {
  background: #0d6a91;
}
.card {
  border: 1px solid #ddd;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 0;
  background: #fff;
}
.card.big-card h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-bottom: 5px;
}
.card:hover,
.card.act {
  border-color: var(--brand-teal);
  background: #f0fdff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.dc-item {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.dc-item.checked {
  border-color: var(--brand-blue);
  background: #f4fbff;
}
.dc-check {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}
.l-tab {
  flex: 1;
  padding: 15px;
  border-bottom: 3px solid transparent;
  font-weight: bold;
  color: #999;
  text-align: center;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.l-tab.active {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  border-bottom: 3px solid var(--brand-blue);
}
.bar {
  background: var(--brand-blue);
  color: #fff;
  padding: 15px;
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.step {
  animation: fadeIn 0.4s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.back-btn {
  background: #eee;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: bold;
  color: #555;
  text-align: center;
  border: none;
  cursor: pointer;
}
.next-btn {
  background: var(--brand-teal);
  color: #fff;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  border: none;
  cursor: pointer;
}
.head {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--brand-blue);
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* FLEXBOX FIX FOR CATEGORIES */
#dc-cats {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping on desktop if needed */
  gap: 10px;
  margin-bottom: 20px;
}
#dc-cats button {
  flex: 0 0 auto; /* Natural width */
}

/* MOBILE OVERRIDES */
@media (max-width: 768px) {
  .head {
    font-size: 1.25rem;
  }
  .card {
    padding: 20px;
  }
  .big-card .text-5xl {
    font-size: 3rem;
  }
  .l-tab {
    padding: 12px;
    font-size: 14px;
    width: 100%;
    display: block;
    border-bottom: 1px solid #eee;
    text-align: left;
  }
  .l-tab.active {
    border-bottom: 3px solid var(--brand-blue);
    background: #f9f9f9;
  }
  .bar {
    font-size: 14px;
    padding: 10px;
  }
  .dc-item {
    flex-direction: column;
    gap: 10px;
  }
  .dc-check {
    align-self: flex-start;
  }
  .gce-btn,
  .back-btn,
  .next-btn {
    width: 100%;
  }
  .dc-item .flex-1 .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* VERTICAL CATEGORIES ON MOBILE */
  #dc-cats {
    flex-direction: column;
    align-items: stretch;
  }
  #dc-cats button {
    width: 100%;
    text-align: left;
  }
}

/* --- NEW UPLOAD BUTTON STYLES --- */
.gce-file-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
.gce-file-btn {
    display: inline-block;
    background: #e0f2f1;
    color: var(--brand-blue);
    border: 1px solid var(--brand-teal);
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
    text-align: center;
}
.gce-file-btn:hover {
    background: var(--brand-teal);
    color: #fff;
}
.gce-file-name {
    font-size: 14px;
    color: #555;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}