/* customer */
.my-account-panel {
  display: flex;
  align-items: center;
  border: 1px solid var(--darkblue);
  border-radius: 5px;
  margin-bottom: 35px;
}

.panel-image>.material-icons {
  font-size: 2.5rem;
  margin-bottom: 5px;
  color: var(--darkblue);
}

.back-account {
  color: initial;
  opacity: 0.8;
  text-decoration: revert;
}

.back-account .material-icons {
  font-size: 15px;
}

.account-links_item:hover {
  background-color: hsl(0deg 0% 93%);
}

.panel-image {
  width: 350px;
  flex-direction: column;
  padding: 15px;
}

.my-account-links {
  width: calc(100% - 350px);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.account-hello {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--darkblue);
}


.account-page {

  padding-bottom: 75px;
}

.account-hello h1 {
  font-weight: bold;
}

.logout {
  display: inline-flex;
  align-items: center;
  background-color: #ff4b4b;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
}

.deleted-designs-info {
  font-weight: bold;
    background-color: #ffa4ad;
    padding: 10px;
}

.table-search,
.select-order_designs {
  padding: 8px 15px;
  border-radius: 5px;
  box-shadow: none;
  border: 1px solid #ebebeb;
  background: #f5f5f5;
  transition: var(--trans);
  margin-top: 25px;
  background-color: orange;
  color: white;
}

.table-search:focus {
  background: #efefef;
}

.table-customer tr {
  border-bottom: 1px solid #e3e3e3;
  height: 105px; 
}

.table-customer a {
  color: #261f47;
}

.table-customer tbody tr:hover {
  background: #f6f6f6;
}

.account-links_item {
  padding: 5px 15px;
  background-color: #f8f8f8;
  color: var(--darkblue);
  margin-bottom: 10px;
  transition: var(--trans);
}

.account-links_item:last-child {
  margin-bottom: 0;
}
.table-customer .alt-text {
	font-size: 12px;color: #a9a9a9;
}

.table-customer table,
.table-customer td,
.table-customer th {
  text-align: center;
}

.table-customer td,
.table-customer th {
  padding: 10px;
}

.table-customer td.centered,
.table-customer th.centered {
	text-align: center !important;
}

.expand_toggler {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
}

.order_actions {
  position: absolute;
  right: calc(100% + 10px);
  top: 0;
  opacity: 0;
  min-width: 150px;
  z-index: 2;
  pointer-events: none;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--white);
  transition: opacity var(--trans), top var(--trans);
  box-shadow: var(--shadow);
  flex-direction: column;
  display: flex;
  border: 1px solid #e3e3e3;
}

.expand_toggler:hover:active {
  background: #dbdbdb;
}

.expand_toggler:hover {
  background: #e3e3e3;
}

