html, body {
   font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
   color: #006bb7;
}

.btn-primary {
   color: #fff;
   background-color: #1b6ec2;
   border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
   box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
   padding-top: 1.1rem;
}

h1:focus {
   outline: none;
}

.valid.modified:not([type=checkbox]) {
   outline: 1px solid #26b050;
}

.invalid {
   outline: 1px solid #e50000;
}

.validation-message {
   color: #e50000;
}

.blazor-error-boundary {
   background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
   padding: 1rem 1rem 1rem 3.7rem;
   color: white;
}

   .blazor-error-boundary::after {
      content: "An error has occurred."
   }

.darker-border-checkbox.form-check-input {
   border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
   color: var(--bs-secondary-color);
   text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
   text-align: start;
}

.form-select {
   padding: 0.75rem 2.25rem 0.75rem 0.75rem;
   border: 1px solid #ced4da;
   border-radius: 0.375rem;
   background-color: #fff;
   cursor: pointer;
   position: relative;
   min-height: 54px;
}

   .form-select img {
      width: 30px;
      height: 30px;
      object-fit: contain; /* Ensures image fits without distortion */
   }

.d-flex.align-items-center {
   min-height: 30px; /* Prevents flex container from shrinking below image height */
}

/* Image Radio Group Styles can maybe remove?*/
.image-radio-group {
   display: grid;
   grid-template-columns: repeat(2, 1fr); /* Default to 2 columns on mobile */
   gap: 12px;
   margin-bottom: 20px;
}

.image-radio {
   border: 2px solid #dee2e6;
   border-radius: 8px;
   padding: 10px;
   text-align: center;
   cursor: pointer;
   transition: all 0.3s ease;
}

   .image-radio.selected {
      border-color: #0d6efd;
      background-color: #e6f0ff;
   }

   .image-radio img {
      max-width: 100%;
      height: auto;
      border-radius: 4px;
      margin-bottom: 8px;
   }

.image-radio-caption {
   font-size: 0.875rem;
   color: #495057;
   font-weight: 500;
   margin-top: 8px;
}

.image-radio.selected {
   border-color: #0d6efd;
   background-color: rgba(13, 110, 253, 0.1);
   box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.image-radio:hover:not(.selected) {
   border-color: #adb5bd;
   background-color: #f8f9fa;
}

/* Image Checkbox Group Styles */
.image-checkbox-group {
   display: grid;
   grid-template-columns: repeat(2, 1fr); /* Default to 2 columns on mobile */
   gap: 12px;
   margin-bottom: 20px;
}

.image-checkbox {
   position: relative;
   border: 2px solid #dee2e6;
   border-radius: 8px;
   padding: 10px;
   text-align: center;
   cursor: pointer;
   transition: all 0.3s ease;
}

   .image-checkbox img {
      max-width: 100%;
      height: auto;
      border-radius: 4px;
      margin-bottom: 8px;
   }

.image-checkbox-caption {
   font-size: 0.875rem;
   color: #495057;
   font-weight: 500;
   margin-top: 8px;
}

.image-checkbox.selected {
   border-color: #20c997;
   background-color: rgba(32, 201, 151, 0.1);
   box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.25);
}

.image-checkbox:hover:not(.selected) {
   border-color: #adb5bd;
   background-color: #f8f9fa;
}

.checkbox-indicator {
   position: absolute;
   top: 10px;
   right: 10px;
   font-size: 1.25rem;
   color: #198754;
   background-color: white;
   border-radius: 4px;
   width: 24px;
   height: 24px;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

   .checkbox-indicator i {
      font-size: 1.2rem;
      color: #20c997;
   }

/* Selected position and stitching text styles */
.selected-position,
.selected-stitching {
   background-color: rgba(13, 110, 253, 0.05);
   transition: all 0.3s ease;
   font-size: 1.1rem;
}

.selected-stitching {
   background-color: rgba(32, 201, 151, 0.05);
}

.dropdown-menu {
   margin-top: 0;
   border-radius: 0 0 0.375rem 0.375rem;
   border: 1px solid #ced4da;
   border-top: none;
   z-index: 1000;
   max-height: 300px;
   overflow-y: auto;
}

.dropdown-item {
   padding: 0.25rem 0.75rem; /* Bootstrap's default dropdown-item padding */
   display: flex;
   align-items: center;
}

   .dropdown-item img, .form-select img {
      width: 30px;
      height: 30px;
      object-fit: contain; /* Ensures images scale within 20px */
   }

.dropdown-backdrop {
   position: fixed;
   top: 0;
   right: 0;
   bottom: 0;
   left: 0;
   z-index: 990;
}

.sizes-container {
   background-color: #f8f9fa;
   border-radius: 0.25rem;
   padding: 0.75rem;
   margin-bottom: 0.75rem;
   margin-top: 10px;
   border: 1px solid #dee2e6;
   width: 100%;
}

/* Updated size-quantity-row to display size name above quantity controls */
.size-quantity-row {
   padding: 0.25rem 0;
   display: flex;
   flex-direction: column; /* Stack elements vertically */
   margin-bottom: 8px; /* Add space between size rows */
}

   .size-quantity-row .fw-bold {
      font-size: 0.9rem;
      color: #495057;
      margin-bottom: 4px; /* Add space between size name and quantity controls */
      width: 100%; /* Full width */
      text-align: left; /* Left align size name */
   }

/* Container for the quantity controls */
.quantity-controls {
   display: flex;
   align-items: center;
   width: 100%;
   justify-content: space-between; /* Spread out buttons and input */
}

.size-quantity-row input[type="number"] {
   -moz-appearance: textfield;
}

   .size-quantity-row input[type="number"]::-webkit-outer-spin-button,
   .size-quantity-row input[type="number"]::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
   }

