/* ============================================================
   NovaCELL Replica — Cart & Checkout Styles
   ============================================================ */

/* ---- Cart Page ---- */
.nc-cart-page {
    padding: 1.5rem 0 4rem;
}
.nc-cart-page__heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}
.nc-cart-page__empty {
    text-align: center;
    padding: 4rem 1rem;
}
.nc-cart-page__empty svg {
    color: var(--nc-muted-foreground);
    margin-bottom: 1.5rem;
}
.nc-cart-page__empty h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.nc-cart-page__empty p {
    color: var(--nc-muted-foreground);
    margin-bottom: 1.5rem;
}

/* Cart Layout */
.nc-cart-page__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .nc-cart-page__layout { grid-template-columns: 1fr 380px; gap: 3rem; }
}

/* Cart Row */
.nc-cart-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--nc-border);
}
.nc-cart-row__image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--nc-radius);
    overflow: hidden;
    background: var(--nc-muted);
}
.nc-cart-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nc-cart-row__info {
    flex: 1;
    min-width: 0;
}
.nc-cart-row__name {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.nc-cart-row__name a {
    color: var(--nc-foreground);
}
.nc-cart-row__name a:hover {
    color: var(--nc-gold);
}
.nc-cart-row__variation {
    font-size: 0.8125rem;
    color: var(--nc-muted-foreground);
}
.nc-cart-row__unit-price {
    font-size: 0.8125rem;
    color: var(--nc-muted-foreground);
}
.nc-cart-row__subtotal {
    font-weight: 600;
    white-space: nowrap;
}
.nc-cart-row__remove {
    font-size: 1.5rem;
    color: var(--nc-muted-foreground);
    padding: 0.25rem;
    line-height: 1;
}
.nc-cart-row__remove:hover {
    color: #dc2626;
}
.nc-cart-page__actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Cart Summary */
.nc-cart-summary {
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}
.nc-cart-summary__heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--nc-border);
}
.nc-cart-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
}
.nc-cart-summary__row--discount span:last-child {
    color: #16a34a;
}
.nc-cart-summary__minimum {
    font-size: 0.8125rem;
    color: #dc2626;
    background: rgba(220,38,38,0.06);
    padding: 0.75rem;
    border-radius: var(--nc-radius);
    margin: 0.75rem 0;
}
.nc-cart-summary__total {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 1rem 0 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--nc-border);
}
.nc-cart-summary__crypto-note {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--nc-muted-foreground);
    margin: 1rem 0;
}
.nc-cart-summary__crypto-note svg {
    color: var(--nc-gold);
}
.nc-cart-summary__checkout {
    width: 100%;
    text-align: center;
}
.nc-cart-summary__checkout.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}
.nc-cart-summary__trust {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--nc-muted-foreground);
}
.nc-cart-summary__trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.nc-cart-summary__trust svg {
    color: var(--nc-gold);
}

/* ============================================================
   Checkout Page — matches source layout
   ============================================================ */
.nc-checkout {
    padding: 1.5rem 0 4rem;
}
.nc-checkout__heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Checkout Layout: 2-col */
.nc-checkout__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .nc-checkout__layout { grid-template-columns: 1fr 400px; gap: 3rem; }
}

/* Sections */
.nc-checkout__section {
    margin-bottom: 2rem;
}
.nc-checkout__section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* Field Rows */
.nc-checkout__field-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.nc-checkout__field--full { flex: 1; }
.nc-checkout__field--half { flex: 1; }
.nc-checkout__field--street { flex: 3; }
.nc-checkout__field--no { flex: 1; }

@media (max-width: 639px) {
    .nc-checkout__field-row {
        flex-wrap: wrap;
    }
    .nc-checkout__field--half,
    .nc-checkout__field--street,
    .nc-checkout__field--no {
        flex: 1 1 100%;
    }
}

.nc-checkout__field .nc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    background: var(--nc-card);
    color: var(--nc-foreground);
    transition: border-color 0.15s;
}
.nc-checkout__field .nc-input:focus {
    border-color: var(--nc-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(179,146,60,0.1);
}
.nc-checkout__field select.nc-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.nc-checkout__phone-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}
.nc-checkout__phone-label .nc-muted {
    color: var(--nc-muted-foreground);
    font-weight: 400;
}
.nc-checkout__field-note {
    font-size: 0.75rem;
    color: var(--nc-muted-foreground);
    margin-top: 0.375rem;
}

/* Researcher / Company toggle */
.nc-checkout__toggle-row {
    display: flex;
    gap: 0;
    margin-bottom: 1.25rem;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    overflow: hidden;
}
.nc-checkout__toggle-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    background: var(--nc-card);
    color: var(--nc-foreground);
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.nc-checkout__toggle-btn + .nc-checkout__toggle-btn {
    border-left: 1px solid var(--nc-border);
}
.nc-checkout__toggle-btn.is-active {
    background: var(--nc-foreground);
    color: var(--nc-primary-foreground);
}