.additional_link {
  padding: 7px 25px 7px 18px;
  color: var(--font);

  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.opened .order_actions {
  opacity: 1;
  pointer-events: auto;
  padding: 5px;
}

.opened .order_actions a {
	border-color: #34209E;
	color: #34209E
}

.additional_link:hover {
  color: var(--font);
  background: #f6f6f6;
}

.additional_link>span {
  margin-right: 10px;
  color: var(--darkblue);
}

.expandable {
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.relative {
  position: relative;
}

.table-customer th {
  font-weight: 600;
  font-family: 'Montserrat';
}

.btn-table {
  border: 1px solid var(--darkblue);
  border-radius: 5px;
  padding: 2px 6px;
  font-weight: 400;
  line-height: 1;
  background: transparent;
  display: flex;
  color: var(--darkblue);
  background: whitesmoke;
  transition: var(--trans);
  cursor: pointer;
  user-select: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  display: flex;
}

btn-table-myaccount{
  width: 300px;
  margin-left: 50px;
  margin-top: 25px;
}

.btn-table a {
  color: var(--darkblue);
}

.btn-table:hover {
  background-color: var(--border);
  color: var(--darkblue);
}

.btn-table:hover a {
  color: var(--white);
}

.table-footer {
  display: flex;
  align-items: center;
  padding: 15px 0;
  justify-content: space-between;
}

.export-block {
  display: flex;
  gap: 10px;
}

.table-search {
  display: none;
}

.add-address {
  margin-left: auto;
  padding: 4px 10px;
  display: flex;
  margin-right: 15px;
  border-radius: 5px;
  border: 1px solid var(--darkblue);
  color: #fff;
  transition: var(--trans);
  background: var(--darkblue);
}

.add-address:hover {
  opacity: 0.9;

  color: #fff;
}

.export-block img {
  cursor: pointer;
  transition: var(--trans);
}

.export-block img:hover {
  filter: invert(62%) sepia(65%) saturate(558%) hue-rotate(134deg) brightness(82%) contrast(90%);
}

.customer-block_table th {
  color: var(--darkblue);
  font-size: 18px;
  white-space: nowrap;
}

.customer-block {
  background-color: #f5f5f5;
  border-radius: 5px;
  box-shadow: 0 7px 15px -5px #261f473d;
  overflow: hidden;
  margin-bottom: 30px;
  border: 2px solid var(--blue);
  padding-right: 15px;
  padding-left: 15px;
}

.td-product img {
  border-radius: 5px;
  border: 1px solid var(--gray);
  margin-bottom: 15px;
  width: 120px;
  height: 120px;
  object-fit: contain;
  background-color: #fff;
}

.customer-block_table td {
  vertical-align: top;
}

.previous_designs {
  margin-top: 20px;
}

.customer-block_table th,
.add_product_design td,
.td-product,
.qty_cell {
  padding: 13px;
}

.td-product {
  flex-direction: column;
  align-items: flex-start;
  display: flex;
  color: var(--darkblue);
  font-weight: 600;
}

.td-product .material-icons {
  font-size: 14px;
  margin-top: 1px;
}

.customer-block_table .material-icons {
  margin-left: 5px;
}

.td-product a {
  margin: 5px 0;
  font-size: 11px;
}

.customer-block_table {
  font-family: "Montserrat";
  text-align: left;
  table-layout: fixed;
}

.customer-block_head {
  background-color: var(--blue);
  color: #fff;
  padding: 10px 15px;
  margin-right: -15px;
  margin-left: -15px;
  text-transform: uppercase;
}

.samewidth {
  width: 230px;
  overflow: hidden;
}

tr.add_product_design {
  border: 1px solid #261f4724;
  border-radius: 5px;
  /* display: block; */
  overflow: hidden;
  background-color: #fff !important;
}

.observaciones,
.observations {
  opacity: 0.66;
  padding: 10px;
  border-radius: 5px;
  width: 100%;
}

.qty_cell {
  width: 150px;
}

.add_another_design {
  padding: 10px 0;
  display: inline-block;
  margin-bottom: 10px;
  cursor: pointer;
}

.uploaded_design .material-icons {
  font-size: 15px;
  color: var(--error);
}

.customer-info-error,
.pay-order-error {
  color: var(--error) !important;
}

.pay-order-error {
  display: none;
}

/*Customer general custom*/
.box-customer .btn {
  display: flex;
  margin-left: auto;
  color: var(--darkblue);
  background-color: var(--white);
  border: 1px solid var(--darkblue);
  padding: 3px 20px;
}

.box-customer .btn:hover {
  color: var(--white);
  background-color: var(--darkblue);
}

.box-customer__title {
  background-color: var(--blue);
  color: var(--white);
  padding: 0.5em 1em;
  font-size: 1.125rem;
  margin-bottom: 1.4rem;
}

.box-customer__subtitle {
  color: var(--darkblue);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.api-pill {
  background: #eee;
}

.box-customer {
  margin-bottom: 4rem;
}

.customer-invoice-pill {
  color: #fff;
  border-radius: 5px;
  display: block;
  line-height: 1;
  padding: 2px 6px;
  font-size: 12px;
  border: 1px solid;
  cursor: default;
  user-select: none;
}

/*Mis presupuestos*/
.page-budget-detail h3 {
  padding-left: 1.75rem;
}

.page-budget-detail .flex-between,
.page-order-detail .flex-between {
  align-items: stretch;
}

.empty_content .btn {
  margin-top: 15px;
}

.box-customer__content div.invoice-data {
  padding: 1.75rem;
  border: 1px solid var(--darkblue);
  border-radius: 5px;
  min-height: 90%;
}

.box-customer__content div.invoice-data div {
  display: flex;
  padding: 5px 0;
}

.box-customer__content div.invoice-data p:first-child {
  flex: 0 0 30%;
  font-weight: 600;
}

.box-customer__product th {
  color: var(--darkblue);
  font-weight: 700;
  font-size: 1.25rem;
}

.box-customer__product th,
.box-customer__product table td {
  width: 10%;
  text-align: center;
}

.box-customer__product .box-customer__product-pvp {
  width: 20%;
}

.box-customer__product .box-customer__product-name {
  width: 25%;
  text-align: left;
}


.box-customer__product table td {
  text-align: center;
}

.box-customer__product .box-customer__product-price,
.box-customer__product .box-customer__product-pvp,
.box-customer__product .box-customer__product-subtotal {
  text-align: right;
}

.box-customer__product .box-customer__product-subtotal {
  padding-right: 20px;
}

.box-customer__product table table.box-customer__product-content {
  border: 1px solid var(--darkblue);
  border-radius: 5px;
  padding: 15px 20px 15px 0;
  border-collapse: initial;
  margin-top: 20px;
}

table.box-customer__product-content tr {
  background: transparent;
}

table.box-customer__product-content td {
  padding: 7px 0;
}

table.box-customer__product-content td.box-customer__product-name {
  padding-left: 25px;
}

table.table-historic th.box-customer__product-templates,
table.box-customer__product-content td.box-customer__product-templates {
	width: 15% !important;
}

td.box-customer__product-design-states {
	font-weight: 800;
}

.box-customer__prices div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 4rem;
}

.box-customer__prices div:not(:first-child) {
  color: var(--darkblue);
  font-weight: 700;
}

.box-customer__prices div:last-child {
  background-color: var(--gray);
}

.payment-option>.custom-radio {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 2rem 0;
}

.payment-option>.custom-radio>.ps-shown-by-js {
  position: absolute;
  opacity: 0;
}

.payment-option>.custom-radio>img {
  width: 4em;
}

.payment-option>.custom-radio>input[type="radio"]:checked~span {
  color: var(--darkblue);
  font-weight: 600;
}

.payment-option>.custom-radio>input[type="radio"]~span.material-icons {
  color: var(--darkblue);
  position: absolute;
  top: 15px;
  font-size: 35px;
  display: none;
}

.payment-option>.custom-radio>input[type="radio"]:checked~span.material-icons {
  display: block;
}

/*Mis datos*/
.box-customer .form-field-sol {
  flex: 0 0 48%;
}

/*Seguimiento pedido*/
.order-history-info {
  text-align: center;
  color: var(--darkblue);
  font-size: 1.5rem;
}

.history-lines,
.designs-lines {
  border: 1px solid var(--darkblue);
  border-radius: 5px;
  padding: 2rem;
}

.history-line:first-child .date {
  padding-top: 0;
}

.history-line .date {
  font-weight: 600;
  padding: 15px 0;
}

.state {
  display: flex;
  align-items: center;
}

.state-hour {
  text-align: right;
  font-weight: 600;
  padding: 0 15px;
  position: relative;
}

.history-line:last-child {
  margin-bottom: 0;
}

.state-hour,
.state-info {
  padding-top: 30px;
  padding-bottom: 30px;
}

.state-hour::after {
  content: "";
  display: block;
  border-right: 1px solid #17b2bc;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
}

.state-info {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
}

.state-additional {
  font-size: 0.75rem;
}

/*Mis disenos*/
.designs-card {
  border: 1px solid var(--darkblue);
  border-radius: 5px;
  margin-bottom: 2%;
}

.designs-card__image {
  border-right: 1px solid var(--darkblue);
  flex: 0 0 25%;
}

.designs-card__image img {
  object-fit: cover;
  width: 100%;
  height: auto;
}

.designs-card__content {
  display: flex;
  padding: 1.5rem;
  width: 100%;
}

.designs-card__data {
  width: 60%;
}

.designs-card__button {
  width: 40%;
}

.designs-card__button .btn {
  font-size: 0.9rem;
  font-weight: 600;
}

.designsup {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto;
  grid-template-areas:
    "prod qty designsup-box designsup-box designsup-box designsup-box"
    "prod qty adddesign adddesign adddesign adddesign"
    "prod qty adddesignsup-box adddesignsup-box adddesignsup-box adddesignsup-box";
  -ms-display: grid;
  -ms-grid-template-columns: repeat(6, 1fr);
  -ms-grid-template-rows: auto;
  -ms-grid-template-areas: "prod qty designsup-box designsup-box designsup-box designsup-box"
    "prod qty adddesign adddesign adddesign adddesign"
    "prod qty adddesignsup-box adddesignsup-box adddesignsup-box adddesignsup-box";
}
.design_status.pill {padding: 3px 15px;white-space: nowrap;font-size: 12px;border: 1px solid var(--gray);text-align: center;display: inline-flex;border-radius: 30px;margin-bottom: 14px;}
.designsup-box,
.adddesignsup-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  -ms-display: grid;
  -ms-grid-template-columns: repeat(4, 1fr);
  -ms-grid-template-rows: auto;
  background-color: #fff;
  border: 1px solid var(--border);
}

.designsup-box {
  grid-area: designsup-box;
  grid-template-areas: "design nprod croquis obser";
  -ms-grid-area: designsup-box;
  -ms-grid-template-areas: "design nprod croquis obser";
margin-top: 20px;}

.adddesignsup-box {
  grid-area: adddesignsup-box;
  grid-template-areas: "updesign addnprod upcroquis addobser";
  -ms-grid-area: adddesignsup-box;
  -ms-grid-template-areas: "updesign addnprod upcroquis addobser";
  margin-bottom: 30px;
}

.designsup div.designsup-item {
  padding: 20px;
}

.designsup div.designsup-item img {
  border-radius: 5px;
  border: 1px solid var(--gray);
  margin-bottom: 15px;
  width: 120px;
  height: 120px;
  object-fit: contain;
  background-color: #fff;
}

.designsup div.designsup-item>div>a {
  margin: 5px 0;
  font-size: 11px;
}

.designsup p {
  color: var(--darkblue);
  font-size: 18px;
  white-space: nowrap;
  margin-bottom: 20px;
  font-weight: 700;
}

.designsup .prod>div {
  flex-direction: column;
  align-items: flex-start;
  display: flex;
  color: var(--darkblue);
  font-weight: 600;
}

.designsup .prod {
  grid-area: prod;
  -ms-grid-area: prod;
}

.designsup .prod-qty {
  grid-area: qty;
  -ms-grid-area: qty;
}

.designsup .design {
  grid-area: design;
  -ms-grid-area: design;
}

.designsup .nprod {
  grid-area: nprod;
  -ms-grid-area: nprod;
}

.designsup .croquis {
  grid-area: croquis;
  -ms-grid-area: croquis;
}

.designsup .obser {
  grid-area: obser;
  -ms-grid-area: obser;
}

.designsup .adddesign {
  grid-area: adddesign;
  -ms-grid-area: adddesign;
}

.designsup .updesign {
  grid-area: updesign;
  -ms-grid-area: updesign;
}

.designsup .upcroquis {
  grid-area: upcroquis;
  -ms-grid-area: upcroquis;
}

.designsup .addnprod {
  grid-area: addnprod;
  -ms-grid-area: addnprod;
}

.designsup .addobser {
  grid-area: addobser;
  -ms-grid-area: addobser;
}

#_desktop_pay_order_modal_wrapper .modal-body {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

#_desktop_pay_order_modal_wrapper .modal-body>div:last-child {
  flex: 0 0 100%;
}

