.ph-checkout {
  margin: 0;
  background: #f7f1df;
  color: #27231c;
  font: 14px/1.6 Inter, Arial, sans-serif
}

.ph-checkout * {
  box-sizing: border-box
}

.ph-checkout a {
  color: #8a6515
}

.ph-panel #place_order::after {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 8px
}

.ph-panel #ph-continue {
  font-family: Inter, Arial, sans-serif;
  font-size: 18px
}

.ph-panel #ph-continue i {
  margin-left: 6px
}

.ph-secure i {
  margin-right: 4px
}

.ph-coupon-heading i {
  font-size: 12px;
  margin-right: 5px
}

.ph-panel .woocommerce-info::before,
.ph-panel .woocommerce-error::before,
.ph-panel .woocommerce-message::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900
}

.ph-panel .woocommerce-info::before {
  content: "\f05a"
}

.ph-panel .woocommerce-error::before {
  content: "\f06a"
}

.ph-panel .woocommerce-message::before {
  content: "\f058"
}

.ph-header {
  padding: 24px 20px 16px;
  text-align: center
}

.ph-header img {
  display: block;
  width: 150px;
  height: auto;
  margin: auto
}

.ph-layout {
  max-width: 1160px;
  margin: 0 auto 60px;
  padding: 0 20px
}

.ph-panel {
  background: #fff;
  border-radius: 12px;
  padding: 30px 48px 40px;
  min-width: 0
}

.ph-panel h2 {
  font: 700 28px/1.3 Inter, Arial, sans-serif;
  text-align: center;
  margin: 24px 0 4px;
  color: #27231c
}

#ph-contact>h2+p {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0;
  color: #756d60;
  margin: 12px 0 30px;
  font-weight: 400
}

.ph-checkout-offer {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  margin: 22px 0;
}

.ph-checkout-price,
.ph-checkout-countdown {
  min-height: 76px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-checkout-price {
  gap: 10px;
  padding: 12px 18px;
  background: #fff7dc;
  border: 1px solid #f4c430;
}

.ph-checkout-price-label {
  max-width: 86px;
  color: #6a5b31;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.ph-checkout-price-old {
  color: #837b6d;
  font-size: 19px;
  font-weight: 700;
  text-decoration: line-through;
}

.ph-checkout-price strong {
  color: #16130d;
  font-size: 32px;
  line-height: 1;
}

.ph-checkout-countdown {
  flex-direction: column;
  min-width: 210px;
  padding: 10px 20px;
  color: #fff;
  background: #17130d;
}

.ph-checkout-countdown span {
  margin-bottom: 2px;
  color: #f5d879;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ph-checkout-countdown strong {
  font-family: "Space Mono", monospace;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: .05em;
}

.ph-checkout-countdown.is-ending strong {
  color: #ffcb21;
}

.ph-steps {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 11px;
  letter-spacing: .08em;
  color: #837b6b
}

.ph-steps [aria-current=step] {
  color: #8a6515;
  font-weight: bold
}

.ph-panel [hidden] {
  display: none !important
}

.ph-panel .form-row {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 0 25px !important
}

.ph-panel label {
  display: block;
  font-size: 13px;
  color: #514b40;
  margin-bottom: 7px
}

#ph-contact-fields label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap
}

.ph-panel input.input-text,
.ph-panel select,
.ph-panel textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px !important;
  background: #fcfaf6;
  color: #27231c;
  border: 1px solid #e4dac5;
  border-radius: 7px;
  font: 16px Inter, Arial, sans-serif;
  box-shadow: none
}

.ph-panel input::placeholder {
  color: #928a7b;
  opacity: 1
}

.ph-panel input:focus,
.ph-panel button:focus-visible {
  outline: 2px solid #8a6515;
  outline-offset: 3px
}

.ph-panel .button,
.ph-panel #place_order {
  background: linear-gradient(135deg, #f9cf4d, #fdc000) !important;
  color: #171006 !important;
  border: 0;
  border-radius: 3px;
  padding: 18px 20px !important;
  font: 700 16px Inter, Arial, sans-serif;
  width: 100%;
  cursor: pointer;
  min-height: 55px
}

.ph-panel button:disabled {
  opacity: .6;
  cursor: wait
}

.ph-panel .ph-small {
  font-size: 12px;
  color: #837b6b;
  line-height: 1.6
}

.ph-panel #ph-contact-error {
  color: #ad3129;
  font-size: 13px
}

