/**
 * Graphotos - Cart, WooCommerce Checkout & Order Received Styles
 * Modern Stock Photo Marketplace Design
 */

/* ===== CART PAGE ===== */

.graphotos-cart-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.graphotos-cart-wrap * { box-sizing: border-box; }

/* Empty State */
.graphotos-cart-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.graphotos-cart-empty-state .empty-icon {
    margin-bottom: 24px;
}

.graphotos-cart-empty-state h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.graphotos-cart-empty-state p {
    font-size: 16px;
    color: #64748b;
    max-width: 400px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.graphotos-btn-browse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.graphotos-btn-browse:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    color: #fff;
}

/* Cart Header */
.graphotos-cart-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.graphotos-cart-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.graphotos-cart-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    background: #f3e8ff;
    border-radius: 20px;
}

/* Cart Layout */
.graphotos-cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 860px) {
    .graphotos-cart-layout {
        grid-template-columns: 1fr;
    }
    .graphotos-cart-summary-col {
        order: -1;
    }
}

/* Cart Item Cards */
.graphotos-cart-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.graphotos-cart-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ===== STREAMING THEME OVERRIDES ===== */

.graphotos-cart-wrap {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 28px clamp(20px, 4vw, 42px) 72px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 26%),
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.16), transparent 28%),
        linear-gradient(180deg, #08111f 0%, #0b1220 36%, #0f172a 100%);
    color: #dbe7f5;
}

.graphotos-cart-header h2,
.graphotos-cart-empty-state h2,
.graphotos-cart-card-title,
.graphotos-cart-summary-box h3,
.graphotos-cart-item-title,
.graphotos-cart-total-row strong,
.graphotos-cart-wrap label,
.graphotos-cart-wrap td,
.graphotos-cart-wrap th {
    color: #f8fbff;
}

.graphotos-cart-empty-state p,
.graphotos-cart-wrap .graphotos-cart-meta,
.graphotos-cart-wrap .graphotos-cart-subtitle,
.graphotos-cart-wrap .graphotos-cart-total-row,
.graphotos-cart-wrap .graphotos-cart-badge {
    color: #9fb0c6;
}

.graphotos-cart-card,
.graphotos-cart-summary-box,
.graphotos-cart-empty-state {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(9, 15, 28, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.34);
}

.graphotos-cart-card:hover {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 22px 40px rgba(2, 6, 23, 0.42);
}

.graphotos-cart-badge {
    background: rgba(59, 130, 246, 0.14);
}

.cart-card-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-card-info {
    flex: 1;
    min-width: 0;
}

.cart-card-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-card-title:hover {
    color: #7c3aed;
}

.cart-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 8px;
}

.cart-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
}

.cart-card-meta svg {
    opacity: 0.6;
}

.cart-card-license {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7c3aed;
    background: #f3e8ff;
    padding: 3px 10px;
    border-radius: 4px;
}

.cart-card-price-col {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.cart-card-remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.cart-card-remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Summary Box */
.graphotos-cart-summary-col {
    position: sticky;
    top: 32px;
}

.graphotos-cart-summary-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
}

.graphotos-cart-summary-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #64748b;
    padding: 6px 0;
}

.summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 0;
}

.summary-total {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.graphotos-btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.graphotos-btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    color: #fff;
}

.summary-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 12px;
    color: #94a3b8;
}

.summary-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #7c3aed;
    text-decoration: none;
}

.summary-continue:hover {
    text-decoration: underline;
    color: #6d28d9;
}

/* WooCommerce credit-pack cart rendered inside the Graphotos cart page */
.graphotos-wc-cart-wrap {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 42px clamp(18px, 5vw, 72px) 80px;
    background:
        radial-gradient(circle at 16% 0%, rgba(14, 165, 233, 0.16), transparent 28%),
        radial-gradient(circle at 84% 8%, rgba(124, 58, 237, 0.18), transparent 30%),
        linear-gradient(180deg, #08111f 0%, #0b1220 46%, #0f172a 100%);
    color: #dbe7f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.graphotos-wc-cart-wrap *,
.graphotos-wc-cart-wrap *::before,
.graphotos-wc-cart-wrap *::after {
    box-sizing: border-box;
}

.graphotos-wc-cart-wrap .woocommerce {
    max-width: 1180px;
    margin: 0 auto;
}

.graphotos-wc-cart-wrap .woocommerce-notices-wrapper {
    margin-bottom: 18px;
}

.graphotos-wc-cart-wrap .woocommerce-cart-form {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(2, 6, 23, 0.34);
    overflow: hidden;
}

.graphotos-wc-cart-wrap table.shop_table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    color: #e5edf8;
}

.graphotos-wc-cart-wrap table.shop_table th,
.graphotos-wc-cart-wrap table.shop_table td {
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    padding: 18px 16px;
    vertical-align: middle;
}

.graphotos-wc-cart-wrap table.shop_table th {
    background: rgba(2, 6, 23, 0.38);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.graphotos-wc-cart-wrap table.shop_table td {
    background: rgba(15, 23, 42, 0.68);
}

.graphotos-wc-cart-wrap table.shop_table tr:last-child td {
    border-bottom: 0;
}

.graphotos-wc-cart-wrap .product-thumbnail,
.graphotos-wc-cart-wrap .product-thumbnail img {
    display: none;
}

.graphotos-wc-cart-wrap .product-remove {
    width: 52px;
    text-align: center;
}

.graphotos-wc-cart-wrap .product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5 !important;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
}

.graphotos-wc-cart-wrap .product-remove a.remove:hover {
    background: #ef4444;
    color: #fff !important;
}

.graphotos-wc-cart-wrap .product-name a {
    color: #f8fbff;
    font-weight: 750;
    text-decoration: none;
}

.graphotos-wc-cart-wrap .product-name a:hover {
    color: #93c5fd;
}

.graphotos-wc-cart-wrap .product-price,
.graphotos-wc-cart-wrap .product-subtotal {
    color: #dbeafe;
    font-weight: 700;
}

.graphotos-wc-cart-wrap .quantity .qty {
    width: 70px;
    min-height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.42);
    color: #f8fbff;
    padding: 8px 10px;
    text-align: center;
}

