body .devvn_buy_now_style,
body .devvn_buy_now_style.button {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 180px;
  min-height: 47px;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 4px !important;
  text-align: center;
  text-decoration: none !important;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none !important;
  text-shadow: none !important;
  letter-spacing: 0;
}

.single-product .summary .devvn_buy_now_style,
.product .summary .devvn_buy_now_style,
.single-product form.cart .devvn_buy_now_style,
.single-product .product-info form.cart .devvn_buy_now_style,
.single-product .summary form.cart .devvn_buy_now_style,
body.theme-flatsome.single-product form.cart .devvn_buy_now_style {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  margin: 12px 0 0 !important;
  font-size: 20px;
  text-transform: uppercase;
}

.single-product form.cart .devvn_buy_now_fallback {
  clear: both;
  display: flex !important;
}

.devvn_buy_now_style strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.devvn_buy_now_style span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.92;
}

.devvn_buy_now_link {
  cursor: pointer;
  text-decoration: underline;
}

.devvn-qb-hidden {
  display: none;
}

.devvn-popup-quickbuy.devvn-qb-open {
  display: block;
}

.devvn-qb-body-open {
  overflow: hidden;
}

.devvn-qb-overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(0, 0, 0, 0.55);
}

.devvn-popup-inner {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 999999;
  width: min(842px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #333;
  border-radius: 2px;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.28);
  font-size: 14px;
}

.devvn-qb-inline .devvn-qb-overlay,
.devvn-qb-inline .devvn-popup-close,
.devvn-qb-inline .devvn-popup-heading {
  display: none;
}

.devvn-qb-inline .devvn-popup-inner {
  position: static;
  width: 100%;
  max-height: none;
  overflow: visible;
  transform: none;
  border: 1px solid #ddd;
  box-shadow: none;
}

.devvn-popup-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 9px 10px 9px 20px;
  background: #c99f3b;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.devvn-popup-heading span {
  min-width: 0;
}

.devvn-popup-close {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: #fff !important;
  color: #c99f3b !important;
  font-size: 19px;
  line-height: 22px;
  font-weight: 700;
  cursor: pointer;
}

.devvn-popup-content {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 22px;
  padding: 12px 10px 24px;
}

.devvn-popup-content-left,
.devvn-popup-content-right {
  min-width: 0;
}

.devvn-popup-content-left {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-content: start;
  column-gap: 12px;
}

.devvn-popup-img {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 112px;
  margin: 0;
  background: #f6f6f6;
  overflow: hidden;
  text-align: center;
}

.devvn-popup-img img {
  display: block;
  width: 112px;
  height: 135px;
  object-fit: cover;
}

.devvn-popup-title {
  grid-column: 2;
  grid-row: 1;
  margin: 34px 0 8px;
  color: #333;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.devvn_price {
  grid-column: 2;
  grid-row: 2;
  margin: 0 0 10px;
  color: #f00000;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.devvn-popup-content-desc {
  grid-column: 1 / -1;
  grid-row: 4;
  margin: 18px 0 0;
  color: #444;
  font-size: 16px;
  line-height: 1.35;
}

.devvn-popup-content-desc p {
  margin: 0 0 8px;
}

.devvn_prod_variable {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 17px;
}

.devvn_prod_variable form.cart,
.devvn_prod_variable .variations_form {
  margin: 0;
}

.devvn_prod_variable .variations {
  width: 100%;
  margin: 0 0 12px;
  border: 0;
}

.devvn_prod_variable .variations th,
.devvn_prod_variable .variations td {
  display: block;
  padding: 0 0 8px;
  border: 0;
  text-align: left;
}

.devvn_prod_variable .variations label {
  display: block;
  margin: 0 0 5px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.devvn_prod_variable select,
.devvn_prod_variable input.qty,
.popup-customer-info-group input[type="text"],
.popup-customer-info-group input[type="tel"],
.popup-customer-info-group input[type="email"],
.popup-customer-info-group select,
.popup-customer-info-group textarea {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: none;
}

.popup-customer-info-group textarea {
  min-height: 70px;
  resize: vertical;
}

.devvn-qb-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 39px;
}

.devvn-qb-quantity-label {
  min-width: 83px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
}

.devvn-qb-qty-row .quantity {
  display: inline-flex;
  align-items: center;
  float: none !important;
  margin: 0 !important;
}

.devvn-qb-qty-row .quantity input.qty {
  width: 40px;
  min-height: 39px;
  padding: 0;
  border-radius: 0;
  text-align: center;
}

.devvn-qb-qty-row .quantity .minus,
.devvn-qb-qty-row .quantity .plus {
  width: 31px;
  height: 39px;
  padding: 0;
  border: 1px solid #ddd;
  background: #f8f8f8;
  color: #333;
  font-size: 18px;
  line-height: 37px;
}

.devvn_cusstom_info {
  margin: 0;
}

.devvn-customer-heading {
  margin: 0 0 16px;
  color: #333;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.popup-customer-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 6px;
}

.popup-customer-info-group {
  position: relative;
  min-width: 0;
}