#invoice-address  div, #delivery-address div {
  display: flex;
  padding: 0px 0px 10px 10px;
}

#invoice-address p, #delivery-address p {
  flex: 0 0 30%;
}

/* Responsive */
@media screen and (max-width: 1200px) {
  .designsup div.designsup-item a {
    margin: 5px 0;
    font-size: 11px;
  }
}

@media screen and (max-width: 991px) {
  .flex-fifty {
    flex: 0 0 100%;
  }

  .page-budget-detail .flex-between,
  .page-order-detail .flex-between {
    align-items: center;
    gap: 25px;
  }

  .order-history-info {
    font-size: 1.15rem;
    margin-bottom: 20px;
  }

  .designs-card__content {
    flex-direction: column;
    flex: 1;
  }

  .designsup {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      "prod qty designsup-box designsup-box"
      "adddesign adddesign adddesign adddesign"
      "adddesignsup-box adddesignsup-box adddesignsup-box adddesignsup-box";
    -ms-grid-template-columns: repeat(4, 1fr);
    -ms-grid-template-areas: "prod qty designsup-box designsup-box"
      "adddesign adddesign adddesign adddesign"
      "adddesignsup-box adddesignsup-box adddesignsup-box adddesignsup-box";
  }

  .designsup-box {
    grid-template-columns: repeat(2, 1fr);
    -ms-grid-template-columns: repeat(2, 1fr);
  }

  .designsup-box {
    grid-template-areas: "design nprod""croquis obser";
    -ms-grid-template-areas: "design nprod""croquis obser";
  }

  .adddesignsup-box {
    grid-template-columns: repeat(4, 1fr);
    -ms-grid-template-columns: repeat(4, 1fr);
  }

  .adddesignsup-box {
    grid-template-areas: "updesign addnprod upcroquis addobser";
    -ms-grid-template-areas: "updesign addnprod upcroquis addobser";
  }

  .designsup p {
    font-size: 16px;
  }

  .previous_designs {
    font-size: 13px;
  }

  .qty {
    width: 60px;
  }

  .designsup div.designsup-item {
    padding: 15px;
  }
}

