/* Base wrapper */
#wpfc-checkout.wpfc-checkout-wrap {
    margin: 32px auto;
    padding: 0 10px;
    color: #111827;
    box-sizing: border-box;
}

/* Titles */
.wpfc-checkout-title {
    font-weight: 600;
    margin: 0 0 12px;
    color: #111827;
}

/* -----------------------------
   Auth panel (login/register)
------------------------------ */

.wpfc-checkout-auth-panel {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15,23,42,0.08);
    padding: 18px 18px 16px;
    margin-bottom: 24px;
}

.wpfc-checkout-auth-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 14px;
    padding: 2px;
    background: #f3f4f6;
    border-radius: 999px;
}

.wpfc-auth-tab {
    border: none;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: #4b5563;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wpfc-auth-tab.is-active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(37,99,235,0.35);
}

.wpfc-checkout-auth-forms {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.wpfc-auth-form {
    flex: 1 1 260px;
}

.wpfc-auth-form.is-hidden {
    display: none;
}

/* Fields */
.wpfc-field {
    margin-bottom: 12px;
}

.wpfc-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    color: #374151;
}

.wpfc-field input {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 7px 10px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wpfc-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
    outline: none;
}

/* Auth actions */
.wpfc-auth-actions {
    margin-top: 8px;
}

.wpfc-auth-message {
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    display: none;
}

.wpfc-auth-message.is-error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.wpfc-auth-message.is-success {
    display: block;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* -----------------------------
   Buttons (shared style)
------------------------------ */

.wpfc-btn {
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.wpfc-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.wpfc-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(37,99,235,0.35);
    transform: translateY(-1px);
}

.wpfc-btn-primary:disabled,
.wpfc-btn-primary[disabled] {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: default;
    box-shadow: none;
    transform: none;
}

/* -----------------------------
   Checkout body + layout
------------------------------ */

.wpfc-checkout-body {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
    padding: 18px;
    overflow: hidden;
    box-sizing: border-box;
}

.wpfc-checkout-columns {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.wpfc-checkout-col {
    box-sizing: border-box;
}

.wpfc-checkout-col-main {
    flex: 1 1 0;
}

.wpfc-checkout-col-summary {
    flex: 0 0 320px;
    max-width: 340px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 14px 14px 16px;
}

/* Lock overlay */
.wpfc-checkout-body.is-locked {
    position: relative;
}

.wpfc-checkout-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(249,250,251,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: auto;
    z-index: 5;
    padding: 20px;
    box-sizing: border-box;
}

.wpfc-checkout-lock-overlay p {
    margin: 0;
    color: #4b5563;
}

/* When unlocked */
.wpfc-checkout-body:not(.is-locked) .wpfc-checkout-lock-overlay {
    display: none;
}

/* Placeholder sections for customer/shipping/payment */
#wpfc-checkout-customer,
#wpfc-checkout-shipping,
#wpfc-checkout-payment {
    margin-bottom: 18px;
    padding: 12px 12px 10px;
    border-radius: 8px;
    border: 1px dashed #e5e7eb;
    background: #f9fafb;
    min-height: 40px;
}




/* -----------------------------
   Order summary styling
------------------------------ */

#wpfc-order-summary {
    color: #111827;
}

/* Items wrapper */
.wpfc-checkout-summary-items {
    margin-bottom: 12px;
}

/* Individual item card */
.wpfc-checkout-summary-item {
    display: flex;
    gap: 10px;
    padding: 8px 8px 9px;
    margin-bottom: 8px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15,23,42,0.08);
}

/* Thumbnail */
.wpfc-checkout-summary-thumb img {
    width: 46px;
    height: 46px;
    border-radius: 4px;
    object-fit: cover;
}

/* Main block */
.wpfc-checkout-summary-main {
    flex: 1 1 auto;
}

/* Title */
.wpfc-checkout-summary-title {
    font-weight: 500;
    margin-bottom: 2px;
    color: #111827;
    font-size:15px;
}

/* Meta / options */
.wpfc-checkout-summary-meta {
    margin-bottom: 4px;
}

.wpfc-checkout-meta-row {
    display: block;
    color: #4b5563;
    font-size: 14px;
}

/* Qty/price row */
.wpfc-checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    color: #374151;
    font-size:15px;
}

.wpfc-checkout-summary-qty {
    color: #4b5563;
}

.wpfc-checkout-summary-unit {
    color: #6b7280;
    white-space: nowrap;
}