.popup-customer-info-name label,
.popup-customer-info-phone label,
.popup-customer-info-email label,
.popup-customer-location label,
.popup-customer-district label,
.popup-customer-ward label,
.popup-customer-address label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.popup-customer-info-group label {
  display: block;
  margin: 0 0 5px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.popup-customer-info-group label span {
  color: #e4002b;
}

.popup-customer-address,
.popup-customer-note,
.popup_quickbuy_shipping_calc,
.customer_coupon_wrap,
.paymentmethob-wrap,
.devvn-qb-total-wrap,
.devvn_quickbuy_mess,
.devvn-order-btn,
.popup-customer-gender {
  grid-column: 1 / -1;
}

.popup-customer-info-group input::placeholder,
.popup-customer-info-group textarea::placeholder {
  color: #777;
  opacity: 1;
}

.devvn-qb-coupon-row {
  display: flex;
  gap: 6px;
}

.devvn-qb-coupon-row input {
  flex: 1;
}

.devvn-qb-apply-coupon {
  min-width: 92px;
  min-height: 39px;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
}

.quickbuy_coupon_mess,
.devvn_quickbuy_mess {
  display: none;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.4;
}

.devvn_quickbuy_mess.error,
.quickbuy_coupon_mess {
  background: #fff1f1;
  color: #b00020;
}

.devvn_quickbuy_mess.success {
  background: #eef9f0;
  color: #176529;
}

.quickbuy_coupon_amout {
  margin-top: 8px;
  color: #176529;
  font-size: 13px;
}

.paymentmethob-wrap {
  margin-top: 2px;
}

.paymentmethob_title {
  margin-bottom: 6px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.devvn-qb-shipping-option,
.devvn-qb-payment-option,
.popup-customer-gender label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0;
  font-weight: 400;
}

.devvn-qb-shipping-option input,
.devvn-qb-payment-option input,
.popup-customer-gender input {
  width: 18px;
  height: 18px;
  accent-color: #ff6d1a;
}

.devvn-qb-total-wrap {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: #333;
  font-size: 16px;
}

.popup_quickbuy_total_calc {
  color: #333;
  font-size: 18px;
  font-weight: 700;
}

body .devvn-order-btn {
  width: 100%;
  min-height: 45px;
  margin-top: 4px;
  padding: 9px 18px;
  border: 0 !important;
  border-radius: 3px !important;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: none !important;
}

.devvn-qb-shortcode-product {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 14px;
  align-items: center;
  max-width: 640px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
}

.devvn-qb-shortcode-product .product-thumbnail img {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: cover;
}

.devvn-qb-shortcode-product .product-title {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.devvn-qb-shortcode-product .product-price {
  color: #f00000;
  font-weight: 700;
}

.popup_loading,
.devvn-order-btn.loading {
  position: relative;
  opacity: 0.68;
  pointer-events: none;
}

.popup_loading::after,
.devvn-order-btn.loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: devvn-qb-spin 0.75s linear infinite;
}

@keyframes devvn-qb-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .devvn-popup-inner {
    width: min(95vw, 560px);
    border-radius: 3px;
  }

  .devvn-popup-heading {
    min-height: 50px;
    padding: 10px 16px;
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .devvn-popup-heading span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .devvn-popup-close {
    width: 29px;
    height: 29px;
    font-size: 26px;
    line-height: 29px;
  }

  .devvn-popup-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 14px 12px 22px;
  }

  .devvn-popup-content-left {
    grid-template-columns: 110px 1fr;
    column-gap: 14px;
  }

  .devvn-popup-img,
  .devvn-popup-img img {
    width: 110px;
    height: 132px;
  }

  .devvn-popup-title {
    margin-top: 16px;
    font-size: 27px;
    line-height: 1.16;
  }

  .devvn_price {
    font-size: 27px;
    line-height: 1.2;
  }

  .devvn_prod_variable {
    margin-top: 22px;
  }

  .devvn-qb-qty-row {
    gap: 14px;
    min-height: 45px;
  }

  .devvn-qb-quantity-label {
    min-width: 95px;
    font-size: 22px;
  }

  .devvn-qb-qty-row .quantity input.qty {
    width: 44px;
    min-height: 45px;
    font-size: 19px;
  }

  .devvn-qb-qty-row .quantity .minus,
  .devvn-qb-qty-row .quantity .plus {
    width: 34px;
    height: 45px;
    font-size: 21px;
    line-height: 43px;
  }

  .devvn-popup-content-desc {
    margin-top: 24px;
    font-size: 21px;
    line-height: 1.35;
  }

  .devvn-customer-heading {
    margin: 2px 0 16px;
    font-size: 25px;
    line-height: 1.2;
  }

  .popup-customer-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 7px;
  }

  .devvn_prod_variable select,
  .devvn_prod_variable input.qty,
  .popup-customer-info-group input[type="text"],
  .popup-customer-info-group input[type="tel"],
  .popup-customer-info-group input[type="email"],
  .popup-customer-info-group select,
  .popup-customer-info-group textarea {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 18px;
    border-radius: 3px;
  }

  .paymentmethob-wrap {
    margin-top: 4px;
  }

  .paymentmethob_title {
    margin-bottom: 8px !important;
    font-size: 21px !important;
    line-height: 1.2;
  }

  .devvn-qb-payment-option {
    gap: 10px;
    margin: 11px 0;
    font-size: 20px;
    line-height: 1.25;
  }

  .devvn-qb-payment-option input {
    width: 22px;
    height: 22px;
  }

  .devvn-qb-total-wrap {
    gap: 11px;
    margin-top: 2px;
    font-size: 20px;
  }

  .popup_quickbuy_total_calc {
    font-size: 21px;
  }

  body .devvn-order-btn {
    min-height: 50px;
    margin-top: 5px;
    font-size: 24px;
  }

  .devvn-qb-shortcode-product {
    grid-template-columns: 72px 1fr;
  }

  .devvn-qb-shortcode-product .content-action {
    grid-column: 1 / -1;
  }
}
