.shop_table_my_subs a.button_subs, .woocommerce-account .woocommerce a.button_subs, .woocommerce-account .woocommerce button.button_subs, #form_actions_subs .button_subs{
  background-color: #DC6300; /* naranja */
  font-size: 18px;
  color: #fff !important;
    padding: 12px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background 0.2s ease-in-out;
  text-align: center;
}

.shop_table_my_subs a.button_subs:hover, .woocommerce-account .woocommerce a.button_subs:hover, .woocommerce-account .woocommerce button.button_subs:hover, #form_actions_subs .button_subs{
  background-color: #d35400;
}

/*VIEW SUBSCRIPTIONS*/
.header_view_sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_view_sub  h2 {
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
}
.recurly-tab-content  h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 15px 0 !important;
}

.colums_content {
  /*
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 20px;*/
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: space-between;
}

.colums_1_view, .colums_2_view {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 20px 30px 30px;
    border-radius: 5px;
    width: calc(50% - 10px);
}

.colums_content ul {
    list-style: none;
    padding: 0;
}
.colums_content ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}
.colums_content ul li span:last-child {
    text-align: right;
}
form#form_actions_subs {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#form_actions_subs .button_subs {
    font-size: 16px;
}
/*DRPDOWN*/

.dropdown {
position: relative;
display: inline-block;
grid-column: 1 / -1;
}
.dropdown button {
  width: 100%;
}

.dropdown-toggle {
cursor: pointer;
}

.dropdown-menu {
width: 100%;
display: none;
position: absolute;
background: #fff;
border: 1px solid #ddd;
padding: 0;
z-index: 999;
border-bottom: 0;
}

.dropdown:hover .dropdown-menu {
display: block;
}

#form_actions_subs .dropdown-menu button.dropdown-item,
.dropdown-menu button.dropdown-item {
    width: 100%;
    font-family: 'Barlow', sans-serif;
    background-color: #fff;
    border: 0;
    border-bottom: 1px solid #efefef;
    border-radius: 0;
    color: #000 !important;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px 15px;
    cursor: pointer
}

#form_actions_subs .dropdown-menu button.dropdown-item:hover {
    background-color: #f3f3f3;
}

#form_actions_subs .dropdown-menu button.dropdown-item span.cycles {
    font-weight: 700;
    font-size: 16px;
}

/* Responsive: en móvil apiladas */
@media screen and (max-width: 768px) {
  .colums_content {
    gap: 20px;
  }
  .colums_1_view, .colums_2_view {
    width: 100%;
  }
  .recurly-tabs-container {
    padding: 10px 0 30px 0;
  }
  .colums_2_view {
    order: 3;
  }
}




/* ============================
   📌 Tabla de Invoices
   ============================ */
.shop_table_invoices {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin-top: 15px;
  font-size: 16px;
}


.shop_table_invoices thead th, .shop_table_invoices tbody td  {
    text-align: left;
    padding: 10px 5px 10px 0px;
    color: #333;
    text-transform: capitalize;
    
}
.shop_table_invoices thead th {
    font-size: 18px;
    font-weight: 500;
}
.shop_table_invoices tbody td.td--order--number span {
  display: none;
}

/* ============================
   📌 Botones de acción
   ============================ */
.shop_table_invoices .button_subs {
  font-size: 14px !important;
    padding: 8px !important;
}

/* ============================
   📌 Responsive (≤ 768px)
   ============================ */
@media screen and (max-width: 768px) {
    .colums_1_view, .colums_2_view {
    padding: 10px 20px 25px;
}
.shop_table_invoices tbody tr:last-child {
    border: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

  .shop_table_invoices thead {
    display: none;
  }

  .shop_table_invoices tbody tr {
    display: block;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
  }

  .shop_table_invoices tbody td {
    display: flex;
    justify-content: space-between;
  }

  .shop_table_invoices tbody td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #555;
  }

  .shop_table_invoices .action-btn {
    flex: 1;
    margin: 4px 2px;
    justify-content: center;
  }
}


/*TABS*/
.recurly-tabs-container {
    padding: 30px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

/* Contenido tabs */
.recurly-tab-content {
  max-width: 800px;
    margin: 0 auto;  
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 20px;
}
.recurly-tab-content.active {
  display: block;
  opacity: 1;
}
.recurly-tab-content h3 a {
    font-size: 15px;
    color: #DC6300;
    text-decoration: underline;
}

/* Contenido inicial */
.recurly-columns-content {
  transition: opacity 0.3s ease;
}

/* Botón Back */
.recurly-back-btn {
    margin-top: 5px;
    cursor: pointer;
    text-align: center;
    grid-column: 1 / -1;
}

.recurly-back-btn:hover {
    text-decoration: underline;
}

/* Overlay local */
.recurly-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.recurly-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Spinner */
.recurly-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #d35400;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: recurly-spin 0.8s linear infinite;
}
@keyframes recurly-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/*FORM UPDATE PAYMENT METHOD*/
.recurly-tab-content form {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columnas iguales */
  gap: 15px;
}

/* Recurly elements ocupa 2 columnas */
#recurly-elements {
    grid-column: 1 / -1;
    margin-top: -10px;
}

#recurly-elements .recurly-element.recurly-element-card{
    height: 3em !important;
}

div#recurly-tab-cameras input {
    grid-column: 1 / -1;
}

