/**
 * Theme Name:      VEt Biz Network
 * Theme URI:       https://www.elegantthemes.com/gallery/divi/
 * Description:     A Child Theme
 * Author:          Kre8ivDesigns
 * Author URI:      https://www.kre8ivdesigns.com/
 * Template:         Divi
 * Version:         1.0.0
 * Text Domain:     vet-biz-network
 * License:         GPL2
 * License URI:     https://www.gnu.org/licenses/gpl-2.0.html
 */
  
 
/* === Flexible Column Layouts for PMPro Fields === */

/* Base wrapper (full width single column) */
.pmpro_checkout .one-col {
  width: 100%;
  float: none;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

/* Two-column layout */
.pmpro_checkout .two-col {
  width: 48%;
  float: left;
  box-sizing: border-box;
  margin-bottom: 1rem;
  margin-right: 2%;
}

/* Make every second item in a row flush right */
.pmpro_checkout .two-col:nth-of-type(2n) {
  margin-right: 0;
}

/* Three-column layout */
.pmpro_checkout .three-col {
  width: 30%;
  float: left;
  box-sizing: border-box;
  margin-bottom: 1rem;
  margin-right: 5%;
}

/* Make every third item in a row flush right */
.pmpro_checkout .three-col:nth-of-type(3n) {
  margin-right: 0;
}

/* Two-column layout for Ownership Category checkboxes */
.pmpro_checkout .ownership-two-col ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px; /* space between items */
  list-style: none;
  margin: 0;
  padding: 0;
}

.pmpro_checkout .ownership-two-col ul li {
  width: 48%;       /* two per row */
  box-sizing: border-box;
}

/* Mobile: stack to single column */
@media (max-width: 768px) {
  .pmpro_checkout .ownership-two-col ul li {
    width: 100%;
  }
}


/* === Mobile Reset: Stack Columns === */
@media (max-width: 768px) {
  .pmpro_checkout .two-col,
  .pmpro_checkout .three-col {
    width: 100%;
    float: none;
    margin-right: 0;
  }
}
