/* === WooCommerce Checkout Page === */

form.checkout.woocommerce-checkout {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  border-radius: 12px;
  position: relative;
}

tr.woocommerce-shipping-totals.shipping {
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 100%;
    flex: 1;
}

tr.woocommerce-shipping-totals.shipping th {
    padding-bottom: 0px;
}

tr.woocommerce-shipping-totals.shipping td {
    padding-top: 0px;
}

tr.woocommerce-shipping-totals.shipping ul {
    list-style: none;
    padding: 0px;
}

/* --- Customer Details Section --- */
#customer_details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: #eee;
  border-radius: var(--fold-border-radius2);
  padding: 2rem;
  flex: 1 0 54%;
}

/* Column split for billing/shipping */
#customer_details .col-1,
#customer_details .col-2 {
  flex: 1 1 400px;
}

/* Section headers */
#customer_details h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

/* --- Form Fields --- */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

p.form-row {
  flex: 1 1 calc(50% - 1rem);
  display: flex;
  flex-direction: column;
}

p.form-row.form-row-wide {
}

p.form-row label {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  display: none;
}

/* Inputs & selects */
input.input-text,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgb(225 225 225);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: 'Poppins';
}

.account-area-top {
    display: none;
}

.checkout-table .row-container {
    padding: 0px;
}

/* Hover / focus states */
input.input-text:focus,
select:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px var(--primary-color1);
}

/* Select2 Override */
.select2-container--default .select2-selection--single {
  background: rgb(229 229 229);
  border: none;
  border-radius: 8px;
  height: auto;
  color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%23757575' d='M1 1L7 7L13 1' stroke='%23757575' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-position: right 1.2rem center;
    background-repeat: no-repeat;
    background-size: 14px;
    padding-right: 3.2rem;
    padding: 0.75rem 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered::placeholder {
    color:black;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%;
  transform: translateY(-50%);
}

/* --- Additional Fields Section --- */
.woocommerce-additional-fields {
  margin-top: 2rem;
}

.woocommerce-additional-fields h3 {
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

textarea#order_comments {
  resize: vertical;
  min-height: 100px;
}

/* --- Order Review --- */
#order_review {
  background: #eee;
  padding: 2rem;
  border-radius: var(--fold-border-radius2);
  position: sticky;
  top: 80px;
  left: 0px;
  flex: 0 0 calc(30% - 20px);
}

.shop_table {
  width: 100%;
  border-collapse: collapse;
  display: flex;
  flex-direction: column;
}

.shop_table th,
.shop_table td {
  padding: 0.75rem 0rem 0.75rem 0rem;
  text-align: left;
}

.shop_table thead th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.shop_table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shop_table tfoot th,
.shop_table tfoot td {
  padding-top: 1rem;
  font-weight: 600;
}

/* Totals */
.order-total strong {
  color: var(--primary-color1);
  font-size: 1.1rem;
}

/* --- Payment Section --- */
#payment {
  border-radius: 12px;
  margin: 0px 0px 0px;
  color: black;
}

.wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.woocommerce-notice--info {
  background: rgba(255, 255, 255, 0.1);
  padding: 0rem;
  border-radius: 8px;
  text-align: center;
  margin: 0px 0px 30px;
}

/* Payment icons */
.pre-install-payment-gateway__subtitle img {
  height: 28px;
  margin-right: 8px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.pre-install-payment-gateway__subtitle img:hover {
  opacity: 1;
}

/* --- Place Order Button --- */
button#place_order {
  display: inline-block;
  width: 100%;
  margin-top: 1.5rem;
  background: var(--primary-color1);
  color: #fff;
  border: none;
  border-radius: 0px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--fold-border-radius2);
}

button#place_order:hover {
  background: var(--primary-color3);
}

.shop_table tr th:last-child, .shop_table tr td:last-child {
    text-align: right;
}

form.checkout.woocommerce-checkout {
    padding: 50px 0px;
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 0px;
}

.pre-install-payment-gateway__subtitle {
    display: flex;
}

.shop_table tbody td.product-name {
    padding-right: 20px;
}

div#page {
    overflow: visible;
}

.shop_table thead th {
    padding-top: 0px;
}

p#billing_address_2_field {
    justify-content: flex-end;
}

.select2-container li {
    background: #1c1326;
    color: #fff;
}
 
.select2-results {background: rgb(255 255 255 / 7%);}
 
.select2-search--dropdown {
    background: #1c1326;
}
 
span.select2-search.select2-search--dropdown input {
    background: rgba(255, 255, 255, 0.1);
    border: 0px !important;
    padding: 10px;
}
 
span.select2-dropdown {
    border: 0px;
}
 
.select2-container li.select2-results__option--highlighted {
    background: var(--primary-color1) !important;
}

.p-Input .p-Input-input:not(.p-Input--matchFloatingLabelHeight):not(.p-PhoneInput) {
    color: white;
}

p#wc-stripe-express-checkout-button-separator {
    width: 100%;
    text-align: left !important;
    margin-bottom: 1.5em;
}

div#wc-stripe-express-checkout-element {
    flex: 1 0 100%;
    margin: 0px !important;
}

.ppcp-messages {
    background: white;
    padding: 10px 10px 4px 10px;
    margin: 0px 0px 20px;
    border-radius: 10px;
}

.payment_box.payment_method_ppcp-gateway {
    display: none !important;
}

ul.wc_payment_methods.payment_methods.methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0px 0px 0px;
    padding: 20px 0px 0px;
    border-radius: 10px;
}