@media screen and (max-width: 768px) {
  .my-account-panel {
    flex-direction: column;
  }

  .panel-image {
    width: 100%;
  }

  .my-account-links {
    width: 100%;
  }

  h1 {
    font-size: 1.25rem;
  }

  .account-hello select {
    font-size: 0.9rem;
  }

  .designsup {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "prod qty"
      "designsup-box designsup-box"
      "adddesign adddesign"
      "adddesignsup-box adddesignsup-box";
    -ms-grid-template-columns: repeat(2, 1fr);
    -ms-grid-template-areas: "prod qty""designsup-box designsup-box"
      "adddesign adddesign""adddesignsup-box adddesignsup-box";
  }

  .adddesignsup-box {
    grid-template-columns: repeat(2, 1fr);
    -ms-grid-template-columns: repeat(2, 1fr);
  }

  .adddesignsup-box {
    grid-template-areas:
      "updesign addnprod"
      "upcroquis addobser";
  }
  .design_status.pill {padding: 3px 15px;border: 1px solid var(--gray);font-size: 12px;white-space: nowrap;text-align: center;display: inline-flex;align-items: center;justify-content: center;border-radius: 30px;}
  .previous_designs {
    font-size: 16px;
  }

  .qty {
    width: 80px;
  }

  .designsup div.designsup-item a {
    font-size: 14px;
  }

  .designsup div.designsup-item {
    padding: 10px;
  }
}

