/* responsive_overrides.css
   Biztonságos felülírások, hogy a Bootstrap 5 grid működjön,
   és semmit ne színezzen át (pl. táblázatok háttér).
*/

/* --- HERO képek: 1080x1080, de hasábhoz igazítva --- */
.hero-img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Régi float-os grid SEMLEGESÍTÉSE --- */
/* csak akkor, ha .row-on belül Bootstrap oszlopokat használunk */
.row > [class^="col-"], .row > [class*=" col-"] {
  float: none !important;
  width: auto !important;
  display: block !important;
  padding-left: .75rem;
  padding-right: .75rem;
}

/* biztos, ami biztos: a .row tényleg flex legyen */
.row {
  display: flex !important;
  flex-wrap: wrap !important;
}

/* --- Táblázatok: ne legyen kéretlen háttér --- */
.table-info, .table-info th, .table-info td {
  background: transparent !important;
  color: #B3B3B3;
  border-color: #dee2e6; /* finom szegély Bootstraphez igazodva */
}

/* --- Kisebb képernyők --- */
@media (max-width: 991.98px) {
  .hero-row .col-12 { margin-bottom: 1rem; }
}

.row > [class^="col-"], .row > [class*=" col-"] { width: auto !important; }
@media (min-width: 768px){ .row > .col-md-4 { flex: 0 0 auto !important; } }

/* --- RESPONSIVE IMAGE FIX --- */
.responsive-square,
.hero-img,
img.img-fluid {
  width: 100% !important;      /* mindig a szülő hasábhoz igazodjon */
  height: auto !important;     /* arányosan zsugorodjon */
  max-width: 100% !important;  /* ne nőhessen túl */
  object-fit: contain;         /* megtartja az arányt, nem torzít */
  display: block;
  margin: 0 auto;
}

/* opcionális, hogy három kép egymás mellett legyen */
@media (min-width: 992px) {
  .hero-row .col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

/* --- Fix: a régi grid ne keverjen bele --- */
.row > [class^="col-"], .row > [class*=" col-"] {
  float: none !important;
  width: auto !important;
  display: block !important;
}

.row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center;
  align-items: center;
}

/* --- 3 kép egy sorban PC-n --- */
@media (min-width: 992px) {
  .col-md-4 {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
  }
}

/* --- Mobil: egy kép soronként --- */
@media (max-width: 991.98px) {
  .col-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}


.cart {
	margin-bottom: 0px;
}

@media screen and (max-width: 1250px) {
    .info-poster .table-info-container {
        position: absolute;
        right: 0%;
    }
	.info-photobook {
		background: url(../img/info/2020_11_220foto_fooldali_blokkok_fotokonyv.jpg) no-repeat 40% 0%;
		font-size: 100%;
	}
	.info-photobook h2 {
		margin-top: 0;
	}
	.btn-xlarge-photobook {
		margin-top: 50%;
	}
}

.Nicon-pickup-local{
  display:block;
  width:120px; height:120px;
  background-image: url('../img/main.png'); /* a te képed */
  background-repeat: no-repeat;
  margin: 0 auto 8px; 
}

.Nicon-pickup-ship{
  display:block;
  width:120px; height:120px;
  background-image: url('../img/main.png'); /* a te képed */
  background-repeat: no-repeat;
  margin: 0 auto 8px; 
}

.selectbar {
	z-index: 9999;
}

/* Alap stílus a teljes selectbar-nak */
.selectbar { 
  color: #fff;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.35);
  font-size: 14px;
}

/* Belső tartalom – grid helyett modernebb flex */
.selectbar-content.grid {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 12px;
  flex-wrap: wrap;           /* hogy szét tudjon esni több sorba */
}

/* Oszlopok alap beállításai */
.selectbar .col {
  display: flex;
  align-items: center;
}

/* Bal oldali oszlop (darabszám) */
.selectbar .col-1to2 {
  flex: 0 0 auto;
  margin-top: -65px;
}

/* Középső oszlop (dropdownok + gombok) */
.selectbar .col-8to9 {
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
}

/* Jobb oldali oszlop (X ikon) */
.selectbar .col-0to1 {
  z-index: 1002;
  flex: 0 0 auto;
  margin-left: auto; /* jobbra tolja */
}

/* Darabszám szebb kinézettel */
.selectbar .counter-outer {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  margin-right: 4px;
}