li.wc_payment_method.payment_method_stripe label {
    display: flex;
    justify-content: space-between;
    flex: 1;
    margin: 0px;
}

li.wc_payment_method.payment_method_stripe {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    row-gap: 20px;
}

.payment_box.payment_method_clearpay {
    margin: 20px 0px 0px;
}

.payment_box.payment_method_stripe {
    border-radius: 10px;
    flex: 0 0 100%;
}

.payment_box.payment_method_stripe a:not(.readmore) {
    color: var(--primary-color1);
    font-weight: 600;
}

p.form-row.woocommerce-SavedPaymentMethods-saveNew {
    flex-direction: row;
    align-items: flex-start;
    margin: 0px;
}

p.form-row.woocommerce-SavedPaymentMethods-saveNew input {
    margin: 6px 6px 0px 0px;
    display: block;
}

div#clearpay-widget-container {
    background: white;
}

fieldset#wc-stripe-upe-form {
    border: none;
    padding: 0px;
    margin: 0px;
}

.wc_payment_method fieldset {
    border: none;
    padding: 0px;
    margin: 10px 0px 10px;
}


/*== == == Order Received === == ==*/

.woocommerce-order-received .woocommerce-order {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 50px 0px;
}

.woocommerce-order-received .woocommerce-order .woocommerce-notice {
    background-color: var(--primary-color1);
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.woocommerce-order-received .woocommerce-order .woocommerce-order-overview {
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-bottom: 10px;
}

.woocommerce-order-received .woocommerce-order .woocommerce-order-overview li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce-order-received .woocommerce-order .woocommerce-order-overview li:last-child {
    border-bottom: none;
}

.woocommerce-order-received .woocommerce-order .woocommerce-order-overview strong {
    color: var(--primary-color1);
}

.woocommerce-order-received .woocommerce-order .woocommerce-order-details {
    /* background: #fff; */
    padding-top: 5px;
}

.woocommerce-order-received .woocommerce-order .woocommerce-order-details__title {
    font-size: 1.5rem;
    color: var(--primary-color1);
    margin-bottom: 10px;
}

.woocommerce-order-received #primary .woocommerce-order .woocommerce-table {
    width: 100%;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

.woocommerce-order-received .woocommerce-order .woocommerce-table th {
    padding: 0px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.woocommerce-order-received .woocommerce-order .woocommerce-table td {
    padding: 10px;
    border: none;
    align-items: center;
    width: auto;
    padding: 0px 0px;
    text-align: right;
}

tr.woocommerce-table__line-item.order_item {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.woocommerce-order-received .woocommerce-order .woocommerce-customer-details {
    margin-top: 20px;
    border-radius: 8px;
}

.woocommerce-order-received .woocommerce-order .woocommerce-column {
    margin-bottom: 20px;
}

.woocommerce-order-received .woocommerce-order .woocommerce-column__title {
    font-size: 1.25rem;
    color: var(--primary-color1);
    margin-bottom: 10px;
}

.woocommerce-order-received .woocommerce-order address {
    font-style: normal;
    line-height: 1.6;
    color: var(--text-color);
}

.woocommerce-order-received .woocommerce-order :is(.woocommerce-customer-details--phone,
.woocommerce-customer-details--email) {
    margin: 5px 0;
    font-weight: bold;
}

.woocommerce-order-received .woocommerce table.shop_table td.product-name a {
    color: var(--primary-color1);
    font-weight: 600;
}

.woocommerce-order-received .woocommerce-order section.woocommerce-order-details tfoot {width: 100%;}

.woocommerce-order-received .woocommerce-order section.woocommerce-order-details tfoot tr {
    justify-content: space-between;
    border-color: var(--primary-color1);
    width: 100%;
    flex: 1 0 100%;
    display: flex;
}

.woocommerce-order-received #primary .woocommerce-order .woocommerce-table thead {
    display: flex;
    width: 100%;
}

.woocommerce-order-received #primary .woocommerce-order .woocommerce-table thead tr {
    display: flex;
    justify-content: space-between;
    flex: 1;
    width: 100%;
}

.woocommerce-order-received .woocommerce .woocommerce-order .woocommerce-table th.product-total {
    flex: 0 0;
}

.woocommerce-order-received section.woocommerce-order-details tfoot td {
}

@media (max-width:1024px) {

.woocommerce-order-received section.woocommerce-order-details {
    flex-direction: column;
}
  
}

  /*== == == Order Received END == === ==*/


.woocommerce-order-received .f2-break::after {
    background: none;
}

.woocommerce-table.order_details tbody {
    display: flex;
    flex-direction: column;
    margin: 0px 0px 20px;
    width: 100%;
}

.woocommerce-order-received tr.woocommerce-table__line-item.order_item td:last-child {
    text-align: right;
}

.woocommerce-order-received .woocommerce-order .row-container {
    max-width: 1024px;
}

.woocommerce-order-received .woocommerce-order .woocommerce-table td.woocommerce-table__product-name {
    text-align: left;
}

.shop_table tfoot {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.shop_table tr.cart_item {
    display: flex;
    justify-content: space-between;
}

.shop_table thead tr {
    display: flex;
    justify-content: space-between;
}

.shop_table .cart-subtotal {
    display: flex;
    justify-content: space-between;
}

.shop_table tr.order-total {
    display: flex;
    justify-content: space-between;
}

.shop_table a {
    display: block;
    color: var(--primary-color1);
    font-weight: 600;
}