@media screen and (max-width: 575px) {
  h1 {
    font-size: 1.15rem;
  }

  .account-hello select {
    font-size: 0.75rem;
  }

  .account-hello input[type="text"] {
    width: 130px;
  }

  .designs-card {
    flex-direction: column;
  }

  .designs-card__image {
    border-right: none;
  }

  .designs-card__button {
    margin-top: 20px;
  }

  table.box-customer__product-content td.box-customer__product-name {
    padding-left: 0px;
  }

  .box-customer__product-image img {
    width: 60px;
  }

  .box-customer__product .box-customer__product-image {
    width: 9%;
  }

  .box-customer__product th {
    font-size: 0.7rem;
  }

  .box-customer__product table table.box-customer__product-content{
    font-size: 0.7rem;
  }

  .box-customer__product-content .box-customer__product-subtotal{
    padding-right: 0px;
  } 

  .thead-default .box-customer__product-quantity, .thead-default .box-customer__product-price{
    text-align: center;
  }

}

.reorder-btn {
	border-color: #34209E;
  color: #34209E;
  border: 0;
  background: 0;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

/* Acciones por fila en historial de pedidos (ver / pedir de nuevo) */
.order-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.order-row-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #e3e3e3;
  background: #fff;
  color: #34209E;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.order-row-action-btn .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.order-row-action-btn:hover,
.order-row-action-btn:focus {
  background: #f7f6fb;
  border-color: #34209E;
  color: #34209E;
  outline: none;
  box-shadow: 0 2px 8px rgba(52, 32, 158, 0.12);
}

.order-row-action-btn--reorder.reorder-btn {
  border: 1px solid #e3e3e3;
  font-size: inherit;
}

.table-customer .order-actions {
  vertical-align: middle;
}

.customer-form-identity-wrapper {
	align-items: start;
}

.customer-upload_designs_finish-mobile{
  text-align-last: center;
}

.invoice-payment-wrapper{
  text-align: -webkit-center;
}

.payment-btn{
  inline-size: 50%;
}

.state-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.printbot-state, .design-state {
  display: block;
  width: 100%;
  text-align: center;
}

.printbot-state {
  margin-bottom: 5px;
}

.customer-pill {
  color: black;
  border-radius: 5px;
  display: block;
  line-height: 1;
  padding: 2px 6px;
  font-size: 14px;
  cursor: default;
  user-select: none;
  inline-size: 100%;
  margin-bottom: 5px;
}

.invoice-payment-wrapper {
  text-align: -webkit-center;
}

.payment-btn {
  inline-size: max-content;
  margin-bottom: 5px;
  margin-top: 8px;
}

.invoice-btn {
  display: block;
  align-items: center;
  text-decoration: none;
  color: #34209E;
  size: max-content;
  margin-bottom: 5px;
  inline-size: max-content;
  padding: 5px;
}

.invoice-btn .material-icons {
  font-size: 18px;
  margin-right: 5px;
}

.payment-method {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #777;
}

.canceled-order-dec {
  background-color: #e3e3e9;
}

/* Estructura general de la tabla */
.checkout-block_table {
  width: 100%;
  table-layout: fixed;
}

/* Columnas con anchos específicos */
.customer-samewidth.design_file {
  width: 25%;
  position: relative;
  text-align: left;
}

table.checkout-block_table thead tr th:last-child {
  width: 50px;
}

.add_product_design td:last-child {
  width: 50px;
}

.customer-samewidth.design_num {
  align-content: center;
  width: 100px;
  text-align: center;
}

th.design_num{
  width: 100px;
}

.customer-samewidth.delete_design_item {
  width: 50px;
  text-align: center;
}

/* Ajustes para las imágenes y estados */
.design_file {
  position: relative;
}

.product-custom-design-thumbnail {
  max-width: 90px;
  height: auto;
}

/* Estado del diseño (alert-danger/alert-info) */
.design_file span[class^="alert-"] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  max-width: calc(100% - 100px); /* 100px es el espacio para la imagen */
  padding: 2px 8px;
  border-radius: 4px;
  text-align: center;
}

