/* Stripe 付款表單樣式 */
#stripe-payment-form {
    background: white;
    padding: 25px;
    border-radius: 0;
    margin: 20px 0;
    border: 2px solid black;
}

.payment-form-title {
    color: #b2955b;
    margin-bottom: 20px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-summary {
    background: white;
    padding: 20px;
    border-radius: 0;
    margin-bottom: 20px;
    border: 2px solid black;
}

.order-summary h4 {
    margin: 0 0 15px 0;
    color: black;
    font-size: 1.1em;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid black;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #b2955b;
    font-size: 1.1em;
}

.order-total .price {
    color: #b2955b;
    font-size: 1.2em;
}

.card-input-section {
    margin-bottom: 25px;
}

.card-input-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: black;
    font-size: 1em;
}

#card-element {
    padding: 15px;
    border: 2px solid black;
    border-radius: 0;
    background: white;
    transition: border-color 0.3s ease;
}

#card-element:focus-within {
    border-color: #b2955b;
}

#card-errors {
    color: #b2955b;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

.security-info {
    font-size: 13px;
    color: black;
    line-height: 1.5;
    background: white;
    padding: 15px;
    border-radius: 0;
    margin-bottom: 20px;
    border: 2px solid black;
}

.security-info div {
    margin-bottom: 5px;
}

.payment-buttons {
    display: flex;
    gap: 15px;
}

.stripe-pay-btn {
    flex: 1;
    background: black;
    color: white;
    border: 2px solid black;
    padding: 16px 30px;
    border-radius: 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
}

.stripe-pay-btn:hover:not(:disabled) {
    background: #b2955b;
    border-color: #b2955b;
}

.stripe-pay-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.cancel-payment-btn {
    background: white;
    color: black;
    border: 2px solid black;
    padding: 16px 25px;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
}

.cancel-payment-btn:hover {
    background: #b2955b;
    color: white;
}

.payment-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stripe Elements 樣式 */
.StripeElement {
    box-sizing: border-box;
    height: 40px;
    padding: 10px 12px;
    border: 2px solid black;
    border-radius: 0;
    background-color: white;
    transition: border-color 150ms ease;
}

.StripeElement--focus {
    border-color: #b2955b;
}

.StripeElement--invalid {
    border-color: #b2955b;
}

.StripeElement--webkit-autofill {
    background-color: #fefde5 !important;
}

/* 安全標章樣式 */
.security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 0;
    border: 2px solid black;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: black;
    font-weight: 500;
}

/* 改進原有付款區域樣式 */
.payment-section .price {
    font-size: 2em;
    color: #b2955b;
    font-weight: bold;
    margin: 15px 0;
}

.payment-section p {
    margin: 10px 0;
    line-height: 1.6;
    color: black;
}