.ph-panel #ph-back {
  background: none;
  border: 0;
  padding: 0;
  color: #8a6515;
  cursor: pointer;
  margin-top: 20px
}

.ph-payment-intro {
  margin: -2px 0 24px;
  text-align: center;
  color: #756d60
}

.ph-panel #order_review_heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 20px Inter, Arial, sans-serif;
  text-align: center;
  margin: 28px 0 20px
}

.ph-panel #order_review_heading:before,
.ph-panel #order_review_heading:after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e4dac5
}

.ph-panel table.shop_table {
  width: 100%;
  border: 1px solid #e4dac5;
  border-radius: 9px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fcfaf6;
  padding: 12px 18px;
  margin: 0 0 16px;
  font-size: 18px
}

.ph-panel table.shop_table th,
.ph-panel table.shop_table td {
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #eee9df;
  text-align: left
}

.ph-panel table.shop_table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #837b6b
}

.ph-panel table.shop_table th:last-child,
.ph-panel table.shop_table td:last-child {
  text-align: right
}

.ph-panel table.shop_table tr:last-child th,
.ph-panel table.shop_table tr:last-child td {
  border-bottom: 0
}

.ph-panel table.shop_table .order-total {
  color: #8a6515;
  font-size: 17px
}

.ph-panel #payment {
  background: transparent;
  border-radius: 7px
}

.ph-panel #payment ul.payment_methods {
  padding: 8px;
  border: 1px solid #e4dac5;
  border-radius: 7px;
  background: #fcfaf6
}

.ph-panel #payment ul.payment_methods>li {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 8px
}

.ph-panel #payment ul.payment_methods>li:last-child {
  margin-bottom: 0
}

.ph-panel #payment ul.payment_methods>li>label {
  display: inline;
  font-weight: 600
}

.ph-panel #payment div.payment_box {
  background: #fcfaf6;
  color: #514b40
}

.ph-panel #payment div.payment_box:before {
  border-bottom-color: #fcfaf6
}

.ph-panel #payment div.form-row {
  padding: 20px 0 0 !important
}

/* Stripe's Optimized Checkout already draws its own Payment Element chrome.
   Remove only the classic WooCommerce wrappers that otherwise create the
   doubled/tripled borders visible around Stripe's secure iframe. */
.ph-panel #payment:has(.wc-stripe-optimized-checkout) {
  border: 0;
  padding: 0;
  background: transparent
}

.ph-panel #payment ul.payment_methods:has(.wc-stripe-optimized-checkout) {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent
}

.ph-panel #payment ul.payment_methods > li.wc-stripe-optimized-checkout {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent
}

.ph-panel #payment li.wc-stripe-optimized-checkout .payment_box.payment_method_stripe {
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: #27231c
}

.ph-panel #payment li.wc-stripe-optimized-checkout .payment_box.payment_method_stripe::before {
  display: none
}

.ph-panel #payment li.wc-stripe-optimized-checkout #wc-stripe-upe-form {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0
}

.ph-panel #payment .wc-stripe-upe-element,
.ph-panel #payment .wc-stripe-upe-element iframe {
  width: 100%;
  max-width: 100% !important
}

.ph-panel #payment li.wc-stripe-optimized-checkout .woocommerce-SavedPaymentMethods,
.ph-panel #payment li.wc-stripe-optimized-checkout .wc-stripe-payment-method-instruction {
  padding-left: 0 !important;
  padding-right: 0 !important
}

/* Current Stripe releases do not consistently add the optimized-checkout
   class during every AJAX refresh. These ID/class fallbacks keep the native
   Stripe Payment Element clean without styling anything inside its iframe. */
.ph-panel #payment:has(#wc-stripe-upe-form) {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important
}

.ph-panel #payment:has(#wc-stripe-upe-form) ul.payment_methods {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important
}

.ph-panel #payment li.payment_method_stripe {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  list-style: none !important
}

.ph-panel #payment ul.payment_methods > li.payment_method_stripe:only-child > #payment_method_stripe,
.ph-panel #payment ul.payment_methods > li.payment_method_stripe:only-child > label[for="payment_method_stripe"] {
  display: none !important
}

.ph-panel #payment .payment_box.payment_method_stripe {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important
}

.ph-panel #payment .payment_box.payment_method_stripe::before,
.ph-panel #payment .payment_box.payment_method_stripe::after {
  display: none !important;
  content: none !important
}

.ph-panel #wc-stripe-upe-form,
.ph-panel #wc-stripe-upe-form.wc-payment-form {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important
}