/* Standard Shipping card */
.nc-checkout__shipping-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
}
.nc-checkout__shipping-card svg {
    color: var(--nc-muted-foreground);
    flex-shrink: 0;
}
.nc-checkout__shipping-card strong {
    font-size: 0.9375rem;
}
.nc-checkout__shipping-free {
    color: #16a34a;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Discount Code toggle */
.nc-checkout__coupon-toggle summary {
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: var(--nc-foreground);
    list-style: none;
}
.nc-checkout__coupon-toggle summary::-webkit-details-marker { display: none; }
.nc-checkout__coupon-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.nc-checkout__coupon-form .nc-input {
    flex: 1;
}

/* Payment intro text */
.nc-checkout__pay-intro {
    text-align: center;
    margin-bottom: 1.25rem;
}
.nc-checkout__pay-intro p {
    font-size: 0.875rem;
    color: var(--nc-muted-foreground);
    margin-bottom: 0.375rem;
}
.nc-checkout__pay-icons {
    font-size: 0.75rem;
    color: var(--nc-muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.nc-checkout__pay-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    background: #fff;
    color: #374151;
}
.nc-checkout__pay-badge svg {
    flex-shrink: 0;
}

/* Payment Gateway Cards */
.nc-checkout__gateways {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.nc-checkout__gateway {
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
}
.nc-checkout__gateway.is-selected {
    border-color: var(--nc-gold);
    box-shadow: 0 0 0 1px var(--nc-gold);
    background: rgba(179,146,60,0.03);
}

.nc-checkout__gateway-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
}
.nc-checkout__gateway-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nc-muted);
    border-radius: var(--nc-radius);
    flex-shrink: 0;
    color: var(--nc-foreground);
}
.nc-checkout__gateway.is-selected .nc-checkout__gateway-icon-wrap {
    background: rgba(179,146,60,0.1);
    color: var(--nc-gold);
}
.nc-checkout__gateway-info {
    flex: 1;
    min-width: 0;
}
.nc-checkout__gateway-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.nc-checkout__gateway-name {
    font-size: 1rem;
    font-weight: 600;
}
.nc-checkout__gateway-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.1875rem 0.5rem;
    border-radius: 9999px;
}
.nc-checkout__gateway-badge--green {
    background: rgba(22,163,106,0.1);
    color: #16a34a;
}
.nc-checkout__gateway-badge--gold {
    background: rgba(179,146,60,0.12);
    color: var(--nc-gold);
}
.nc-checkout__gateway-radio {
    flex-shrink: 0;
}
.nc-checkout__gateway-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--nc-gold);
    cursor: pointer;
}

.nc-checkout__gateway-body {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.875rem;
    color: var(--nc-muted-foreground);
    line-height: 1.6;
}
.nc-checkout__gateway-body p {
    margin-bottom: 0.5rem;
}

/* EU guarantee strip */
.nc-checkout__eu-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--nc-foreground);
    margin-top: 0.5rem;
}
.nc-checkout__eu-guarantee svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- Order Summary Sidebar ---- */
.nc-checkout__order-review {
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}
.nc-checkout__order-review h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* Checkout items (simple text rows) */
.nc-checkout__items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--nc-border);
    margin-bottom: 1rem;
}
.nc-checkout__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.nc-checkout__item-name {
    font-size: 0.9375rem;
    flex: 1;
}
.nc-checkout__item-price {
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Totals */
.nc-checkout__totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
    padding: 0.375rem 0;
}
.nc-checkout__totals-row--discount span:last-child {
    color: #16a34a;
}
.nc-checkout__totals-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--nc-border);
}
.nc-checkout__totals-total span:first-child {
    font-size: 1rem;
    font-weight: 600;
}
.nc-checkout__totals-total-price {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Sidebar note */
.nc-checkout__sidebar-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--nc-muted-foreground);
    margin-top: 1rem;
    line-height: 1.5;
}
.nc-checkout__sidebar-note svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Place Order button */
.nc-checkout__place-order {
    width: 100%;
    text-align: center;
    margin-top: 1.25rem;
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
}

/* Legal note */
.nc-checkout__legal-note {
    font-size: 0.75rem;
    color: var(--nc-muted-foreground);
    line-height: 1.5;
    margin-top: 1rem;
}
.nc-checkout__legal-note a {
    color: var(--nc-foreground);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* WooCommerce field overrides for the checkout form */
.nc-checkout__fields .woocommerce-input-wrapper,
.nc-checkout__fields .form-row {
    margin-bottom: 0.75rem;
}
.nc-checkout__fields .form-row label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--nc-foreground);
    margin-bottom: 0.375rem;
}
.nc-checkout__fields .form-row label .required {
    color: #dc2626;
}
.nc-checkout__fields .form-row input.input-text,
.nc-checkout__fields .form-row select,
.nc-checkout__fields .form-row textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    background: var(--nc-card);
    color: var(--nc-foreground);
    transition: border-color 0.15s;
}
.nc-checkout__fields .form-row input.input-text:focus,
.nc-checkout__fields .form-row select:focus,
.nc-checkout__fields .form-row textarea:focus {
    border-color: var(--nc-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(179,146,60,0.1);
}

/* Hide WooCommerce default checkout stuff we don't want */
.nc-checkout .woocommerce-form-coupon-toggle,
.nc-checkout .woocommerce-form-login-toggle {
    display: none;
}