.wpfc-checkout-summary-line {
    font-weight: 600;
    white-space: nowrap;
}

/* Totals block */
.wpfc-checkout-summary-totals {
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
    margin-top: 6px;
}

.wpfc-checkout-summary-totals .wpfc-checkout-summary-row {
    padding: 2px 0;
}

/* Discount row */
.wpfc-checkout-summary-discount span:last-child {
    color: #b91c1c;
}

/* Grand total */
.wpfc-checkout-summary-total span:first-child {
    font-weight: 600;
}

.wpfc-checkout-summary-total span:last-child {
    font-weight: 700;
}

/* Place order button */
.wpfc-place-order {
    width: 100%;
    margin-top: 10px;
}

/* -----------------------------
   Basic text fallbacks
------------------------------ */

#wpfc-order-summary p {
    margin: 6px 0;
    color: #4b5563;
}



.wpfc-checkout-tax-value {
    text-align: right;
}





/* Artwork modal */
#wpfc-artwork-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

#wpfc-artwork-modal.is-open {
    display: flex;
}

#wpfc-artwork-modal .wpfc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

#wpfc-artwork-modal .wpfc-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#wpfc-artwork-modal .wpfc-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

#wpfc-artwork-container {
    margin-top: 10px;
    overflow: auto;
    flex: 1;
    text-align: center;
}

#wpfc-artwork-container img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin: 5px;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

/* Checkout summary artwork button */
.wpfc-checkout-meta-artwork .wpfc-artwork-btn {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
}

.wpfc-checkout-meta-artwork .wpfc-artwork-btn:hover {
    background: #eaeaea;
}











/* -----------------------------
   Responsive
------------------------------ */

@media (max-width: 900px) {
    .wpfc-checkout-columns {
        flex-direction: column-reverse;
    }

    .wpfc-checkout-col-summary {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    #wpfc-checkout.wpfc-checkout-wrap {
        margin-top: 20px;
        padding: 0;
    }

    .wpfc-checkout-auth-panel {
        padding: 14px 12px 12px;
    }

    .wpfc-checkout-body {
        padding: 14px 12px 14px;
    }
}




/* -----------------------------------------
   Payment Section Styling
------------------------------------------ */


.wpfc-checkout-col-main .wpfc-field--order-note,.wpfc-checkout-uploads,#wpfc-checkout-payment,#wpfc-checkout-shipping-methods {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 18px 22px;
    margin-top: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}


.wpfc-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.wpfc-payment-method-card {
    display: block;
    padding: 14px 14px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.wpfc-payment-method-card:hover {
    border-color: #2563eb;
    background: #f3f6ff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.12);
}

.wpfc-payment-method-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.wpfc-payment-method-title {
    font-weight: 600;
    color: #111827;
}

.wpfc-payment-method-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 4px;
}

.wpfc-payment-method-desc {
    color: #4b5563;
    line-height: 1.4;
    margin-left: 26px;
}

/* Continue to Payment button */
.wpfc-payment-actions {
    margin-top: 18px;
    text-align: right;
}

/* -----------------------------------------
   Shipping Methods Styling (matches payment)
------------------------------------------ */

.wpfc-shipping-methods {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.wpfc-shipping-method-card {
    display: block;
    padding: 14px 14px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.wpfc-shipping-method-card:hover {
    border-color: #2563eb;
    background: #f3f6ff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.12);
}

.wpfc-shipping-method-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.wpfc-shipping-method-title {
    flex: 1;
    font-weight: 600;
    color: #111827;
}

.wpfc-shipping-method-cost {
    font-weight: 600;
    color: #2563eb;
    white-space: nowrap;
}

.wpfc-shipping-method-desc {
    color: #4b5563;
    line-height: 1.4;
    margin-left: 26px;
}

.wpfc-shipping-error {
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid #fca5a5;
    background: #fef2f2;
    margin-top: 10px;
}

.wpfc-shipping-error p {
    margin: 0 0 8px;
    color: #991b1b;
}

.wpfc-shipping-error p:last-child {
    margin-bottom: 0;
}

.wpfc-shipping-error strong {
    color: #7f1d1d;
    font-weight: 600;
}

.wpfc-payment-actions .wpfc-place-order {
    width: auto;
    padding: 10px 20px;
    font-size: 16px;
}




/* Stripe Elements - make it look like a proper field */
.wpfc-stripe-wrap {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e6e8ef;
  border-radius: 12px;
  background: #fff;
}

.wpfc-stripe-card-label {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: #111827;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.wpfc-stripe-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
}

#wpfc-stripe-card-element {
  padding: 12px 12px;
  border: 1px solid #d7dbe7;
  border-radius: 12px;
  background: #fbfcff;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.wpfc-stripe-wrap.is-focused #wpfc-stripe-card-element {
  background: #fff;
  border-color: #1a3fff;
  box-shadow: 0 0 0 3px rgba(26,63,255,0.12);
}

.wpfc-stripe-wrap.is-invalid #wpfc-stripe-card-element {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}

.wpfc-stripe-errors {
  margin-top: 8px;
  font-size: 12px;
  color: #dc2626;
  font-weight: 600;
}




.wpfc-minimum-warnings {
    margin: 0 0 12px 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 77, 79, 0.35);
    background: rgba(255, 77, 79, 0.08);
    border-radius: 10px;
    font-size: 18px;
    line-height: 1.4;
    text-align:center;
    text-transform: capitalize;
}
.wpfc-minimum-warning-item + .wpfc-minimum-warning-item {
    margin-top: 6px;
}

