/**
 * @version 24.07.2025
 *
 * mobile/shopcart/styles.css
 *
 * Skin "mobile"
 */

div.ym-column {
  --shopcaart-col-remove-position-width: 24px;
}

div.main-line div.ym-gr {
  padding-top: 120px;
}

div.main-line {
  margin-bottom: calc(60px + var(--button-normal-height));
}

/** section.toolbar **/
section.toolbar > ul > li {
  margin-left: var(--items-gap);
}

/** table.shopcart-editable **/
table.shopcart-editable {
  --font-size: 0.875rem;
}

table.shopcart-editable th,
table.shopcart-editable td {
  font-size: var(--font-size);
}

table.shopcart-editable tbody td {
  vertical-align: top;
}

table.shopcart-editable tr.BomArticle td {
  font-weight: 600;
}

table.shopcart-editable tr.BomArticle td.col-article-name div.positionsText {
  display: none;
}

table.shopcart-editable tr.BomPosition td {
  font-size: 0.9em;
}

table.shopcart-editable tr.BomPosition td.col-count-items .suffix {
  font-size: 0.9em;
  font-weight: 600;
}

table.shopcart-editable .col-availability {
  width: 30px;
  text-align: center;
}

table.shopcart-editable .col-availability img {
  position: relative;
  top: 3px;
}

table.shopcart-editable .col-article-thumbnail {
  width: 9%;
}

table.shopcart-editable .col-article-thumbnail > img,
table.shopcart-editable .col-article-thumbnail > a > img {
  max-height: 54px;
}

table.shopcart-editable .col-article-number {
  width: 10.53%;
}

table.shopcart-editable tr.BomPosition .col-article-number {
  padding-left: 10px;
}

table.shopcart-editable .col-article-name {
  text-align: left !important;
}

table.shopcart-editable tr.BomPosition .col-article-name {
  padding-left: 10px;
}

table.shopcart-editable .col-article-name div.availability-number {
  display: none;
}

table.shopcart-editable .col-metal {
  width: 9%;
}

table.shopcart-editable td.col-metal {
  vertical-align: bottom;
}

table.shopcart-editable .col-desired-date {
  width: 13%;
  text-align: center;
}

table.shopcart-editable .col-price-item {
  width: 10%;
  text-align: right;
}

table.shopcart-editable .col-count-units {
  width: 9%;
  max-width: 5.625rem;
  text-align: center;
}
table.shopcart-editable .col-count-units .packing-quantity-unit {
  font-size: 0.9em;
}

table.shopcart-editable .col-sign-multiply {
  width: 3%;
  max-width: 30px;
  text-align: center;
}

table.shopcart-editable .col-sign-multiply > div {
  padding-left: 2px;
}

table.shopcart-editable .col-count-per-unit {
  width: 3%;
  max-width: 6.25rem;
  text-align: center;
}

table.shopcart-editable .col-count-items {
  width: 12%;
  max-width: 7.5rem;
  text-align: center;
}

/* quantity unit after the count input */
table.shopcart-editable .col-count-items > ul.ym-grid {
  margin: 0;
  padding: 0;
}
table.shopcart-editable .col-count-items > ul.ym-grid > li.li-input {
  width: calc(100% - 1.875rem);
}
table.shopcart-editable .col-count-items > ul.ym-grid > li.li-quantity-unit {
  width: 1.5625rem;
  padding-left: 8px;
  line-height: var(--height-ui);
  white-space: nowrap;
}

div.count-readonly {
  width: 90%;
  position: relative;
  top: 5px;
  margin-left: auto;
  margin-right: auto;
}

table.shopcart-editable .col-price-total {
  width: 13.16%;
  text-align: right;
}

table.shopcart-editable td.col-price-total {
  padding: 7px 4px 4px 2px;
}

table.shopcart-editable .col-remove-position {
  width: var(--shopcaart-col-remove-position-width);
}
/*
table.shopcart-editable td {

}
*/

table.shopcart-editable td {
  --padding-top-text: 10px;
  --padding-top-delta: 6px;
  --padding-top-ui: calc(var(--padding-top-text) - var(--padding-top-delta));
  --height-ui: 1.9375rem;
}