.ph-panel .woocommerce-privacy-policy-text {
  font-size: 12px;
  color: #837b6b
}

.ph-panel .woocommerce-info,
.ph-panel .woocommerce-error,
.ph-panel .woocommerce-message {
  background: #fcfaf6;
  color: #514b40;
  padding: 16px 16px 16px 40px;
  font-size: 13px
}

.ph-panel .woocommerce-form-coupon-toggle {
  font-size: 12px
}

.ph-panel input[type=checkbox] {
  width: auto
}

.ph-secure {
  text-align: center;
  font-size: 12px;
  letter-spacing: .07em;
  color: #837b6b;
  margin: 28px 0 0
}

@media(max-width:640px) {
  .ph-header {
    padding: 18px 16px
  }

  .ph-header img {
    width: 130px
  }

  .ph-layout {
    padding: 0 12px;
    margin-bottom: 24px
  }

  .ph-panel {
    padding: 22px 18px 28px;
    border-radius: 9px
  }

  .ph-panel h2 {
    font-size: 27px
  }

  .ph-panel table.shop_table {
    padding: 8px 12px;
    font-size: 16px
  }

  .ph-steps {
    gap: 22px
  }
}

@media(max-width:640px) {
  .ph-checkout-offer {
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
  }
  .ph-checkout-price,
  .ph-checkout-countdown {
    width: 100%;
    min-height: 66px;
  }
  .ph-checkout-price-label { max-width: none; }
}

.ph-contact-product {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 26px;
}

.ph-contact-product img {
  width: 100%;
  max-width: 55%;
  height: auto;
  border-radius: 5px
}

.ph-contact-product h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 6px
}

.ph-product-price {
  font-size: 22px;
  font-weight: 700;
  color: #27231c
}

.ph-contact-product ul {
  padding-left: 18px;
  margin: 10px 0 0;
  font-size: 13px;
  color: #635b4e
}

.ph-contact-product li {
  margin: 3px 0
}

.ph-order-product {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  vertical-align: middle
}

.ph-order-product img {
  width: 80px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0
}

.ph-order-product small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #756d60;
  margin-top: 4px;
  line-height: 1.4
}

.ph-panel table.shop_table .order-total {
  color: #27231c
}

.ph-panel table.shop_table .order-total .amount {
  font-size: 26px;
  font-weight: 700
}

.ph-panel table.shop_table .order-total td {
  background: transparent;
  color: #27231c
}

.ph-panel .woocommerce-privacy-policy-text {
  font-size: 11px;
  line-height: 1.5;
  color: #837b6b
}

.ph-panel .woocommerce-privacy-policy-text a {
  color: inherit;
  text-decoration: underline
}

.ph-coupon {
  margin: 20px 0;
  font-size: 13px
}

.ph-coupon-heading {
  color: #756d60;
  margin: 0;
  padding: 8px 0
}

.ph-coupon label {
  margin-top: 10px
}

.ph-coupon-row {
  display: flex;
  gap: 10px;
  align-items: stretch
}

.ph-coupon-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid #e4dac5;
  border-radius: 6px;
  padding: 12px;
  font-size: 16px;
  background: #fcfaf6
}

.ph-coupon-row button {
  border: 1px solid #d6bf78;
  border-radius: 6px;
  background: #fff5cb;
  color: #27231c;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600
}

#ph-coupon-feedback:empty {
  display: none
}

#ph-coupon-feedback {
  margin-top: 10px
}

@media(max-width:640px) {
  #ph-contact {
    display: flex;
    flex-direction: column
  }

  #ph-contact>h2 {
    order: 0
  }

  #ph-contact>h2+p {
    order: 1;
    margin-bottom: 18px
  }

  #ph-contact>.ph-contact-product {
    order: 2;
    margin: 0 0 22px
  }

  #ph-contact-fields {
    order: 3
  }

  #ph-contact-error {
    order: 4
  }

  #ph-continue {
    order: 5;
    width: 100%
  }

  #ph-contact>.ph-small {
    order: 6
  }

  .ph-contact-product>div,
  .ph-order-product>span {
    min-width: 0;
    overflow-wrap: anywhere
  }

  .ph-panel #place_order {
    width: 100%;
    white-space: normal;
    font-size: 15px
  }

  .ph-coupon-row {
    flex-direction: column
  }

  .ph-coupon-row button {
    width: 100%;
    min-height: 44px
  }
}