/* Ajustes para el área de observaciones */
.customer-custom-design-description {
  width: 100%;
  resize: vertical;
  min-height: 80px;
}

/* Ajustes para versión móvil */
@media (max-width: 768px) {
  .product-block-mobile .checkout-block_table {
      display: block;
  }
  
  .product-block-mobile .customer-samewidth {
      display: block;
      width: 100%;
      margin-bottom: 10px;
  }

  .design_file span[class^="alert-"] {
      position: relative;
      display: block;
      margin-top: 5px;
      transform: none;
      max-width: 100%;
  }

}

/* ——— Modal repetir pedido ——— */
.reorder-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(22, 18, 40, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.reorder-modal-overlay.is-open {
  display: flex;
}

.reorder-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 1400px;
  max-height: 92vh;
  overflow: hidden auto;
  background: linear-gradient(180deg, #ffffff 0%, #faf9fd 100%);
  border-radius: 16px;
  border: 1px solid rgba(52, 32, 158, 0.12);
  box-shadow:
    0 4px 6px rgba(52, 32, 158, 0.04),
    0 24px 48px rgba(22, 18, 40, 0.14);
}

.reorder-modal-inner {
  padding: 28px 28px 32px;
  padding-top: 48px;
}

.reorder-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(52, 32, 158, 0.06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #34209E;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.reorder-modal-close:hover {
  background: rgba(52, 32, 158, 0.12);
  transform: scale(1.05);
}

.reorder-modal-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(52, 32, 158, 0.1);
}