table.shopcart-editable td.col-availability,
table.shopcart-editable td.col-article-thumbnail,
table.shopcart-editable td.col-article-number,
table.shopcart-editable td.col-article-name,
table.shopcart-editable td.col-article-type,
table.shopcart-editable td.col-price-item,
table.shopcart-editable td.col-price-total {
  padding: var(--padding-top-text) 6px 1px; /* 2022-02-09 padding-bottom 1px causes <2px padding-bottom by UI columns */
}

table.shopcart-editable .col-price-total {
  padding-right: 0px;
}

table.shopcart-editable td.col-desired-date,
table.shopcart-editable td.col-count-units,
table.shopcart-editable td.col-count-items {
  padding: var(--padding-top-ui) 4px;
}

table.shopcart-editable td.col-remove-position {
  padding: var(--padding-top-text) 0 0;
  text-align: center;
}
table.shopcart-editable td.col-remove-position a i[class^="fa"] {
  color: #a00;
}

table.shopcart-editable a.article {
  text-decoration: none;
  display: inline-block; /* fixes tooltips */
  display: block; /* fixes tooltips */
}

html.touch-mode-off table.shopcart-editable a.article:hover {
  text-decoration: underline;
}

/** datepicker "desiredDate" **/
table.shopcart-editable input.desiredDate {
  width: 100%;
  text-align: center;
}

table.shopcart-editable input.count {
  text-align: center;
  width: 100%;
}

/** section.toolbar.shopcart.base 'section-ul-li' rendering - DEPRECATD **/
section.toolbar.shopcart.base {
  padding: 0;
}
section.toolbar.shopcart.is-empty.base {
  margin-top: 2em;
}
section.toolbar.shopcart.base ul li {
  float: left;
  margin-left: 0;
  margin-right: var(--items-gap);
}


/** .shopcart-total-grid **/
@media (max-width: 670px) {

  .shopcart-total-grid {
		display: grid;
		grid-template-areas:
		 "prices-total"
		 "wizard"
		 "toolbar";
  }

	/** buttons **/
	section.toolbar.shopcart.base > ul.count-2 > li {
		margin: 0;
	}
	section.toolbar.shopcart.base > ul.count-2 > li > * {
		width: 100%;
	}
	section.toolbar.shopcart.base > ul.count-2 > li.col-1 {
		width: 68%;
	}
	section.toolbar.shopcart.base > ul.count-2 > li.col-2 {
		width: 31%;
		float: right;
		text-align: right;
	}
}

/** section.toolbar.shopcart.base 'section-div-div' rendering **/
section.toolbar.shopcart.base {
    padding: 0;

    container-name: containerToolbarShopcartBase;
    container-type: inline-size;
}
section.toolbar.shopcart.is-empty.base {
    margin-top: 2em;
}

section.toolbar.shopcart.base > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;

    gap: 0.5rem;
}

@media (max-width: 30rem) {
	/** buttons **/
    section.toolbar.shopcart.base > div > div,
    section.toolbar.shopcart.base > div > div > button {
	    width: 100%;
    }
}

/** .shopcart-total-grid **/
.shopcart-total-grid {
  display: grid;
  grid-template-areas:
    "toolbar prices-total"
    "wizard wizard";

  grid-template-columns: 1fr 1fr;
}
@media (max-width: 30rem) {
  .shopcart-total-grid {
    grid-template-areas:
      "prices-total"
      "wizard";

    grid-template-columns: 1fr;
  }
  .shopcart-total-grid > .toolbar {
    display: none;
  }
}
.shopcart-total-grid > .toolbar {
  grid-area: toolbar;
}

/* shopcart-articlesPriceTotal */
.shopcart-total-grid > .shopcart-articlesPriceTotal {
  grid-area: prices-total;
  margin-top: 0px;
  text-align: right;
  padding: 0px calc(var(--shopcaart-col-remove-position-width) + 1px) 0px 0px;
}
.shopcart-total-grid > .buttons-template.for-wizard {
  grid-area: wizard;
}


