/* WooCommerce/add-to-cart-with-options styles */

.wp-block-add-to-cart-with-options .wc-block-components-quantity-selector {
  border: none !important;
  border-radius: 8px !important;
}

.wp-block-add-to-cart-with-options
  .wc-block-components-quantity-selector
  .wc-block-components-quantity-selector__button {
  color: #919191;
  font-size: var(--wp--preset--font-size--text-l);
  opacity: 1 !important;
}

.wp-block-add-to-cart-with-options
  .wc-block-components-quantity-selector
  .wc-block-components-quantity-selector__input {
  font-size: var(--wp--preset--font-size--text-s);
  width: auto;
}

.wp-block-add-to-cart-with-options .wp-block-woocommerce-product-filter-chips {
  gap: 0px;
}

.wp-block-add-to-cart-with-options
  .wp-block-woocommerce-product-filter-chips
  .wc-block-product-filter-chips__items {
  gap: 8px;
}

.wp-block-add-to-cart-with-options
  .wp-block-woocommerce-product-filter-chips
  .wc-block-product-filter-chips__item {
  font-size: var(--wp--preset--font-size--text-s);
  background-color: transparent;
  color: var(--wp--preset--color--dark-green);
  border: 1px solid #cdc8be;
  border-radius: 8px;
  padding: var(--wp--preset--spacing--20);
  margin-right: var(--wp--preset--spacing--10);
  margin-bottom: var(--wp--preset--spacing--10);
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 !important;
}

.wp-block-add-to-cart-with-options
  .wp-block-woocommerce-product-filter-chips
  .wc-block-product-filter-chips__item:hover,
.wp-block-add-to-cart-with-options
  .wp-block-woocommerce-product-filter-chips
  .wc-block-product-filter-chips__item[aria-checked="true"] {
  background-color: var(--wp--preset--color--light-green-50) !important;
  border-color: var(--wp--preset--color--dark-green) !important;
  border-radius: 8px;
}

/* Subcription styles */

/* WooCommerce Subscriptions plan options */

.wp-block-add-to-cart-with-options .wcsatt-options-product-prompt {
  margin-bottom: var(--wp--preset--spacing--20);
}

.wp-block-add-to-cart-with-options .wcsatt-options-prompt-label {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--10);
  font-size: var(--wp--preset--font-size--text-s);
  color: var(--wp--preset--color--dark-green);
  border: 1px solid #cdc8be;
  border-radius: 8px;
  padding: var(--wp--preset--spacing--20);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wp-block-add-to-cart-with-options .wcsatt-options-prompt-label:hover,
.wp-block-add-to-cart-with-options .wcsatt-options-prompt-label:has(input:checked) {
  background-color: var(--wp--preset--color--light-green-50);
  border-color: var(--wp--preset--color--dark-green);
}

.wp-block-add-to-cart-with-options .wcsatt-options-prompt-label > span {
  margin-left: 0;
}

.wp-block-add-to-cart-with-options .wcsatt-options-prompt-label .subscription-price {
  font-weight: 600;
}

.wp-block-add-to-cart-with-options .wcsatt-options-prompt-action-input[type="checkbox"] {
  appearance: none;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  background-color: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--dark-green);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wp-block-add-to-cart-with-options .wcsatt-options-prompt-action-input[type="checkbox"]:checked {
  background: var(--wp--preset--color--dark-green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M1 5L5 9L13 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 0.75rem no-repeat;
}

.wp-block-add-to-cart-with-options
  .wcsatt-options-prompt-action-input[type="checkbox"]:focus-visible,
.wp-block-add-to-cart-with-options .wcsatt-options-product-dropdown:focus-visible {
  outline: 2px solid var(--wp--preset--color--dark-green);
  outline-offset: 2px;
}

.wp-block-add-to-cart-with-options .wcsatt-options-product-wrapper {
  margin: 0 0 var(--wp--preset--spacing--20);
}

.wp-block-add-to-cart-with-options .wcsatt-options-product-dropdown-label {
  display: block;
  color: var(--wp--preset--color--green);
  margin-bottom: var(--wp--preset--spacing--10);
}

.wp-block-add-to-cart-with-options .pinena-wcsatt-shipping-notice {
  display: block;
  font-size: var(--wp--preset--font-size--text-s);
  font-weight: 600;
  color: var(--wp--preset--color--dark-green);
  margin-bottom: var(--wp--preset--spacing--10);
}

.wp-block-add-to-cart-with-options .wcsatt-options-product-dropdown {
  appearance: none;
  min-width: 220px;
  max-width: 100%;
  margin: 0;
  font-family: var(--wp--preset--font-family--figtree);
  font-size: var(--wp--preset--font-size--text-s);
  color: var(--wp--preset--color--dark-green);
  background: var(--wp--preset--color--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23173D10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    right var(--wp--preset--spacing--20) center / 0.875rem no-repeat;
  border: none;
  border-radius: 8px;
  padding: var(--wp--preset--spacing--20) 2.75rem var(--wp--preset--spacing--20)
    var(--wp--preset--spacing--20);
  cursor: pointer;
}

.wp-block-add-to-cart-with-options .wcsatt-options-product-details p {
  font-size: var(--wp--preset--font-size--text-xs);
  color: var(--wp--preset--color--dark-green);
  margin: var(--wp--preset--spacing--10) 0 0;
}

.wp-block-add-to-cart-with-options .add_to_cart_button:hover {
  box-shadow: inset 0 0 0 100vmax rgb(0 0 0 / 0.25) !important;
}
