/* Custom WooCommerce My Account Styling for Partes de Ti */

/* Layout Flex Box for wrapping (some themes don't use it) */
.woocommerce-account .woocommerce {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 50px 0;
  max-width: 1150px;
  margin: 0 auto;
}

.woocommerce-account .woocommerce:has(form.login) {
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    flex-direction: column;
  }
}

/* Navigation Menu */
.woocommerce-MyAccount-navigation {
  flex: 0 0 250px;
  width: 100%;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid #f2f2f2;
  margin: 0 !important;
}

.woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 16px 20px;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  display: flex;
  gap: 6px;
  align-items: center;
}

.woocommerce-MyAccount-navigation ul li a:hover {
  background: #fcfcfc;
  color: #979e6c;
  padding-left: 24px;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
  background: #e8f5e9;
  color: #979e6c;
  font-weight: 600;
  border-left: 4px solid #979e6c;
  padding-left: 20px;
  /* Offset to maintain balance */
}

/* Main Content Area */
.woocommerce-MyAccount-content {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  /* border: 1px solid #eaeaea; */
  /* border-radius: 12px; */
  /* padding: 30px; */
  /* box-shadow: 0 4px 15px rgba(0,0,0,0.03); */
}

@media (max-width: 768px) {
  .woocommerce-MyAccount-content {
    padding: 20px;
  }
}

/* General Typography & Tables inside Account */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

.woocommerce-MyAccount-content table.shop_table {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
  margin-bottom: 20px;
}

.woocommerce-MyAccount-content table.shop_table th {
  /* background: #f9f9f9; */
  padding: 15px;
  font-weight: 600;
  color: #555;
  border: 0;
}

.woocommerce-MyAccount-content table.shop_table td {
  padding: 15px;
  border-bottom: 1px solid #f2f2f2;
  color: #555;
}

.woocommerce-MyAccount-content table.shop_table tr:last-child td {
  border-bottom: none;
}

/* Premium Buttons inside Content */
.woocommerce-MyAccount-content .button {
  border-radius: 20px !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  transition:
    transform 0.2s,
    box-shadow 0.2s !important;
}

.woocommerce-MyAccount-content .button:hover {
  /* transform: translateY(-1px); */
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* VIDEO CSS */
.video-container {
  max-width: 800px;
  margin: 20px auto;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-container video {
  width: 100%;
  display: block;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  #respond
  input#submit.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  a.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  button.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  input.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  #respond
  input#submit.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  a.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  button.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  input.button.alt {
  background-color: #979e6c;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  #respond
  input#submit.alt:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  a.button.alt:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  button.button.alt:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  input.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  #respond
  input#submit.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  a.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  button.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  input.button.alt:hover {
  background-color: rgb(151 158 108 / 80%);
  color: #fff;
}

/* Partners List Styles */
.pdt-partners-highlights {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.pdt-partners-top {
  margin-bottom: 40px;
}

.pdt-partner-highlight-card {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  overflow: hidden;
}

.pdt-partner-highlight-card .pdt-partner-thumbnail {
  flex: 0 0 300px;
  max-width: 100%;
  aspect-ratio: 1/1;
  background-position: center;
  background-size: cover;
}

.pdt-partner-highlight-card .pdt-partner-info {
  flex: 1;
  min-width: 300px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.pdt-partner-title {
  margin: 0 0 5px;
  color: #3a5a40;
  font-size: 1.4em;
}

.pdt-partner-area {
  font-size: 0.9em;
  font-weight: 600;
  color: #588157;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pdt-partner-desc-container {
  margin-bottom: 15px;
}

.pdt-partner-desc-content {
  font-size: 0.95em;
  color: #555;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdt-partner-desc-toggle {
  font-size: 0.85em;
  color: #588157;
  text-decoration: none;
  display: inline-block;
  margin-top: 5px;
  font-weight: 600;
}

.pdt-partner-socials {
  margin-top: auto;
}

.pdt-partner-socials-list {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.pdt-partner-social-link {
  color: #588157;
  font-size: 1.2em;
  transition: opacity 0.2s;
}

.pdt-partner-social-link:hover {
  opacity: 0.7;
}

/* Normal Grid */
.pdt-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.pdt-partner-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdt-partner-card .pdt-partner-thumbnail {
  aspect-ratio: 1/1;
  overflow: hidden;
}

.pdt-partner-card .pdt-partner-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pdt-partner-card .pdt-partner-title {
  font-size: 1.15em;
}

.pdt-partner-card .pdt-partner-area {
  font-size: 0.85em;
  margin-bottom: 12px;
}

.pdt-partner-card .pdt-partner-desc-content {
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
}

.pdt-partner-card .pdt-partner-socials {
  /* padding-top: 15px; */
  border-top: 1px solid #f0f0f0;
}