div#recurly-tab-plan form div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
div#recurly-tab-plan .label--quantity--need {
  display: flex;
  align-items: center;
  gap: 10px;
}
div#recurly-tab-plan .label--quantity--need input {
  width: 80px;
}
/* Botón ocupa 2 columnas */
.recurly-tab-content button.button_subs {
  grid-column: 1 / -1;
}
div#recurly-tab-cameras .row--quantity {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
}
div#recurly-tab-cameras .row--quantity input {
  width: 120px;
}
div#recurly-tab-pause ul li a {
  text-decoration: underline;
  color:#DC6300;
}
div#recurly-tab-pause .row--quantity--cycles {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content:center;
}
div#recurly-tab-pause .row--quantity--cycles input {
  width: 80px;
}
div#recurly-tab-pause .text--pause--untill {
  grid-column: 1 / -1;
  text-align: center;
  font-style: italic;
}
div#recurly-tab-pause .text--message--pause {
  grid-column: 1 / -1;
  text-align: center;
  display: none;
}
div#recurly-tab-pause .text--message--pause a {
    text-decoration: underline;
    color: #DC6300;
}

/* 📱 En móvil: 1 sola columna */
@media (max-width: 768px) {
  .recurly-tab-content form {
    grid-template-columns: 1fr;
  }
}



.prorated{
    text-align: center;
}
form.confirm_change_form {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}



/* ========================
   📌 Tabla Comparativa
   ======================== */
/* ===============================
   📊 Tabla comparativa Recurly
   =============================== */
.recurly-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 18px;
  background: #fff;
  overflow: hidden;
}

.recurly-compare-table th, .recurly-compare-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
}


.recurly-compare-table th {
  font-weight: bold;
  color: #333;
}

/* 📱 Responsive (móvil) */
@media (max-width: 768px) {
.header_view_sub h2 {
    font-size: 27px;
    margin-bottom: 25px;
    text-align: center;
}
.recurly-tab-content h3 {
    font-size: 20px;
    text-align: center;
}

.colums_content ul li {
    font-size: 16px;
    gap: 50px;
}


  .recurly-compare-table thead {
    display: none; /* ocultar header */
  }

  .recurly-compare-table,
  .recurly-compare-table tbody,
  .recurly-compare-table tr,
  .recurly-compare-table td {
    display: block;
    width: 100%;
  }

  .recurly-compare-table tr {
    padding: 10px;
        border-bottom: 1px solid #eee;
        border-radius: 6px;
        background: #fff;
  }

  .recurly-compare-table td {
    border: none;
    padding: 8px 10px;
            text-align: center;
  }

  /* Concepto arriba */
  .recurly-compare-table td:first-child {
    font-weight: bold;
    color: #222;
    margin-bottom: 8px;
  }

  /* Current vs New como dos columnas */
  .recurly-compare-table td:nth-child(2),
  .recurly-compare-table td:nth-child(3) {
    display: inline-block;
    width: 48%;
    vertical-align: top;
    margin: 2px 1%;
    padding: 10px;
    border-radius: 4px;
  }

  /* Etiquetas */
  .recurly-compare-table td:nth-child(2)::before {
    content: "Current: ";
    font-weight: bold;
    color: #555;
            display: block;
  }
  .recurly-compare-table td:nth-child(3)::before {
    content: "New: ";
    font-weight: bold;
    color: #555;
            display: block;
  }



  .header_view_sub {
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: column-reverse;
    }
}
/* 📱 Responsive (móvil) */
@media (max-width: 640px) {
  
  .recurly-tabs-container,
  form#form_actions_subs {
    flex-wrap: wrap;
  }
  .woocommerce-account .woocommerce button.button_subs,
  #form_actions_subs .button_subs,
  .dropdown {
    width: 100%;
  }
  .header_view_sub p {
    width: 100%;
    text-align: center;
  }
  .shop_table_invoices tbody td {
    display: none;
  }
  .shop_table_invoices tbody td.td--order--number {
    display: flex;
  }
  .shop_table_invoices tbody td.td--order--number span {
    display: inline-block;
  }
  .shop_table_invoices tbody td.td--order--number span.icon--close {
    display: none;
  }
  .shop_table_invoices tbody tr.activo td {
    display: flex;
  }
  .shop_table_invoices tbody tr.activo td.td--order--number span.icon--close {
    display: inline-block;
  }
  .shop_table_invoices tbody tr.activo td.td--order--number span.icon--open {
    display: none;
  }
  div#recurly-tab-cameras .row--quantity {
    flex-wrap: wrap;
  }
  div#recurly-tab-cameras .row--quantity input,
  div#recurly-tab-cameras .row--quantity label {
    width: 100%;
  }
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.8);
}

.lightbox-content {
  background: #fff;
  margin: auto;
  padding: 20px;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.list--plans {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 14px;
}
.list--plans div {
  width: 30%;
}
.list--plans div h4 {
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 18px;
}
@media (max-width: 520px) {
  .list--plans div {
      width: 100%;
  }
  .list--plans {
    gap: 10px;
  }
  div#recurly-tab-plan .label--quantity--need {
    flex-wrap: wrap;
  }
  div#recurly-tab-plan .label--quantity--need input {
    width: 100%;
  }
}


#table-pagination {
  margin-top: 15px;
  text-align: center;
}

#table-pagination .page-btn {
  margin: 0 3px;
  padding: 5px 10px;
  cursor: pointer;
  border: 1px solid #333;
  background: #FFF;
  color: #333;
}

#table-pagination .page-btn.active {
  background: #d35400;
    color: #fff;
    border-color: #d35400;
}