.single_add_to_cart_button {
  display: none !important;
}

.sp-presupuesto-informal h1,
.sp-presupuestos-listado h1 {
  margin-block-end: 2em;
}

/* Rechazar presupuesto */
.sp-formulario-cancelacion {
  max-width: 800px;
  margin: auto;
}

.sp-formulario-cancelacion label {
  font-weight: 600;
  margin-top: 20px;
}

.sp-rechazo-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-textarea {
  width: 100%;
}

.sp-presupuesto-actions {
  text-align: center;
  vertical-align: middle !important;
}

.sp-presupuesto-remove input {
  display: none !important;
}
.sp-presupuesto-remove label {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #000;
  cursor: pointer;
}

.sp-presupuesto-remove input:checked + label {
  border: 1px solid var(--e-global-color-accent);
  background-color: var(--e-global-color-accent);
  color: #fff;
}

table.sp-presupuesto-table {
  background-color: transparent;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.9em;
  width: 100%;
  margin-bottom: 2.5em;
}

table.sp-presupuesto-table td,
table.sp-presupuesto-table th {
  border: 1px solid hsla(0, 0%, 50%, 0.502);
  border-left: none;
  border-right: none;
  line-height: 1.5;
  padding: 15px;
  vertical-align: top;
}

table.sp-presupuesto-table th {
  font-weight: 700;
}

table.sp-presupuesto-table tfoot th,
table.sp-presupuesto-table thead th {
  font-size: 1em;
}

table.sp-presupuesto-table caption + thead tr:first-child td,
table.sp-presupuesto-table caption + thead tr:first-child th,
table.sp-presupuesto-table colgroup + thead tr:first-child td,
table.sp-presupuesto-table colgroup + thead tr:first-child th,
table.sp-presupuesto-table thead:first-child tr:first-child td,
table.sp-presupuesto-table thead:first-child tr:first-child th {
  border-block-start: 1px solid hsla(0, 0%, 50%, 0.502);
}

table.sp-presupuesto-table tbody > tr:nth-child(odd) > td,
table.sp-presupuesto-table tbody > tr:nth-child(odd) > th {
  background-color: #fff;
}

table.sp-presupuesto-table tbody tr:hover > td,
table.sp-presupuesto-table tbody tr:hover > th {
  background-color: #f2f2f2;
}

table.sp-presupuesto-table tbody + tbody {
  border-block-start: none;
}

table.sp-presupuesto-table thead,
table.sp-presupuesto-table tfoot .totales {
  background-color: #000;
  color: #fff;
}

table.sp-presupuesto-table tfoot .totales {
  font-size: 2em;
}

p.sp-presupuesto-name-field {
  margin-block-end: 2.5em !important;
}

.align-center {
  text-align: center;
  vertical-align: middle !important;
}

.vertical-middle {
  vertical-align: middle !important;
}

.sp-presupuesto-table .sp-presupuesto-product .sp-item {
  display: flex;
  gap: 15px;
}

.sp-presupuesto-table .sp-presupuesto-product .sp-item img {
  width: 50px;
  height: 100%;
  object-fit: cover;
}

.sp-presupuesto-table .sp-presupuesto-product .sp-item {
}

.sp-presupuesto-save {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 2;
}

.sp-presupuesto-save:after {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  left: 0;
  top: 0%;
  position: absolute;
  transform: scale(0);
  z-index: -1;
  background-color: var(--e-global-color-primary);
  animation-delay: 0.2s;
  transition: all 1s;
  border: 2px solid var(--e-global-color-primary);
  animation-name: animate_presupuesto_save;
  animation-duration: 8s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes animate_presupuesto_save {
  0% {
    transform: scale(0);
  }
  10% {
    transform: scale(2);
  }
  20% {
    transform: scale(0);
  }
  30% {
    transform: scale(2);
  }
  40% {
    transform: scale(0);
  }
  50% {
    transform: scale(2);
  }
  60% {
    transform: scale(0);
  }
  100% {
    transform: scale(0);
  }
}

#ul_presupuestos_listado {
  padding: 0;
  margin: 10px 0;
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#ul_presupuestos_listado li input {
  display: none;
}

#ul_presupuestos_listado li label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  cursor: pointer;
}

#ul_presupuestos_listado li input:checked + label {
  background: black;
  color: white;
}

#ul_presupuestos_listado li input:checked + label:after {
  content: "Seleccionado";
  display: block;
  padding: 4px 8px;
  border: 1px solid white;
}

#btn_cargar_todos {
  padding: 10px;
}

#sp_precio_aproximado {
  width: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 6px;
}

.fondo_rojo_letras_blancas {
  color: white !important;
  border-color: var(--e-global-color-accent) !important;
  background: var(--e-global-color-accent) !important;
  line-height: 1 !important;
  padding: 12px 24px !important;
}

.fondo_rojo_letras_blancas:hover {
  color: var(--e-global-color-accent) !important;
  border-color: var(--e-global-color-accent) !important;
  background: white !important;
}

.fondo_blanco_letras_rojas {
  color: var(--e-global-color-accent) !important;
  border-color: var(--e-global-color-accent) !important;
  background: white !important;
  line-height: 1 !important;
  padding: 12px 24px !important;
}

.fondo_blanco_letras_rojas:hover {
  color: white !important;
  border-color: var(--e-global-color-accent) !important;
  background: var(--e-global-color-accent) !important;
}

.contenedor_botones_presupuesto {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 30px;
}

@media screen and (max-width: 768px) {
  .contenedor_botones_presupuesto {
    display: flex;
    flex-direction: column;
  }

  .contenedor_botones_presupuesto .sp-presupuesto-solicitar {
    width: 100%;
  }

  .sp-presupuesto-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: calc(100vw - 20px);
  }

  .sp-presupuesto-table-scroll table {
    max-width: unset;
    min-width: 900px;
    position: relative;
  }
}

/* Indicador flecha scroll en tablas */
.sp-presupuesto-table-scroll {
  position: relative;
}
.sp-presupuesto-table-scroll.scroll:after {
  content: "";
  width: 30px;
  height: 30px;
  border-top: 2px solid var(--e-global-color-primary);
  border-right: 2px solid var(--e-global-color-primary);
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(-90%, -50%) rotate(45deg);
  animation: loop_flecha_tabla 2s infinite;
}
@keyframes loop_flecha_tabla {
  0% {
    right: 0;
  }
  50% {
    right: -10px;
  }
  100% {
    right: 0;
  }
}

.woocommerce-view-order .woocommerce-OrderUpdates.commentlist.notes {
  margin-bottom: 50px;
  color: white !important;
  padding-inline-start: 0px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.woocommerce-view-order
  .woocommerce-OrderUpdates.commentlist.notes
  .woocommerce-OrderUpdate.comment.note {
  background: var(--e-global-color-accent);
  padding: 10px;
}

.woocommerce-view-order
  .woocommerce-OrderUpdates.commentlist.notes
  .woocommerce-OrderUpdate.comment.note
  strong {
  color: white !important;
}

.woocommerce-view-order
  .woocommerce-OrderUpdates.commentlist.notes
  .woocommerce-OrderUpdate-meta.meta {
  text-transform: uppercase !important;
}

.woocommerce-view-order
  .woocommerce-OrderUpdates.commentlist.notes
  .woocommerce-OrderUpdate-description.description {
  padding-top: 10px;
  font-style: italic;
}