.graphotos-wc-cart-wrap td.actions {
    background: rgba(2, 6, 23, 0.28) !important;
}

.graphotos-wc-cart-wrap .coupon {
    display: flex;
    gap: 10px;
    align-items: center;
}

.graphotos-wc-cart-wrap .coupon .input-text {
    min-height: 42px;
    min-width: 190px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.42);
    color: #f8fbff;
    padding: 9px 12px;
}

.graphotos-wc-cart-wrap button.button,
.graphotos-wc-cart-wrap a.button,
.graphotos-wc-cart-wrap .wc-proceed-to-checkout a.checkout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff !important;
    padding: 12px 18px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.graphotos-wc-cart-wrap button.button:hover,
.graphotos-wc-cart-wrap a.button:hover,
.graphotos-wc-cart-wrap .wc-proceed-to-checkout a.checkout-button:hover {
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
    transform: translateY(-1px);
}

.graphotos-wc-cart-wrap button.button:disabled,
.graphotos-wc-cart-wrap button.button:disabled[disabled] {
    opacity: 0.52;
    cursor: not-allowed;
    transform: none;
}

.graphotos-wc-cart-wrap .cart-collaterals {
    max-width: 420px;
    margin: 28px 0 0 auto;
}

.graphotos-wc-cart-wrap .cart_totals {
    float: none;
    width: 100%;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 22px 50px rgba(2, 6, 23, 0.28);
}

.graphotos-wc-cart-wrap .cart_totals h2 {
    margin: 0 0 16px;
    color: #f8fbff;
    font-size: 22px;
}

.graphotos-wc-cart-wrap .cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.graphotos-wc-cart-wrap .cart_totals th,
.graphotos-wc-cart-wrap .cart_totals td {
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    padding: 12px 0;
    color: #dbe7f5;
}

.graphotos-wc-cart-wrap .cart_totals .order-total th,
.graphotos-wc-cart-wrap .cart_totals .order-total td {
    color: #f8fbff;
    font-size: 18px;
}

.graphotos-wc-cart-wrap .wc-proceed-to-checkout {
    padding: 18px 0 0;
}

.graphotos-wc-cart-wrap .wc-proceed-to-checkout a.checkout-button {
    width: 100%;
    font-size: 16px;
}

@media (max-width: 760px) {
    .graphotos-wc-cart-wrap table.shop_table_responsive tr {
        display: block;
        padding: 14px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }

    .graphotos-wc-cart-wrap table.shop_table_responsive tr td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        border-bottom: 0;
        padding: 10px 0;
        text-align: right !important;
    }

    .graphotos-wc-cart-wrap table.shop_table_responsive tr td::before {
        color: #93c5fd;
        font-weight: 800;
        text-transform: uppercase;
    }

    .graphotos-wc-cart-wrap td.actions,
    .graphotos-wc-cart-wrap .coupon {
        display: grid !important;
        grid-template-columns: 1fr;
    }

    .graphotos-wc-cart-wrap .cart-collaterals {
        max-width: none;
    }
}


/* ===== WOOCOMMERCE CHECKOUT OVERRIDE ===== */

body.woocommerce-checkout .woocommerce {
    max-width: 1100px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body.woocommerce-checkout .woocommerce-checkout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    body.woocommerce-checkout .woocommerce-checkout {
        grid-template-columns: 1fr;
    }
}

/* Checkout headings */
body.woocommerce-checkout h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 24px;
}

body.woocommerce-checkout h3#order_review_heading {
    display: none;
}

/* Billing Form */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1;
}

body.woocommerce-checkout .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

body.woocommerce-checkout .form-row label .required {
    color: #ef4444;
}

body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .form-row .select2-container .select2-selection--single,
body.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    color: #1e293b;
}