@media(max-width:640px) {

  .ph-contact-product img {
    max-width: 100%;
  }

  .ph-order-product {
    gap: 8px
  }

  .ph-order-product img {
    width: 52px
  }

  .ph-panel h2 {
    font-size: 24px
  }

  .ph-order-product small {
    font-size: 11px
  }
  .ph-panel #ph-continue{
    padding: 10px !important;
  }
}

/* Reference payment step: compact white form with Stripe-blue accents. */
#ph-payment {
  max-width: 576px;
  margin-inline: auto;
  color: #303344;
}
#ph-payment #ph-back,
#ph-payment a { color: #007bff; }
#ph-payment input.input-text,
#ph-payment select,
#ph-payment .ph-coupon-row input {
  background: #fff;
  color: #303344;
  border-color: #e1e3e6;
  border-radius: 5px;
}
#ph-payment input:focus,
#ph-payment button:focus-visible { outline-color: #007bff; }
#ph-payment table.shop_table {
  background: #fff;
  border-color: #e1e3e6;
  font-size: 15px;
}
#ph-payment .ph-coupon-row button {
  background: #f1f7ff;
  border-color: #c7ddfa;
  color: #0069d9;
}
#ph-payment #payment fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
#ph-payment #payment .payment_box { font-size: 14px; }
#ph-payment #payment .place-order { margin-bottom: 0 !important; }
.ph-panel #ph-payment #place_order {
  background: #1989f5 !important;
  color: #fff !important;
  border: 1px solid #0874dc;
  border-radius: 3px;
  padding: 10px 16px !important;
  min-height: 61px;
  font: 700 18px/1.3 Inter, Arial, sans-serif;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.ph-panel #ph-payment #place_order:hover { background: #0878e5 !important; }
.ph-panel #ph-payment #place_order::after { content: none; }
.ph-order-button-title,
.ph-order-button-subtitle { display: block; }
.ph-order-button-title i { margin-right: 5px; }
.ph-order-button-subtitle { margin-top: 3px; font-size: 12px; font-weight: 400; }
@media (max-width: 640px) {
  #ph-payment .ph-coupon-row { flex-direction: row; }
  #ph-payment .ph-coupon-row button { width: auto; padding-inline: 16px; }
  .ph-panel #ph-payment #place_order { font-size: 17px; }
}

/* Wallets and card entry form one payment area below the final total. */
#ph-payment #wc-stripe-express-checkout-element {
  margin-top: 28px !important;
  margin-bottom: 0;
  flex-wrap: wrap;
  gap: 12px;
}
#ph-payment #wc-stripe-express-checkout-element > div {
  flex: 0 0 calc(50% - 6px);
  width: calc(50% - 6px);
  min-width: 0;
  max-width: calc(50% - 6px);
}
#ph-payment #wc-stripe-express-checkout-element::before {
  content: "Express checkout";
  display: block;
  flex: 0 0 100%;
  width: 100%;
  margin-bottom: 0;
  color: #303344;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
#ph-payment #wc-stripe-express-checkout-button-separator {
  margin: 24px 0 !important;
  color: #737987;
  font-size: 13px;
  line-height: 20px;
  background: linear-gradient(#e5e7eb, #e5e7eb) left center / calc(50% - 65px) 1px no-repeat,
              linear-gradient(#e5e7eb, #e5e7eb) right center / calc(50% - 65px) 1px no-repeat;
}

/* Native disclosure keeps coupon entry optional and keyboard accessible. */
#ph-payment .ph-coupon-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  background: #edf5ff;
  border: 1px solid #bad7fb;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 105, 217, .05);
  color: #0069d9;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
#ph-payment .ph-coupon-heading::-webkit-details-marker { display: none; }
#ph-payment .ph-coupon-heading::marker { content: ""; font-size: 0; }
#ph-payment .ph-coupon-heading i { margin: 0; }
#ph-payment .ph-coupon-heading .ph-coupon-icon { font-size: 20px; flex-shrink: 0; }
#ph-payment .ph-coupon-heading .ph-coupon-chevron {
  margin-left: auto;
  font-size: 12px;
}
#ph-payment .ph-coupon[open] .ph-coupon-chevron { transform: rotate(180deg); }
#ph-payment .ph-coupon-heading:hover { color: #0055b3; background: #e2efff; border-color: #80b5f6; }
#ph-payment .ph-coupon[open] .ph-coupon-heading { margin-bottom: 16px; }
#ph-payment .ph-coupon-heading:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 3px;
  border-radius: 3px;
}