/* Style for when any size has a quantity > 0 */
.has-quantities {
   background-color: #e6f0ff;
   border: 1px solid #b8daff;
}

/* Animate quantity changes */
.quantity-changed {
   animation: highlight 1s ease-out;
}

@keyframes highlight {
   0% {
      background-color: #b8daff;
   }

   100% {
      background-color: transparent;
   }
}

/* Cap selection grid styles - FIXED */
.caps-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr); /* Default to 2 columns on mobile */
   gap: 15px;
   margin-bottom: 20px;
}

.caps-grid-item {
   border: 2px solid #dee2e6;
   border-radius: 8px;
   padding: 12px;
   background-color: #fff;
   width: 100%; /* Ensure full width within grid cell */
   height: auto; /* Allow natural height */
   display: flex;
   flex-direction: column;
}

/* Media queries for responsive layouts */
/* Small tablets and large phones */
@media (min-width: 576px) {
   .image-radio-group {
      grid-template-columns: repeat(3, 1fr); /* 3 columns on small tablets */
   }

   .caps-grid {
      grid-template-columns: repeat(2, 1fr); /* Keep 2 columns for stylecolorways */
   }

   .image-checkbox-group {
      grid-template-columns: repeat(3, 1fr);
   }
}

/* Medium tablets */
@media (min-width: 768px) {
   .image-radio-group {
      grid-template-columns: repeat(4, 1fr); /* 4 columns on medium tablets */
   }

   .caps-grid {
      grid-template-columns: repeat(3, 1fr); /* 3 columns for stylecolorways */
   }
}

/* Desktops and large tablets */
@media (min-width: 992px) {
   .image-radio-group {
      grid-template-columns: repeat(5, 1fr); /* 5 columns on desktop */
   }

   .caps-grid {
      grid-template-columns: repeat(3, 1fr); /* 3 columns for stylecolorways - MAX OUT AT 3 */
   }

   .image-checkbox-group {
      grid-template-columns: repeat(3, 1fr);
   }
}

/* Large desktops */
@media (min-width: 1200px) {
   .image-radio-group {
      grid-template-columns: repeat(6, 1fr); /* 6 columns on large desktop */
   }

   .caps-grid {
      grid-template-columns: repeat(3, 1fr) !important; /* KEEP AT 3 columns for stylecolorways even on large screens */
   }
}

/* FORCEFULLY OVERRIDE any other styles that might be increasing columns */
.caps-grid {
   grid-template-columns: repeat(2, 1fr);
   max-width: 100%;
}

@media (min-width: 768px) {
   .caps-grid {
      grid-template-columns: repeat(3, 1fr) !important;
      max-width: 100%;
   }
}

/* Very small screens */
@media (max-width: 480px) {
   .caps-grid {
      grid-template-columns: repeat(1, 1fr) !important; /* 1 column for very small screens */
   }
}

/* Dropdown customization */
.custom-dropdownlist {
   position: relative;
}


@media (max-width: 575.98px) {
   .pricing-table-cell {
      padding: 2px !important;
      font-size: 0.7rem;
   }
}
@media (max-width: 767.98px) {
   .pricing-table-cell {
      padding: 2px !important;
   }
}

@media (min-width: 768px) {
   .pricing-table-cell {
      padding: 0.5rem !important;
   }
}


.highlight-column {
   background-color: #e6f0ff !important;
   font-weight: bold;
}







