/* =====================================================
   WC PRODUCT PURCHASE OPTIONS – FRONTEND CSS
   Global + Desktop + Mobile
   Theme color: #83b735
   ===================================================== */

/* ===== BASE ===== */

.wc-ppo {
  margin: 0 0 18px;
}

.wc-ppo__title {
  font-weight: 600;
  margin: 0 0 10px;
}

.wc-ppo__options {
  display: grid;
  gap: 12px;
}

/* OPTION CARD */
.wc-ppo__option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1.5px solid #e6e6e6;
  padding: 14px;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
  box-sizing: border-box;
}

.wc-ppo__option:hover {
  border-color: #cfe3b8;
}

/* RADIO */
.wc-ppo__option input {
  margin-top: 4px;
  flex-shrink: 0;
}

/* META */
.wc-ppo__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

/* NAME ROW */
.wc-ppo__name {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  line-height: 1.3;
}

/* PRICE ROW */
.wc-ppo__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* PRICE */
.wc-ppo__price {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: #83b735;
}

.wc-ppo__price del {
  font-size: 13px;
  color: #999;
  margin-right: 6px;
}

/* SAVE */
.wc-ppo__save-badge {
  font-weight: 700;
  color: #e53935;
}

/* INFO ICON */
.wc-ppo__info {
  text-decoration: none;
}

.wc-ppo__info-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1e73be;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, transform .15s ease;
}

.wc-ppo__info-icon:hover {
  background-color: #2f86d3; /* malo svetlije plavo */
  transform: scale(1.05);
}


/* ===== SELECTED STATE ===== */

.wc-ppo__option:has(input:checked) {
  border: 3px solid #83b735;
  background: #f7fbf3;
}

/* Woodmart sticky add to cart: hide duplicated purchase options UI */
.wd-sticky-btn .wc-ppo {
  display: none !important;
}

/* ===== DESKTOP ===== */

@media (min-width: 769px) {

  .wc-ppo__option {
    padding: 16px;
  }

  .wc-ppo__price {
    font-size: 18px;
  }

  .wc-ppo__name {
    font-size: 15px;
  }
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

  .wc-ppo__options {
    gap: 16px;
  }

  .wc-ppo__option {
    padding: 16px;
    border-radius: 14px;
  }

  .wc-ppo__option input {
    transform: scale(1.4);
    margin-top: 6px;
  }

  /* Vertical price flow */
  .wc-ppo__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .wc-ppo__price {
    font-size: 20px;
    text-align: left;
  }

  .wc-ppo__save-badge {
    font-size: 14px;
  }

  /* Slight spacing for long titles */
  .wc-ppo__name {
    margin-bottom: 4px;
  }

  .wc-ppo__info-icon {
    width: 22px;
    height: 22px;
    font-size: 14px;
  }
}
