:root {
  --brand-color: #f3c15a;
}

h1.door-main-header{
    font-size: 28px;
}

.door-section{
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.door-section h2{
    font-size: 20px;
    font-weight: 300;
    padding-bottom: 10px;
    border-bottom:1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
}

.vertical-line {
    width: 2px;
    background-color: rgba(255, 255, 255, 0.2); /* Kolor linii */
    margin: 0 15px; /* Marginesy po obu stronach linii */
}

.btn-xs {
    padding: 0.1rem 0.3rem;
    font-size: 0.75rem;
    border-radius: 0.2rem;
    line-height: 1.2;
}

.door-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 5px;
}

.door-option {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-opt.selected {
  position: relative;
  padding-right: 1.8rem; /* miejsce na ikonę */
}

.btn-opt.selected::after {
  content: "✓";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
}

button.door-btn-img-option{
    border: none;
    border-radius: 10px;
    overflow: hidden;
    max-width: 100px;
    padding: 0px;
    opacity: 1;
    transition: all 0.5s ease;
    position: relative;
}

button.door-btn-img-option:hover{
    box-shadow: 0 0 25px 2px rgba(243,193,90,0.8);
    opacity:.6
}

button.door-btn-img-option.selected{
    border: 5px solid var(--brand-color);
}

button.door-btn-img-option.selected::after {
    content: "✓";
    position: absolute;
    right: 0.5rem;
    top: 2%;
    right:2%;
    font-weight: bold;
}

.door-btn-option img{
    max-width: 100%;
}

.door-opt-help-icon{
    font-size: 16px;
}

.door-opt-help-content{
    font-size: 12px;
}

/*####################################*/
/*######## COLORS */
/*####################################*/
.door-colors-groups {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: scroll;   /* wymusza scrollbar */
  overflow-y: hidden;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
  scrollbar-gutter: stable; /* rezerwuje miejsce na pasek (tam gdzie działa) */
  -webkit-overflow-scrolling: touch;
}

.door-colors-groups > li {
  flex: 0 0 auto;
}

/* scrollbar: Chrome/Edge/Safari */
.door-colors-groups::-webkit-scrollbar {
  height: 10px; /* widoczny, grubszy */
}

.door-colors-groups::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}

.door-colors-groups::-webkit-scrollbar-thumb {
  background: var(--brand-color);
  border-radius: 999px;
}

/* scrollbar: Firefox */
.door-colors-groups {
  scrollbar-width: auto;
  scrollbar-color: var(--brand-color) rgba(0, 0, 0, 0.08);
}

/* button w środku: obrazek + tekst w jednej linii */
.door-colors-groups .door-btn-img-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.door-colors-groups .door-btn-img-option img {
  width: 60px;
  height: 34px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.door-colors-groups .door-btn-img-option span {
  font-size: 12px;
  line-height: 1.1;
}

/* aktywny */
.door-colors-groups .door-btn-img-option.selected {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-color) 35%, transparent);
}

.door-models-section .door-model-group-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.door-models-section .door-model-group-btn {
  font-size: 12px;
  line-height: 1.3;
  padding: 4px 12px;
}

.door-models-section .door-model-group-btn.active {
  background-color: #1fa28c;
  border-color: #1fa28c;
  color: #fff;
}

.door-model-group-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.door-model-group-form-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.door-model-group-form-toggles .door-model-group-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.door-model-group-form-toggles .door-model-group-form-label {
  margin: 0;
  cursor: pointer;
}

.handle-outer-section .handle-outer-groups-carousel {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.handle-outer-section .handle-outer-groups-carousel-hidden {
  display: none !important;
}

.handle-outer-section .handle-outer-carousel-nav {
  flex: 0 0 36px;
  width: 36px;
  height: 48px;
  align-self: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: #fff;
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.handle-outer-section .handle-outer-carousel-nav:hover {
  border-color: var(--brand-color);
  color: var(--brand-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-color) 25%, transparent);
}

.handle-outer-section .handle-outer-groups-track-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.handle-outer-section .handle-outer-group-filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 8px;
  padding: 2px 0 10px;
  margin: 0;
  list-style: none;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.handle-outer-section .handle-outer-group-filters::-webkit-scrollbar {
  height: 10px;
}

.handle-outer-section .handle-outer-group-filters::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}

.handle-outer-section .handle-outer-group-filters::-webkit-scrollbar-thumb {
  background: var(--brand-color);
  border-radius: 999px;
}

.handle-outer-section .handle-outer-group-filters {
  scrollbar-width: auto;
  scrollbar-color: var(--brand-color) rgba(0, 0, 0, 0.08);
}

.handle-outer-section .handle-outer-group-filters .handle-outer-group-btn {
  flex: 0 0 auto;
  padding: 8px 18px;
  gap: 12px;
  min-width: 172px;
  justify-content: center;
}

.handle-outer-section .handle-outer-group-filters .handle-outer-group-btn span {
  font-size: 12px;
  line-height: 1.1;
  flex: 1 1 auto;
  text-align: center;
}

.handle-outer-section .handle-outer-group-filters .handle-outer-group-btn img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
  background-color: #f5f5f5;
}

.handle-outer-section .handle-outer-group-btn.active,
.handle-outer-section .handle-outer-group-btn.selected {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-color) 35%, transparent);
}