.wpfc-edit-cart-link-wrap { margin-top:20px;}




/* ---------------------------------------------
   WPFC Checkout - Note + State/Country polish
---------------------------------------------- */

/* Field spacing */
.wpfc-checkout-col-main .wpfc-field {
  margin: 0 0 14px;
}

.wpfc-checkout-col-main .wpfc-field-row {
  display: flex;
  gap: 14px;
  margin: 0 0 14px;
}

.wpfc-checkout-col-main .wpfc-field-row.wpfc-field-row-half .wpfc-field {
  flex: 1 1 0;
  margin: 0;
}

/* Labels */
.wpfc-checkout-col-main .wpfc-field > label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  color: #111827;
}

/* Inputs + selects + textarea (unified style) */
.wpfc-checkout-col-main .wpfc-field input[type="text"],
.wpfc-checkout-col-main .wpfc-field input[type="email"],
.wpfc-checkout-col-main .wpfc-field input[type="tel"],
.wpfc-checkout-col-main .wpfc-field input[type="url"],
.wpfc-checkout-col-main .wpfc-field input[type="number"],
.wpfc-checkout-col-main .wpfc-field select,
.wpfc-checkout-col-main .wpfc-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  line-height: 1.35;
  padding: 10px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* Focus */
.wpfc-checkout-col-main .wpfc-field input:focus,
.wpfc-checkout-col-main .wpfc-field select:focus,
.wpfc-checkout-col-main .wpfc-field textarea:focus {
  outline: none;
  border-color: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10,132,255,.18);
}

/* ---------------------------------------------
   Selects: nicer dropdown + consistent height
---------------------------------------------- */

/* Same height as inputs */
.wpfc-checkout-col-main .wpfc-field select {
  height: 42px;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* chevron */
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Disabled state (useful when JS is swapping options) */
.wpfc-checkout-col-main .wpfc-field select:disabled,
.wpfc-checkout-col-main .wpfc-field input:disabled,
.wpfc-checkout-col-main .wpfc-field textarea:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

/* ---------------------------------------------
   Order note - make it look intentional
---------------------------------------------- */




.wpfc-checkout-col-main #wpfc_order_note {
  min-height: 120px;
  resize: vertical;
}

.wpfc-checkout-col-main #wpfc_order_note::placeholder {
  color: #6b7280;
}

/* ---------------------------------------------
   Responsive: stack halves on mobile
---------------------------------------------- */
@media (max-width: 782px) {
  .wpfc-checkout-col-main .wpfc-field-row {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==================== Payment Gateway Forms ==================== */

.wpfc-payment-form-container {
    margin: 20px 0;
}

.wpfc-payment-form-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}

.wpfc-payment-notice {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
}

.wpfc-form-row {
    margin-bottom: 15px;
}

.wpfc-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.wpfc-form-row input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wpfc-form-row-inline {
    display: flex;
    gap: 15px;
}

.wpfc-form-col {
    flex: 1;
}

.wpfc-exp-fields {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wpfc-exp-fields input {
    width: 50px;
    text-align: center;
}

.wpfc-exp-fields span {
    font-weight: bold;
    color: #666;
}

/* Square card container styling */
#square-card-container .sq-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

/* Amazon Pay button container */
#amazon-pay-button {
    max-width: 400px;
    margin: 10px 0;
}