@media (max-width: 25rem) {
    .shopcart-total-grid > .shopcart-articlesPriceTotal {
		--shopcaart-col-remove-position-width: 3px;
	}
	/*** buttons "save shopcart" and "trash" ***/
	/* button "save shopcart" */
	section.toolbar.shopcart.base > ul.count-2 > li.col-1 {
		width: 100%
	}
	/* button "trash" */
	section.toolbar.shopcart.base > ul.count-2 > li.col-2 {
		padding-top: 1em;
		width: 100%;
	}
}


.shopcart-articlesPriceTotal {
  margin: 10px 0px 0px 0px;
}

.shopcart-articlesPriceTotal div.container {
  margin: 0;
}

.shopcart-articlesPriceTotal ul.table-2-cols > li {
  line-height: 1.4em;
}
.shopcart-articlesPriceTotal ul.table-2-cols > li.label {
  width: 66%;
  font-weight: normal;
}

.shopcart-articlesPriceTotal ul.table-2-cols > li.value {
  width: 33%;
}

.shopcart-articlesPriceTotal ul.articlesPriceTotal {
  border-top: 0;
  border-right: 0;
  border-bottom-width: 2px;
  border-left: 0;
}

.shopcart-articlesPriceTotal ul.articlesPriceTotal.table-2-cols > li {
  font-weight: 600;
}

.shopcart-articlesPriceTotal ul.priceInfoShipping {
  margin-top: 0em;
  font-style: italic;
}

.shopcart-articlesPriceTotal ul.metal-surcharges-total {
  margin-top: 2px;
  margin-bottom: -2px;
}

.shopcart-articlesPriceTotal div.vats ul {
  font-style: italic;
}

.shopcart-articlesPriceTotal div.vats ul.articlesPriceTotalGross li {
  font-style: normal;
  font-weight: 600;
}

/** dialog shopcart save **/
/*
div.shopcart-save-form {

}
*/

div.shopcart-save-form div.info {
  margin: 0px 0px 5px 0px;
}

div.shopcart-save-form label[for="shopcartName"] {
  margin-top: 2em;
  font-weight: 600;
  display: block;
}

div.shopcart-save-form #shopcartName {
  width: 14.6875rem;
  width: 100%;
}

/** Saved shopcarts **/
div.saved-shopcarts {
  margin: 35px 0px 0px 0px;
}

div.saved-shopcarts div.header div.col-2 {
  text-align: right;
}

div.saved-shopcarts div.saved-shopcart-container {
  margin: 0;
}

html.touch-screen-mode div.saved-shopcarts div.saved-shopcart-container {
  margin: 0;
}
html.touch-screen-mode
  div.saved-shopcarts
  div.saved-shopcart-container
  > div.process {
  width: 175px;
  /*width: auto;*/
  margin: 0 auto;
  border: 0px solid;
}

div.saved-shopcarts div.saved-shopcart-container img {
  vertical-align: middle;
  margin: 0px 5px 0px 0px;
}

div.saved-shopcarts div.saved-shopcart-container section.icon-process {
  padding-top: 2px;
  color: #aaaaaa;
  font-style: italic;
}

/* empty shopcart case */
div.shopcart-empty > div {
  line-height: 40px;
}

div.shopcart-empty > .ym-gr {
  text-align: right;
}

/** table.saved-shopcart **/
div.saved-shopcart-container table.saved-shopcart {
  width: 100%;
}

/*
div.saved-shopcart-container table.saved-shopcart th:FIRST-CHILD,
div.saved-shopcart-container table.saved-shopcart td:FIRST-CHILD {

}
*/

div.saved-shopcart-container table.saved-shopcart .odd td {
  background: #fff;
}

div.saved-shopcart-container table.saved-shopcart tr.BomArticle td {
  font-weight: 600;
}

div.saved-shopcart-container table.saved-shopcart tr.BomPosition td {
  font-weight: 0.9em;
}

div.saved-shopcart-container table.saved-shopcart .col-article-number {
  width: 20%;
}

div.saved-shopcart-container
  table.saved-shopcart
  tr.BomPosition
  .col-article-number {
  padding-left: 10px;
}

/*
div.saved-shopcart-container table.saved-shopcart .col-article-name {
}

div.saved-shopcart-container table.saved-shopcart td.col-article-name {

}
*/