body.woocommerce-checkout .form-row input.input-text:focus,
body.woocommerce-checkout .form-row select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

body.woocommerce-checkout .select2-container .select2-selection--single {
    height: 48px;
    display: flex;
    align-items: center;
}

body.woocommerce-checkout .select2-container .select2-selection__rendered {
    padding: 0;
    line-height: 48px;
    color: #1e293b;
}

body.woocommerce-checkout .select2-container .select2-selection__arrow {
    height: 48px;
}

/* Payment Methods */
body.woocommerce-checkout #payment {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

body.woocommerce-checkout #payment ul.payment_methods {
    border: none;
    padding: 20px;
    margin: 0;
    list-style: none;
}

body.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 8px;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
    background: #fff;
    list-style: none;
}

body.woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: #c4b5fd;
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method input[type="radio"] {
    accent-color: #7c3aed;
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

body.woocommerce-checkout #payment ul.payment_methods li label {
    display: inline;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
}

body.woocommerce-checkout #payment .payment_box {
    background: #f8fafc;
    border-radius: 6px;
    padding: 14px;
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

body.woocommerce-checkout #payment .payment_box::before {
    display: none;
}

/* Place Order Button */
body.woocommerce-checkout #payment .place-order {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

body.woocommerce-checkout #payment #place_order {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

body.woocommerce-checkout #payment #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* Order Review Table */
body.woocommerce-checkout .woocommerce-checkout-review-order {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 32px;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    padding: 0 0 14px;
    border-bottom: 2px solid #f1f5f9;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table td,
body.woocommerce-checkout .woocommerce-checkout-review-order-table th {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #475569;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
    font-weight: 600;
    color: #1e293b;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name .variation {
    display: block;
    font-size: 12px;
    color: #7c3aed;
    font-weight: 500;
    margin-top: 4px;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th {
    font-weight: 600;
    color: #1e293b;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: none;
    padding-top: 18px;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total td .amount {
    color: #7c3aed;
}

/* Terms */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    padding: 14px 20px;
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row {
    margin: 0;
}

body.woocommerce-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    accent-color: #7c3aed;
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* Coupon / Extra messages */
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message {
    border-left: 4px solid #7c3aed;
    background: #faf5ff;
    padding: 14px 20px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #4c1d95;
}

body.woocommerce-checkout .woocommerce-error {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
    padding: 14px 20px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #991b1b;
}

body.woocommerce-checkout .woocommerce-NoticeGroup {
    grid-column: 1 / -1;
}


/* ===== WOOCOMMERCE ORDER RECEIVED ===== */

body.woocommerce-order-received .woocommerce {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Success Icon & Header */
.graphotos-order-success {
    text-align: center;
    margin-bottom: 40px;
}

.graphotos-order-success .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.graphotos-order-success h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.graphotos-order-success p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* Order Info Cards */
.graphotos-order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.graphotos-order-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}

.graphotos-order-info-card .info-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.graphotos-order-info-card .info-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.graphotos-order-info-card .info-value.price {
    color: #7c3aed;
}

/* Order Details Table */
.graphotos-order-details-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.graphotos-order-details-box .box-header {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
}

.graphotos-order-details-box table {
    width: 100%;
    border-collapse: collapse;
}

.graphotos-order-details-box table th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    padding: 14px 24px;
    border-bottom: 2px solid #f1f5f9;
    text-align: left;
    background: #f8fafc;
}

.graphotos-order-details-box table th:last-child {
    text-align: right;
}

.graphotos-order-details-box table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #475569;
}

.graphotos-order-details-box table td:last-child {
    text-align: right;
    font-weight: 600;
}

.graphotos-order-details-box table .product-name {
    font-weight: 600;
    color: #1e293b;
}

.graphotos-order-details-box table .product-name .variation {
    display: block;
    font-size: 12px;
    color: #7c3aed;
    font-weight: 500;
    margin-top: 2px;
}

.graphotos-order-details-box table tfoot td,
.graphotos-order-details-box table tfoot th {
    padding: 12px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.graphotos-order-details-box table tfoot tr:last-child td,
.graphotos-order-details-box table tfoot tr:last-child th {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: none;
    padding: 18px 24px;
    background: #faf5ff;
}

.graphotos-order-details-box table tfoot tr:last-child td .amount {
    color: #7c3aed;
}

/* Billing Address */
.graphotos-order-address-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.graphotos-order-address-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.graphotos-order-address-box address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
}

/* Action Buttons */
.graphotos-order-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.graphotos-order-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.graphotos-order-actions .btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.graphotos-order-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    color: #fff;
}

.graphotos-order-actions .btn-secondary {
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.graphotos-order-actions .btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Hide default WC thankyou elements - we replace them */
body.woocommerce-order-received .woocommerce-thankyou-order-received,
body.woocommerce-order-received .woocommerce-thankyou-order-details,
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-order-received .wc-bacs-bank-details {
    display: none !important;
}