.selectbar .counter-selected {
  font-weight: 600;
}

/* Dropdown konténerek egységesen */
.selectbar .dropdown-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Érték-linkek a lenyílóban */
.selectbar .dropdown-value,
.selectbar .dropdown-value_glossy,
.selectbar .dropdown-value_semigloss,
.selectbar .dropdown-value_canvas,
.selectbar .dropdown-value_frame {
  display: block;
  padding: 6px 10px;
  text-decoration: none;
  color: #eee;
  white-space: nowrap;
}

.selectbar .dropdown-value:hover,
.selectbar .dropdown-value_glossy:hover,
.selectbar .dropdown-value_semigloss:hover,
.selectbar .dropdown-value_canvas:hover,
.selectbar .dropdown-value_frame:hover {
  background: rgba(255,255,255,0.08);
}

.selectbar .dropdown-value.selected,value_frame
.selectbar .dropdown-value_canvas.selected,
.selectbar .dropdown-value_semigloss.selected,
.selectbar .dropdown-value_frame.selected,
.selectbar .dropdown-value_glossy.selected {
  background: rgba(255,255,255,0.18);
  font-weight: 600;
}

/* Kategória szeparátor (Fotó méret, Poszter, stb.) */
.selectbar .dropdown-sep {
  padding: 6px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: 0.7;
}

/* A felső “gomb”, ami megnyitja a dropdown-t */
.selectbar .selectbar-dropdown {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  color: #fff;
  background: #222;
  font-size: 13px;
  white-space: nowrap;
}

/* Ok gomb + inputok a lenyílóban */
.selectbar .dropdown-input {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
}

.selectbar .dropdown-input .input-text {
  background: #111;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 3px 6px;
  color: #fff;
}

