/* Expedited Note Styling */
.expedited-note {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-left: 4px solid #f59e0b;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}

/* Square Payment Container */
.square-payment-container {
    margin-top: 20px;
    padding: 24px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: opacity 0.25s ease-in-out;
}

.square-payment-container.hidden {
    display: none;
}

.square-payment-header {
    text-align: center;
    margin-bottom: 20px;
}

.square-payment-title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
}

.square-payment-description {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.square-payment-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 20px;
}

.square-payment-amount-label {
    font-weight: 600;
    color: #374151;
}

.square-payment-amount-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
}

.square-payment-field {
    margin-bottom: 18px;
}

.square-payment-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

.square-payment-field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.square-payment-field input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.square-card-container {
    min-height: 50px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.square-card-container:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.square-payment-feedback {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.square-payment-feedback[hidden] {
    display: none;
}

.square-payment-feedback.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.square-payment-feedback.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.square-payment-feedback.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.square-payment-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.square-payment-actions .btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.square-payment-actions .btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
}

.square-payment-actions .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

.square-payment-actions .btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.square-payment-actions .btn-secondary {
    background: #ffffff;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.square-payment-actions .btn-secondary:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

.square-payment-secure {
    margin-top: 16px;
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
}

/* Phone input row */
.payment-phone-row {
    display: flex;
    gap: 10px;
}

.payment-phone-row select,
.payment-phone-row input {
    padding: 12px 14px;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.payment-phone-row select {
    flex: 0 0 120px;
    min-width: 96px;
    max-width: 160px;
    cursor: pointer;
}

.payment-phone-row input {
    flex: 1 1 auto;
    min-width: 0;
}

.payment-phone-row select:focus,
.payment-phone-row input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.payment-custom-code {
    margin-top: 10px;
}

.payment-custom-code.hidden {
    display: none;
}

.payment-custom-code label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
}

.payment-custom-code input {
    width: 120px;
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
}

.payment-custom-code input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.payment-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.payment-sms-disclaimer {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* SMS opt-in checkbox */
.payment-checkbox,
.square-payment-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
}

.payment-checkbox input[type="checkbox"],
.square-payment-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8b5cf6;
    cursor: pointer;
}

/* Payment Section Button Styling */
.payment-section .btn {
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    line-height: 1.2 !important;
}

.payment-section .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: #ffffff !important;
}

.payment-section .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4) !important;
}