.tso-order-form-wrap {
/*  max-width: 700px; */
    margin: 0 auto;
    font-size: 16px;
}

.tso-section {
    margin-bottom: 2em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #ddd;
}

.tso-field-row {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.tso-field-row .tso-field {
    flex: 1;
    min-width: 150px;
}

.tso-field {
    margin-bottom: 1em;
}

.tso-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25em;
}

.tso-field input[type="text"],
.tso-field input[type="email"] {
    width: 100%;
    padding: 0.5em;
    box-sizing: border-box;
}

.tso-field input.error,
.tso-field-row input.error {
    border-color: #d63638;
}

.tso-field-error {
    display: none;
    color: #d63638;
    font-size: 0.85em;
}

.tso-field-error.visible {
    display: block;
}

.tso-design {
    margin-bottom: 1.5em;
}

.tso-size-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 320px;
    margin-bottom: 0.5em;
}

.tso-qty-input {
    width: 70px;
}

.tso-running-total {
    font-size: 1.2em;
}

.tso-radio {
    display: block;
    margin-bottom: 0.5em;
}

.tso-recaptcha-wrapper {
    margin: 1em 0;
}

.tso-submit-btn {
    font-size: 1.1em;
    padding: 0.75em 2em;
    cursor: pointer;
}

.tso-form-error.tso-error-message {
    background: #fbeaea;
    border: 1px solid #d63638;
    color: #d63638;
    padding: 1em;
    margin-bottom: 1em;
}

.tso-confirmation .tso-order-id {
    font-size: 1.3em;
}

.tso-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.tso-items-table td {
    padding: 0.4em 0.6em;
    border-bottom: 1px solid #eee;
}

.tso-payment-instructions {
    background: #f6f7f7;
    padding: 1em;
    margin: 1em 0;
}

.tso-banner {
    padding: 0.6em 1em;
    margin: 0 0 1em;
    border: 1px solid;
    font-weight: 600;
}

.tso-banner-test {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.tso-banner-sandbox {
    background: #e7f3ff;
    border-color: #0056b3;
    color: #004085;
}

.tso-banner-cancelled {
    background: #fff3cd;
    border-color: #ffc107;
    border-width: 2px;
    border-radius: 8px;
    padding: 1em 1.25em;
    color: #856404;
    font-weight: normal;
}

.tso-banner-cancelled h3 {
    margin: 0 0 0.5em;
    color: #856404;
}

.tso-banner-cancelled p {
    margin: 0;
}

.tso-fee-label {
    color: #666;
    font-size: 0.9em;
}

.tso-fee-row,
.tso-charge-row {
    margin: 0.25em 0;
}

.tso-fee-breakdown {
    margin: 0.5em 0;
}

/* Breathing room when scrolled into view after a submit (see tso-order-form.js) */
.tso-order-form-wrap {
    scroll-margin-top: 24px;
}