.selectbar .dropdown-ok {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0b100;
  color: #000;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

/* Gombok (módosít, kosárba rak) */
.selectbar .selectbar-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.selectbar .selectbar-button.btn-icon img {
  display: inline-block;
}

/* Ár */
.selectbar .selectbar-price {
  font-weight: 600;
  margin-left: 8px;
}

/* “Képek törlése” link */
.selectbar .trash-container,
.selectbar .selectbar-link.trash {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* X ikon jobb oldalt */
.selectbar .selectbar-link.cancel img {
  display: block;
}

/* Kisebb kijelzők – reszponzív rész
   -------------------------------------------------- */
@media (max-width: 900px) {
  .selectbar-content.grid {
    align-items: flex-start;
  }

  .selectbar .col-1to2,
  .selectbar .col-8to9,
  .selectbar .col-0to1 {
    flex: 1 1 100%;
  }

  /* X ikon menjen a tetejére jobbra */
  .selectbar .col-0to1 {
    order: -1;
    justify-content: flex-end;
  }

  /* Középen a dropdownok/gombok törjenek több sorba szép rácsban */
  .selectbar .col-8to9 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .selectbar .dropdown-container {
    flex: 1 1 calc(50% - 6px);  /* két oszlop mobilon */
    min-width: 140px;
    justify-content: flex-start;
  }

  /* Gombok teljes szélességen, egymás alatt */
  .selectbar .selectbar-button.cartupdate,
  .selectbar .selectbar-button.cartremove,
  .selectbar .selectbar-button.cartadd {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }

  .selectbar .selectbar-price {
    margin-left: 0;
    margin-top: 4px;
    display: inline-block;
  }
}

@media (max-width: 600px) {
  .selectbar {
    font-size: 13px;
  }

  .selectbar .selectbar-dropdown {
    font-size: 12px;
    padding: 4px 8px;
	min-width: 150px;
	justify-content: center;
  }

  .selectbar .dropdown-values {
    width: 170px;
  }
}

.selectbar {
  overflow: visible; /* ha eddig hidden vagy auto volt */
}
.selectbar-content {
  overflow: visible;
}

.selectbar .dropdown-values {
  position: absolute;
  top: 100%;
  left: 0;
  margin-bottom: 4px;
  min-width: 160px;

  /* itt volt eddig a gond: túl kicsi max-height + scroll */
  max-height: auto;          /* a képernyő 60%-a lehet a lista magassága */
  overflow-y: visible;          /* csak akkor scrolloz, ha TÉNYLEG nem fér ki */

  background: #1c1c1c;
  border-radius: 8px;
  padding: 4px 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 1001;
}

#dropdown-paper {
    width: auto;
}

.selectbar .col-8to9 {
    overflow: visible;
}

.dropdown-sep {
    color: #fff;
}

.dropdown-values {
	margin-top: 0px;
}

.dropdown-value_semigloss {
	
}

.selectbar-link.cartremove:hover .icon-trash-container { opacity: 0.7 }
.selectbar-link.cartremove:hover .trashtop { -webkit-transform: rotateZ(-45deg) ; -moz-transform: rotateZ(-45deg) ; -o-transform: rotateZ(-45deg) ; -ms-transform: rotateZ(-45deg) ; transform: rotateZ(-45deg)  }

.dropdown-ok {
    width: 40px;
	position: relative;
}

.dropdown-input .input-text {
    width: 50px;
}

.dropdown-ok.visible {
	width: 40px;
}

.selectbar .dropdown-input .input-post {
    background: #111;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 3px;
    color: #fff;
	font-size: 14px;
	margin: 2px 0px;
	width: 50px;
}

@media (max-width: 600px) {
	.selectbar .selectbar-dropdown {
		margin: auto;
	}
	.name_tag {
	  display: inline-block;
	  max-width: 30vw;          /* a képernyő 60%-ánál sosem lesz szélesebb */
	  overflow: hidden;         /* a kilógó rész ne látszódjon */
	  text-overflow: ellipsis;  /* "..." a végére */
	  white-space: nowrap;      /* egy sorban marad, de levágjuk */
	}
	
	.text.zip {
		width: 300px;
	}
	
	.accept_warnings {
		font-size: 13px;
	}
}

.imagefill-cart {
    min-height: 200px;
}

*, ::after, ::before {
    box-sizing: content-box;
}

dt label {
    font-size: 16px;
    font-weight: normal;
    line-height: 0px;
    color: #34495e;
    margin-bottom: 0px;
    margin-left: -10px;
    padding-top: 0px;
	text-align: left;
}

/* Progress lépésjelző – 3 egyforma rész, teljes szélességben */
table.progress {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 16px 0 24px;
  font-size: 13px;
}

/* A table/ tbody / tr mind blokk + flex-sor lesz */
table.progress,
table.progress tbody,
table.progress tr {
  display: block;
  width: 95%;
  height: 100%;
  margin: auto;
}

table.progress tr {
  display: flex;          /* itt lesz a 3 rész egymás mellett */
}

/* Három egyforma széles cella */
table.progress td {
  flex: 1 1 0;
  text-align: center;
  padding: 10px 6px;
  box-sizing: border-box;
  position: relative;
  color: #aaa;
}

/* A benne lévő link/span egységesen */
table.progress td a,
table.progress td span {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  line-height: 1.3;
}

/* Aktív lépés kiemelése */
table.progress td.progress-active {
  font-weight: 600;
  color: #ff7900;
}

/* Aktív lépés vonala és pontja narancs */
table.progress td.progress-active::before,
table.progress td.progress-active::after {
  background: #ff7900;
}

@media (max-width: 480px) {
  table.progress {
    font-size: 12px;
  }
  .form dt { 
	width: 300px;
  }
  .form h4 {
	margin-left: -10px;
  }
}

.foot-right {
	display: flex;
}

.summary-details {
	margin-top: 0px;
}

dd .text {
	font-size: 13px;
}

#checkout_form_submit {
padding-top: 0px;
}

.checkout-left {
    padding: 20px 20px;
}


@media (max-width: 480px) {
	.flip-front, .flip-back {
		max-width: 320px;
	}
	.info-photo {
		font-size: 120%;
	}
	
	#poster .table-info-container {
		min-width: 310px;
	}
	.info-poster {
		font-size: 120%;
	}
	
	.info-poster h2 {
		font-size: 1.5em;
	}
	.btn-submit {
		display: block;
		margin: auto;
	}
	.btn-checkout {
		position: relative;
		margin: 10px 20px 10px 20px;
	}
	.info-poster .table-info-container {
		right: 3.5%;
	}
	body.page-summary {
		margin: 20px;
	}
	
	#photobook .table-info-container {
		min-width: 300px;
		margin-right: 30px;
	}
	#photo .table-info-container {
		margin-left: 20px;
	}
	
	.more-info {
		margin-left: 25%;
	}
}

.text.city,
.text.zip {
	width: 300px;
}

label small {
    display: block;
    margin-top: 15px;
}