div.saved-shopcart-container
  table.saved-shopcart
  tr.BomPosition
  .col-article-name {
  padding-left: 10px;
}

div.saved-shopcart-container
  table.saved-shopcart
  .col-article-name
  > .availability-number {
  display: none;
}
div.saved-shopcart-container
  table.saved-shopcart
  .col-article-name
  > .availability-number
  .article-number {
  font-weight: 600;
  color: #000;
}

div.saved-shopcart-container table.saved-shopcart .col-count-items {
  width: 10%;
  text-align: center;
}

div.saved-shopcart-container table.saved-shopcart .col-price-total {
  width: 15%;
  text-align: right;
}

.saved-shopcart-container div.shopcart-articlesPriceTotal {
  display: grid;
  grid-template-areas: "toolbar total";
}

.saved-shopcart-container div.shopcart-articlesPriceTotal > .col-1 {
  grid-area: toolbar;
  width: 100%;
}

div.saved-shopcart-container div.shopcart-articlesPriceTotal > .col-2 {
  grid-area: total;
  width: 100%;
}

div.saved-shopcart-container div.shopcart-articlesPriceTotal {
  margin: 0;
  padding: 10px 0 0px 0;
}
div.saved-shopcart-container div.shopcart-articlesPriceTotal > .col-1 {
  height: auto;
}
div.saved-shopcart-container
  div.shopcart-articlesPriceTotal
  > .col-1
  > section
  > .ym-grid {
  margin-bottom: 0;
}
div.saved-shopcart-container div.shopcart-articlesPriceTotal > .col-2 {
  height: auto;
  line-height: 2em;
  margin-bottom: 0em;
  font-weight: 600;
  padding-right: 2px;
  text-align: right;
}

/** shopcart-vats **/
div.vats {
  text-align: right;
  margin: 2px 0px 0px 0px;
}

div.vats div.vat-row {
  /* display: inline;*/
  font-style: italic;
}

/** positions texts **/
div.positionsText {
  font-size: 9px;
  font-weight: 600;
}

div.positionsText > .prefix {
  margin: 0;
  display: inline-block;
  width: 100%;
}

table.shopcart-editable div.processing {
  margin: 0px 0px 0px auto;
}

/** Shopcart CSV-Import dialog **/
div.ui-dialog.shopcart-csv-import {
  width: 31.25rem !important;
}

div.ui-dialog.shopcart-csv-import label {
  font-weight: 600;

  display: block;
  margin-bottom: 0.25em;
  margin-left: 4px;
}

div.ui-dialog.shopcart-csv-import div.info.prepend {
  margin-bottom: 1em;
}

div.ui-dialog.shopcart-csv-import div.info.append:empty {
  /* reserved for customizing */
  display: none;
}

/** Button "PayPal Express Checkout" **/
div.button-paypal-express-checkout.from-shopcart {
  min-height: 4.25rem;

  margin-top: 10px;
  position: relative;
}

div.button-paypal-express-checkout.from-shopcart div.label {
  font-weight: 600;
  margin: 5px 10px 0 0;
}

div.button-paypal-express-checkout.from-shopcart form {
  position: absolute;
  right: 0px;
}

/**
 * @version 2022-01-18
 *
 * mobile/shopcart/styles.qu.css
 *
 * Skin "mobile"
 */

/** table.shopcart-editable **/
table.shopcart-editable td .ui-spinner {
  width: 100%;
  height: var(
    --height-ui
  ) !important; /* 2022-02-09 Reset style="height: 33.12345...px" are setting by jQuery UI */
  padding: 0px 2px;
  position: relative;
  top: 0px;
}

table.shopcart-editable input.desiredDate {
  height: var(--height-ui);
  padding: 6px 2px;
  position: relative;
  top: 0px;
}

table.shopcart-editable input.desiredDate.ui-widget.ui-widget-content {
  border: 1px solid var(--theme-color-bright);
}

table.shopcart-editable input.desiredDate.ui-widget.ui-widget-content:focus {
  border: 1px solid var(--theme-color-dark);
}