.reorder-modal-title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1530;
  letter-spacing: -0.02em;
}

.reorder-modal-lead {
  margin: 0;
  font-size: 0.95rem;
  color: #5c5678;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.reorder-modal-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: stretch;
}

.reorder-modal-col {
  flex: 1 1 300px;
  padding: 22px 22px 24px;
  border-radius: 14px;
  border: 1px solid #e8e6f0;
  background: #fff;
  display: block;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.reorder-modal-col--same {
  border-color: rgba(52, 32, 158, 0.22);
  box-shadow: 0 8px 28px rgba(52, 32, 158, 0.08);
}

.reorder-modal-col--change {
  background: #f7f6fb;
  border-style: dashed;
  border-color: #d4d0e8;
  justify-content: flex-start;
}

.reorder-modal-col--change .reorder-modal-hint {
  flex: 1 1 auto;
}

.reorder-modal-col-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reorder-modal-step {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #34209E 0%, #4b38c4 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(52, 32, 158, 0.35);
}

.reorder-modal-step--alt {
  background: linear-gradient(135deg, #6b63a1 0%, #8a84b8 100%);
  box-shadow: 0 2px 8px rgba(107, 99, 161, 0.3);
}

.reorder-modal-heading {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0;
  color: #252038;
  line-height: 1.35;
  flex: 1;
}

.reorder-modal-address-intro,
.reorder-modal-hint {
  font-size: 0.9rem;
  color: #5c5678;
  margin: 0 0 10px;
  line-height: 1.45;
}

.reorder-modal-address {
  font-size: 0.9rem;
  margin-bottom: 18px;
  min-height: 44px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f7f6fb;
  border: 1px solid #ebe8f4;
  color: #3a3558;
  line-height: 1.5;
}

.reorder-modal-address .reorder-address-compact {
  display: block;
  font-weight: 500;
  word-break: break-word;
}

.reorder-address-alias {
  font-weight: 600;
  color: #34209E;
}

.reorder-modal-panel {
  margin-bottom: 18px;
  padding: 16px 16px 14px;
  border-radius: 12px;
  background: #faf9fd;
  border: 1px solid #ebe8f4;
}

.reorder-modal-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(52, 32, 158, 0.08);
}

.reorder-modal-panel-icon {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, #34209E 0%, #6b5ad4 100%);
  box-shadow: 0 1px 4px rgba(52, 32, 158, 0.35);
}

.reorder-modal-subheading {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: #34209E;
}

.reorder-modal-shipping {
  flex: 1 1 auto;
}

.reorder-shipping-state {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.reorder-shipping-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(52, 32, 158, 0.06);
  color: #34209E;
  font-weight: 500;
  text-align: center;
}

.reorder-shipping-loading-text {
  line-height: 1.3;
}

.reorder-shipping-spinner {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(52, 32, 158, 0.22);
  border-top-color: #34209E;
  border-radius: 50%;
  animation: reorder-shipping-spinner-rotate 0.75s linear infinite;
  will-change: transform;
}

@keyframes reorder-shipping-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

.reorder-shipping-error {
  border-radius: 10px;
  margin-bottom: 0;
}

.reorder-shipping-intro {
  margin-bottom: 12px;
}

.reorder-shipping-highlight {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(46, 160, 67, 0.12) 0%, rgba(46, 160, 67, 0.04) 100%);
  border: 1px solid rgba(46, 160, 67, 0.25);
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1d4a2a;
}

.reorder-shipping-highlight-label {
  display: inline;
  font-weight: 500;
}

.reorder-shipping-highlight-date {
  display: inline;
  font-weight: 700;
  margin-left: 4px;
}

.reorder-shipping-alt-title {
  font-size: 0.86rem;
  margin: 0 0 8px;
  color: #5c5678;
  font-weight: 500;
}

