/* Vosta UI Styles */

.vosta-wrap {
  font-family: 'Work Sans', sans-serif;
  margin: 20px 0;
}

.vosta-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vosta-heading h3 {
  font-size: 16px;
  font-weight: 400;
  color: #6A5D8D;
}

.kich-thuoc {
  display: inline-flex;
  align-items: center;     /* Căn giữa theo chiều dọc */
  gap: 6px;                /* Khoảng cách giữa icon và chữ */
  color: #4222AC !important;          /* Màu chữ và icon */
  text-decoration: none;
}

.kich-thuoc span {
  display: inline-flex;
  align-items: center;
}
.kich-thuoc svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}


.vosta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.vosta-option {
  border: 1px solid transparent; /* Giữ kích thước ổn định */
  border-radius: 5px;
  background-color: #F4F3F9;
  padding: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  transition: border 0.2s ease, background 0.2s ease;
}

.vosta-option b {
  font-size: 15px;
  color: #271466;
}

.vosta-option small {
  font-size: 12px;
  color: #6A5D8D;
}

.vosta-option:hover {
  border-color: #271466;  /* Không thêm border mới, chỉ đổi màu */
  background: #D7CEEA;
}

.vosta-option.active {
  border-color: #271466;
  background: #D7CEEA;
}


.vosta-option input {
  display: none;
}

.vosta-option input:checked + span,
.vosta-option input:checked ~ span {
  font-weight: bold;
  color: #271466;
}

.vosta-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.vosta-price .price-now {
  font-size: 30px;
  color: #271466;
  font-weight: 500;
  margin-right: 10px;
}

.vosta-price .price-old {
  color: #AFAFAF;
  font-size: 20px;
  margin-right: 6px;
  font-weight: 400;
}

.vosta-price .price-sale {
  padding: 5px;
  color: #fff;
  background-color: #FB6000;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

.vosta-installment {
  font-size: 15px;
  color: #606060;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vosta-installment a {
    color: #4222AC !important;
}

.vosta-action {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 10px;
  margin-top: 20px;
  align-items: stretch;
}

.vosta-qty-wrap {
  display: flex;
  border: 1px solid #D7CEEA;
  border-radius: 5px;
  overflow: hidden;
  align-items: center;
  height: 48px;
  justify-content: center;
  width: 100%;
}

.vosta-qty {
  text-align: center;
  border: none !important;
  outline: none;
  font-size: 16px;
  width: 100%;
  height: 100%;
  line-height: 48px; /* Cùng chiều cao với nút */
  appearance: none;
  -moz-appearance: textfield;
  padding: 0;
}

/* Chrome, Safari, Edge (Webkit) */
.vosta-qty::-webkit-inner-spin-button,
.vosta-qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-plus,
.qty-minus {
  background: #E9E7FF;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vosta-add-cart,
.vosta-buy-now {
  background: #271466;
  color: #fff;
  border: none;
  border-radius: 5px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  height: 48px;
  padding: 0 16px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  transition: border 0.5s ease;
}

.vosta-buy-now {
	background-color: #FECE00;
}

.vosta-add-cart:hover {
	background: transparent;
	border: 1px solid #271466;
	color: #271466;
}

.vosta-buy-now:hover {
	background: transparent;
	border: 1px solid #271466;
	color: #271466;
}

.vosta-btn-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vosta-add-cart svg,
.vosta-buy-now svg {
  display: block;
  flex-shrink: 0;
}

.vosta-fullbtn {
  margin-top: 15px;
}

.vosta-btn {
  display: inline-block;
  background: #E9E7FF;
  color: #271466;
  border-radius: 5px;
  padding: 15px;
  text-align: center;
  width: 100%;
  text-decoration: none;
}

.vosta-btn:hover {
  border: 1px solid #271466;
}

.vosta-error,
.vosta-selected-info {
  display: block;
  margin-top: 10px;
}


.vosta-popup {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
}

.vosta-popup.active {
  display: block;
}

.popup-inner {
  background: #fff;
  max-width: 600px;
  margin: 10% auto;
  padding: 20px;
  border-radius: 5px;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 18px;
  cursor: pointer;
}

.vosta-size-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 15px;
}

.popup-inner h3 {
	font-size: 20px;
	font-weight: 400;
	color: #271466;
}

.popup-inner p {
	font-size: 14px;
	font-weight: 400;
	color: #000000;
}

.vosta-size-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 15px;
}

/* Header */
.vosta-size-table th {
  color: #6A5D8D;
  font-size: 16px;
  font-weight: 500;
  padding: 10px;
  border-bottom: 1px solid #D9D9D9;
  text-align: left;
}

/* Các ô nội dung */
.vosta-size-table td {
  padding: 10px;
  border-bottom: 1px solid #D9D9D9;
}


/* Bỏ border-bottom của hàng cuối cùng */
.vosta-size-table tr:last-child td {
  border-bottom: none;
}

/* Tùy chỉnh link trong hàng cuối cùng nếu có */
.vosta-size-table tr:last-child td a {
  display: block;
  text-decoration: none;
  color: #4222AC;
  font-weight: 500;
  padding: 8px 10px;
}

.vosta-not-size strong {
    font-size: 18px ;
    font-weight:400;
    color: #271466;
}

a.vosta-btn-popup {
      display: block;
    color: #4222AC;
    text-decoration: none !important;
}



/* ---------------- MOBILE IMPROVEMENTS ---------------- */

@media (max-width: 768px) {
  .vosta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vosta-action {
    grid-template-columns: 1fr;
  }

  .vosta-qty-wrap {
    width: 100%;
  }

  .vosta-add-cart,
  .vosta-buy-now {
    font-size: 15px;
    height: 48px;
    padding: 0 12px;
  }

  .vosta-wrap {
    padding: 0 10px;
  }

  .vosta-heading h3 {
    font-size: 14px;
  }

  .vosta-option b {
    font-size: 14px;
    color: #271466;
  }

  .vosta-option span {
    font-size: 14px;
  }

  .vosta-installment {
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
  }

  .popup-inner {
    width: 90%;
    margin-top: 20%;
    padding: 15px;
  }
	
  a.kich-thuoc span {
    font-size: 12px !important;
}
	.vosta-btn {
		padding: 8px !important;
		font-size: 12px !important;
	}
span.woocommerce-Price-amount.amount {
    font-size: 20px !important;
}
	
	.vosta-add-cart {
    background-color: #271466 !important;
}
	.vosta-buy-now {
		background-color: #FECE00 !important;
	}
}