/* .ui-spinner */
table.shopcart-editable .ui-spinner.minus-plus .ui-spinner-button {
  max-width: 22px;
}

/*table.shopcart-editable .col-count-units .ui-spinner.minus-plus input[type="number"] {*/
/*margin-top: -2px;*/ /* 2019-03-01 Why? 2024-02-16 OFF */
/*}*/

table.shopcart-editable .ui-spinner.minus-plus input[type="number"],
table.shopcart-editable .ui-spinner.minus-plus input[type="text"] {
  margin-top: 0px; /* 2019-03-01 Why? */
}

/** saved shopcarts **/
html.touch-screen-mode .ui-accordion .ui-accordion-header {
  margin: 2px 0 0em 0;
}

div.saved-shopcarts .ui-state-active {
  border-bottom: 1px solid #cccccc;
}

div.saved-shopcarts .ui-accordion-content {
  margin: 0px 0px 5px 0px;
  overflow: hidden;
  min-height: 50px;
}

div.saved-shopcarts .ui-accordion .ui-accordion-content {
  padding: 1em;
}

html.touch-screen-mode div.saved-shopcarts .ui-accordion .ui-accordion-content {
  padding: 1em 0;
  margin: 0;
}

/*** section.buttons-template.for-wizard ***/
section.buttons-template.for-wizard.count-2 {
  display: grid;
  grid-template-areas: "col-1 col-2";
  grid-template-columns: 1fr 3fr;
  align-items: end;
}

section.buttons-template.for-wizard.count-2 > div {
  width: 100%; /* because they are grid-areas now */
}

section.buttons-template.for-wizard.count-2 > .col-1 {
  grid-area: col-1;
}

section.buttons-template.for-wizard.count-2 > .col-2 {
  grid-area: col-2;
  flex-direction: column; /* 30.08.2024 There is may be "PayPal Express" button */
}

section.buttons-template.for-wizard .placeholder-button-next > .buttons-next {
  display: grid;
  grid-template-areas:
    "order order"
    "label offer";
  grid-template-columns: 1fr auto;
  align-items: center;
}

section.buttons-template.for-wizard
  .placeholder-button-next
  > .buttons-next
  > .button-shopcart-order {
  grid-area: order;
  justify-self: end;
}
section.buttons-template.for-wizard
  .placeholder-button-next
  > .buttons-next
  > .label {
  grid-area: label;
  padding-right: 2em;
}
section.buttons-template.for-wizard
  .placeholder-button-next
  > .buttons-next
  > .button-shopcart-offer {
  grid-area: offer;
}

section.buttons-template.for-wizard
  .placeholder-button-next
  > .buttons-next
  > .label,
section.buttons-template.for-wizard
  .placeholder-button-next
  > .buttons-next
  > .button-shopcart-offer {
  padding-top: 1em;
}

@media (max-width: 34.375rem) {
    /*** section.buttons-template.for-wizard ***/
    section.buttons-template.for-wizard.count-2 {
        grid-template-areas: "col-1 col-2";
        grid-template-columns: 0 100%;
        gap: 0; /* 2026-06-19 EXPERIMENTAL ON */
    }
    section.buttons-template.for-wizard.count-2 > .col-1 {
        display: none;
    }

    section.buttons-template.for-wizard .placeholder-button-next > .buttons-next {
        display: grid;
        grid-template-areas: "order" "label" "offer";
        grid-template-columns: 100%;
        align-items: center;
    }

    section.buttons-template.for-wizard .placeholder-button-next > .buttons-next > .label {
        width: 100%;
        text-align: center;
        padding: 1em 0 0 0;
        margin: 0;
    }

    section.buttons-template.for-wizard .placeholder-button-next > .buttons-next button {
        width: 100%;
    }
}

/**** @package OCI ****/
.ui-dialog.dialog-icon-content
  .ui-dialog-content
  > section
  > .content
  > form
  > div.checkbox-empty-shopcart {
  border: 0px solid red;
  display: flex;
}

.ui-dialog.dialog-icon-content
  .ui-dialog-content
  > section
  > .content
  > form
  > div.checkbox-empty-shopcart
  input[type="checkbox"]
  + label {
  padding-left: 1em;
}
