/* WHMCS Cart Sync Styles */

.whmcs-product {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.whmcs-product-name {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

.whmcs-product-description {
  margin-bottom: 15px;
  color: #666;
  line-height: 1.5;
}

.whmcs-product-pricing {
  margin-bottom: 15px;
}

.whmcs-price {
  font-size: 1.5em;
  font-weight: bold;
  color: #2c5aa0;
}

.whmcs-billing-cycle {
  color: #666;
  font-size: 0.9em;
}

.whmcs-setup-fee {
  font-size: 0.9em;
  color: #999;
  margin-top: 5px;
}

.whmcs-order-button {
  display: inline-block;
  padding: 12px 24px;
  background: #2c5aa0;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.whmcs-order-button:hover {
  background: #1e3f73;
  color: white;
}

.whmcs-loadmore-wrapper{
	display: flex;
	text-align: center;
	justify-content: center;
}

.whmcs-loadmore-button{
	display: block;
	padding: 12px 24px;
	background: #2c5aa0;
	color: white;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	transition: background 0.3s ease;
	border: none;
}

.whmcs-loadmore-button:hover {
  background: #1e3f73;
  color: white;
}


/* Card Template */
.whmcs-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whmcs-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.whmcs-card-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.whmcs-product-group {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-top: 5px;
}

.whmcs-card-body {
  flex: 1;
}

.whmcs-card-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.whmcs-button-primary {
  background: #1BA7DE;
  width: 100%;
  text-align: center;
  transition: all 0.5s;
}

.whmcs-button-primary:hover {
  background: none;
	border: 1px solid #1BA7DE;
	color: #000;
}

/* Simple Template */
.whmcs-product-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 5px;
  margin-bottom: 10px;
}

.whmcs-product-simple .whmcs-product-name {
  margin: 0;
  font-size: 1em;
}

.whmcs-button-simple {
  padding: 8px 16px;
  font-size: 0.9em;
}

/* Products Grid */
.whmcs-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .whmcs-products-grid {
    grid-template-columns: 1fr;
  }

  .whmcs-product-simple {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .whmcs-product-simple .whmcs-order-button {
    width: 100%;
  }
}

/* Responsive para dominios */
@media (max-width: 768px) {
  .whmcs-domains-grid {
    grid-template-columns: 1fr;
  }
  .whmcs-domain-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* Loading States */
.whmcs-loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.whmcs-error {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  margin: 10px 0;
}

.whmcs-success {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  margin: 10px 0;
}

/* Domain Styles */
.whmcs-domain {
  margin-bottom: 20px;
}

.whmcs-domain-name {
  margin: 0 0 10px 0;
  font-size: 1.3em;
  font-weight: bold;
  color: #333;
}

.whmcs-domain-pricing {
  margin-bottom: 15px;
}

.whmcs-domain-price-item {
  margin-bottom: 5px;
}

.whmcs-domain-price-label {
  display: inline-block;
  width: 100px;
  color: #666;
}

.whmcs-domain-price {
  font-size: 1.2em;
  font-weight: bold;
  color: #2c5aa0;
}

.whmcs-domain-price-period {
  color: #666;
  font-size: 0.9em;
}

.whmcs-domain-actions {
  display: flex;
  gap: 10px;
}

.whmcs-register-button {
  background: #28a745;
}

.whmcs-register-button:hover {
  background: #218838;
}

.whmcs-transfer-button {
  background: #17a2b8;
}

.whmcs-transfer-button:hover {
  background: #138496;
}

/* Domain Grid Template */
.whmcs-domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.whmcs-domain-grid {
  height: 100%;
}

.whmcs-domain-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.whmcs-domain-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.whmcs-domain-card-header {
  padding: 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  position: relative;
}

.whmcs-domain-featured {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffc107;
  color: #212529;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8em;
  font-weight: bold;
}

.whmcs-domain-card-body {
  padding: 15px;
  flex: 1;
}

.whmcs-domain-card-footer {
  padding: 15px;
  border-top: 1px solid #eee;
}

.whmcs-domain-card .whmcs-domain-actions {
  display: flex;
  justify-content: space-between;
}

.whmcs-domain-card .whmcs-order-button {
  flex: 1;
  text-align: center;
}

/* Domain Search Form */
.whmcs-domain-search-form {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.whmcs-domain-search-input {
  display: flex;
  gap: 10px;
}

.whmcs-domain-search-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.whmcs-domain-search-input button {
  padding: 10px 20px;
  background: #2c5aa0;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.whmcs-domain-search-input button:hover {
  background: #1e3f73;
}

/* Estilos para el template domain-default */
.whmcs-domain-default {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.whmcs-domain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.whmcs-domain-featured {
  background: #ffc107;
  color: #212529;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.85em;
  font-weight: bold;
}

.whmcs-domain-pricing {
  margin-bottom: 15px;
}

.whmcs-domain-price-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.whmcs-domain-price-label {
  width: 110px;
  color: #666;
  font-size: 1em;
}

.whmcs-domain-price-value {
  font-size: 1.1em;
  color: #2c5aa0;
  font-weight: bold;
}

.whmcs-domain-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Estilos para la tabla de dominios */
.whmcs-domain-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.whmcs-domain-table th,
.whmcs-domain-table td {
  text-align: center;
  padding: 12px 8px;
  border-bottom: 1px solid #eee;
}

.whmcs-domain-table th {
  background: #f0f2f5;
  color: #2c5aa0;
  font-weight: bold;
}

.whmcs-domain-table tr:last-child td {
  border-bottom: none;
}

.whmcs-domain-featured-row {
  background: #fffbe6;
}

.whmcs-domain-featured-badge {
  background: #ffc107;
  color: #212529;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.85em;
  font-weight: bold;
  margin-left: 8px;
}

.whmcs-domain-actions-cell {
  min-width: 120px;
}

.whmcs-domain-price-na {
  color: #bbb;
  font-style: italic;
}

/* Responsive para la tabla de dominios */
@media (max-width: 900px) {
  .whmcs-domains-table,
  .whmcs-domain-table {
    font-size: 0.97em;
  }
  .whmcs-domains-table th,
  .whmcs-domain-table th,
  .whmcs-domains-table td,
  .whmcs-domain-table td {
    padding: 10px 4px;
  }
}

@media (max-width: 768px) {
  .whmcs-domains-table,
  .whmcs-domain-table {
    border: 0;
    width: 100%;
    box-shadow: none;
  }
  .whmcs-domains-table thead,
  .whmcs-domain-table thead {
    display: none;
  }
  .whmcs-domains-table tr,
  .whmcs-domain-table tr {
    display: block;
    margin-bottom: 18px;
    border-bottom: 2px solid #eee;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .whmcs-domains-table td,
  .whmcs-domain-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    border: none;
    position: relative;
    font-size: 1em;
    width: 100%;
  }
  .whmcs-domains-table td:before,
  .whmcs-domain-table td:before {
    content: attr(data-label);
    font-weight: bold;
    color: #2c5aa0;
    flex-basis: 50%;
    text-align: left;
    padding-right: 10px;
    min-width: 110px;
    display: block;
  }
  .whmcs-domain-actions-cell {
    flex-direction: column;
    gap: 8px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
  }
  .whmcs-domain-featured-badge {
    margin-left: 0;
    margin-top: 6px;
    display: inline-block;
  }
}

/* Mejoras visuales generales para la tabla */
.whmcs-domains-table,
.whmcs-domain-table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(44,90,160,0.06);
}

.whmcs-domains-table th,
.whmcs-domain-table th {
  background: #f0f2f5;
  color: #2c5aa0;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.whmcs-domains-table tr:hover,
.whmcs-domain-table tr:hover {
  background: #f8fafd;
}

.whmcs-domain-featured-row {
  background: #fffbe6;
}

.whmcs-domain-featured-badge {
  background: #ffc107;
  color: #212529;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.85em;
  font-weight: bold;
  margin-left: 8px;
}

.whmcs-domain-price-na {
  color: #bbb;
  font-style: italic;
}