.reorder-shipping-options-root {
  max-height: 40vh;
  overflow-y: auto;
  margin-bottom: 4px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 32, 158, 0.35) transparent;
}

.reorder-shipping-options-root::-webkit-scrollbar {
  width: 6px;
}

.reorder-shipping-options-root::-webkit-scrollbar-thumb {
  background: rgba(52, 32, 158, 0.25);
  border-radius: 6px;
}

.reorder-shipping-options-root .checkbox-label {
  display: block;
  margin-bottom: 10px;
}

.reorder-shipping-options-root .checkbox-label > table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e4e0f0;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reorder-shipping-options-root .checkbox-label:hover > table {
  border-color: rgba(52, 32, 158, 0.35);
  box-shadow: 0 2px 12px rgba(52, 32, 158, 0.08);
}

.reorder-shipping-options-root .checkbox-label:has(.shipping-option-input:checked) > table {
  border-color: #34209E;
  box-shadow: 0 0 0 2px rgba(52, 32, 158, 0.15);
}

.reorder-shipping-options-root .checkbox-label td {
  padding: 12px 14px;
  vertical-align: middle;
}

.reorder-delivery-comment {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(52, 32, 158, 0.15);
}

.reorder-delivery-comment .form-control {
  border-radius: 10px;
  border-color: #dcd8ec;
}

.reorder-delivery-comment .form-control:focus {
  border-color: #34209E;
  box-shadow: 0 0 0 3px rgba(52, 32, 158, 0.12);
}

.reorder-order-comment-block {
  margin-top: 14px;
  margin-bottom: 4px;
}

.reorder-order-comment-block .form-control-label {
  font-weight: 600;
  color: #34209E;
  margin-bottom: 6px;
}

.reorder-order-comment-block .form-control {
  border-radius: 10px;
  border-color: #dcd8ec;
  resize: vertical;
  max-height: 80px;
}

.reorder-order-comment-block .form-control:focus {
  border-color: #34209E;
  box-shadow: 0 0 0 3px rgba(52, 32, 158, 0.12);
}

.reorder-modal-submit-same,
.reorder-modal-submit-checkout {
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 16px;
  border-radius: 10px;
  font-weight: 600;
  padding-left: 1rem;
  padding-right: 1rem;
}

.reorder-modal-col--same .reorder-modal-submit-same {
  background: #feac00;
  border: none;
  box-shadow: 0 4px 14px rgba(52, 32, 158, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.reorder-modal-col--same .reorder-modal-submit-same:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(52, 32, 158, 0.42);
}

.reorder-modal-col--same .reorder-modal-submit-same:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.reorder-modal-col--change .reorder-modal-submit-checkout {
  border-width: 2px;
  border-color: #34209E;
  color: #34209E;
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.reorder-modal-col--change .reorder-modal-submit-checkout:hover {
  background: #34209E;
  color: #fff;
}

@media (max-width: 768px) {
  .reorder-modal-inner {
    padding: 24px 18px 28px;
    padding-top: 44px;
  }

  .reorder-modal-title {
    font-size: 1.2rem;
  }

  .reorder-modal-columns {
    flex-direction: column;
  }

  .reorder-modal-col {
    flex: 1 1 auto;
  }

  .reorder-shipping-options-root {
    max-height: 36vh;
  }
}

/* Pantalla de carga bloqueante al confirmar repetir pedido / ir al carrito */
.reorder-page-loading {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10100;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(22, 18, 40, 0.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.reorder-page-loading.is-active {
  display: flex;
}

body.reorder-page-loading-open {
  overflow: hidden;
}

body.reorder-page-loading-open #reorder-choice-modal.is-open {
  pointer-events: none;
}

.reorder-page-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 420px;
  text-align: center;
  color: #fff;
}

.reorder-page-loading-spinner {
  display: block;
  width: 72px;
  height: 72px;
  border: 6px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  border-radius: 50%;
  animation: reorder-page-loading-spin 0.85s linear infinite;
}

@keyframes reorder-page-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.reorder-page-loading-message {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.reorder-page-loading-wait {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.78;
  color: rgba(255, 255, 255, 0.88);
}

