* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #f2f3f5;
    color: #222;
    padding: 40px 16px;
}

.order-card {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Customer header */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 32px;
}

.customer-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.customer-info {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

.order-logo img {
    width: 90px;
    height: auto;
    display: block;
}

/* Products */
.product-list {
    border-top: 1px solid #e3e3e3;
}

.product-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 32px;
    border-bottom: 1px solid #e3e3e3;
    cursor: pointer;
}

.product-row.selected {
    background: #d6f0d6;
}

.product-image {
    flex: 0 0 180px;
    height: 100px;
    border-radius: 4px;
    background: #eef0f2;
    border: 1px solid #dcdfe3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #9aa0a6;
}

/* all artwork images of a product, 3 per row */
.product-images {
    flex: 0 0 180px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.product-images img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.product-details {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 17px;
    color: #9a9a9a;
    line-height: 1.4;
    margin-bottom: 14px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-qty {
    font-size: 15px;
    color: #9a9a9a;
}

.product-price-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-price {
    font-size: 20px;
    color: #9a9a9a;
}

.product-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #c4c4c4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-check svg {
    width: 14px;
    height: 14px;
}

.product-row.selected .product-name,
.product-row.selected .product-qty,
.product-row.selected .product-price {
    color: #2e9e2e;
    font-weight: 700;
}

.product-row.selected .product-check {
    background: #2e9e2e;
}

/* Summary */
.order-summary {
    padding: 24px 32px 32px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 8px;
}

.summary-line.total {
    font-weight: 700;
    font-size: 20px;
}

.summary-line.total span:last-child {
    font-size: 24px;
}

#order_total {
    font-style: normal;
}

.place-order {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 32px auto 12px;
    padding: 18px;
    background: #3cad3c;
    color: #fff;
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.place-order:hover {
    background: #349a34;
}

.place-order:disabled {
    background: #9bcf9b;
    cursor: not-allowed;
}

/* Auto Pay - Stripe card form */
.card-form {
    max-width: 420px;
    margin: 28px auto 0;
}

.card-form label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

#card-element {
    padding: 14px 12px;
    border: 1px solid #dcdfe3;
    border-radius: 6px;
    background: #fff;
}

#card-element.StripeElement--focus {
    border-color: #3cad3c;
}

#card-element.StripeElement--invalid {
    border-color: #d93025;
}

.order-message {
    max-width: 420px;
    margin: 12px auto 0;
    font-size: 14px;
    text-align: center;
}

.order-message.error {
    color: #d93025;
}

.order-message.success {
    margin-top: 28px;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #2e9e2e;
    background: #d6f0d6;
    border-radius: 8px;
}

.order-placed .product-row {
    cursor: default;
}

.payment-note {
    text-align: center;
    font-size: 14px;
    color: #9a9a9a;
}

/* 23-09-26 - Order confirmed / failed screen */
.order-result {
    border-top: 1px solid #e3e3e3;
    padding: 80px 32px;
    text-align: center;
}

.order-result-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-result-icon svg {
    width: 64px;
    height: 64px;
}

.order-result-title {
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
}

.order-result-text {
    max-width: 420px;
    margin: 14px auto 0;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

.order-result-text:empty {
    display: none;
}

.order-result-retry {
    display: none;
    margin: 28px auto 0;
    padding: 12px 36px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #c4c4c4;
    border-radius: 8px;
    cursor: pointer;
}

.order-result.success .order-result-icon {
    background: #3cad3c;
}

.order-result.success .order-result-title {
    color: #3cad3c;
}

.order-result.success .icon-failed,
.order-result.failed .icon-success {
    display: none;
}

.order-result.failed .order-result-icon {
    background: #d93025;
}

.order-result.failed .order-result-title {
    color: #d93025;
}

.order-result.failed .order-result-retry {
    display: block;
}

.order-result.no-retry .order-result-retry {
    display: none;
}

/* Mobile */
@media (max-width: 600px) {
    body {
        padding: 0;
        background: #fff;
    }

    .order-card {
        border-radius: 0;
        box-shadow: none;
    }

    .order-header {
        padding: 20px 16px;
    }

    .customer-name {
        font-size: 18px;
    }

    .customer-info {
        font-size: 13px;
    }

    .order-logo img {
        width: 64px;
    }

    .product-row {
        gap: 14px;
        padding: 14px 16px;
    }

    .product-image {
        flex-basis: 110px;
        height: 64px;
        font-size: 10px;
    }

    .product-images {
        flex-basis: 110px;
        gap: 3px;
    }

    .product-name {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .product-qty {
        font-size: 13px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-check {
        width: 22px;
        height: 22px;
    }

    .order-summary {
        padding: 18px 16px 24px;
    }

    .summary-line {
        font-size: 16px;
    }

    .summary-line.total span:last-child {
        font-size: 20px;
    }

    .place-order {
        font-size: 20px;
        padding: 16px;
        margin-top: 24px;
    }

    .payment-note {
        font-size: 12px;
    }

    .order-result {
        padding: 60px 16px;
    }

    .order-result-icon {
        width: 96px;
        height: 96px;
        margin-bottom: 28px;
    }

    .order-result-icon svg {
        width: 52px;
        height: 52px;
    }

    .order-result-title {
        font-size: 24px;
    }
}
