/* 基于Shopify-plugins2.0的布局样式 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to right, #ffffff 50%, #f5f5f5 50%);
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧表单区域 */
.left-section {
    flex: 1;
    width: 50%;
    background-color: #ffffff;
    padding: 40px;
    overflow-y: auto;
}

/* 右侧商品详情区域 */
.right-section {
    flex: 1;
    width: 50%;
    background-color: #f5f5f5;
    padding: 40px 30px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
}

/* Express checkout */
.express-checkout-title {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
    font-weight: 500;
}

.express-checkout {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.payment-btn {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    flex: 1;
    min-width: 100px;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.payment-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Shop Pay 按钮 */
.payment-btn.shop-pay {
    background: #5a31f4;
    color: white;
    border-color: #5a31f4;
}

.shop-pay-icon {
    height: 20px;
    width: auto;
    max-width: 100px;
    fill: white;
}

.pay-text {
    font-weight: 600;
    font-size: 14px;
}

/* PayPal 按钮 */
.payment-btn.paypal {
    background: #ffc439;
    color: #003087;
    border-color: #ffc439;
}

.paypal-icon {
    height: 18px;
    width: auto;
    max-width: 80px;
}

/* Google Pay 按钮 */
.payment-btn.gpay {
    background: #000;
    color: white;
    border-color: #000;
    gap: 6px;
}

.google-icon {
    width: 18px;
    height: 18px;
}

.payment-btn.gpay .pay-text {
    font-weight: 500;
    font-size: 14px;
}

/* 错误信息样式 */
.error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.4;
    display: none;
    font-weight: 400;
}

.form-group .error-message {
    margin-top: 6px;
}

/* 信用卡字段特殊处理 - 错误信息在input-wrapper内部 */
.input-wrapper .error-message {
    margin-top: 4px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* 信用卡表单行内错误信息 */
.form-row .form-group .error-message {
    margin-top: 4px;
    font-size: 11px;
}

/* 输入框错误状态 */
.form-group.error input,
.form-group.error select {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px #dc2626;
}

.form-group.error .input-wrapper {
    border-color: #dc2626;
}

/* 信用卡输入框错误状态 - 高优先级 */
.credit-card-form input.field-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: none !important;
}

.input-wrapper input.field-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: none !important;
}

/* 显示错误信息 */
.form-group.error .error-message {
    display: block;
}

/* Billing Address Styles */
.billing-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.4;
}

.billing-container {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    margin-bottom: 24px;
}

.billing-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    background: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.billing-option:hover {
    background-color: #f9fafb;
}

.billing-option:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.billing-option input[type="radio"] {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.billing-option label {
    font-size: 14px;
    color: #111827;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
    pointer-events: none;
}

/* Billing Address Form - 智能动画控制 */
.billing-address-form {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 当设置display: block时，自动触发展开动画 */
.billing-address-form[style*="display: block"] {
    display: block !important;
    max-height: 500px;
    opacity: 1;
    padding: 20px;
}

/* 当设置display: none时，立即隐藏 */
.billing-address-form[style*="display: none"] {
    display: none !important;
}

/* JavaScript控制的动画类 */
.billing-address-form.expanding {
    display: block;
    max-height: 500px;
    opacity: 1;
    padding: 20px;
}

.billing-address-form.collapsing {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
}

/* 分隔线 */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #666;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider span {
    padding: 0 20px;
    font-size: 14px;
}

/* 表单样式 */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 20px 0;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 15px 0;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

/* 配送通知 */
.shipping-notice {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 15px 0;
}

.shipping-notice p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 支付容器和方式 */
.payment-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.payment-container {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    overflow: hidden;
    margin-bottom: 30px;
}

.payment-method-option {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.payment-method-option:last-child {
    border-bottom: none;
}

.payment-method-option.selected {
    background-color: #ffffff;
}

.payment-method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.payment-method-header:hover {
    background-color: #f9fafb;
}

.payment-method-header input[type="radio"] {
    margin-right: 12px;
    width: 16px;
    height: 16px;
}

.payment-method-header label {
    font-weight: 500;
    flex: 1;
    cursor: pointer;
    font-size: 14px;
}

/* 信用卡图标 */
.card-icons {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-left: 8px;
}

.card-icon-img {
    width: 35px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    transform: scale(1.5);
    transform-origin: center;
}

/* PayPal 图标 */
.paypal-logo {
    height: 20px;
}

.paypal-svg {
    height: 100%;
    width: auto;
}

/* 信用卡表单样式 */
.credit-card-form {
    background: #f4f4f4;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.credit-card-form.expanded {
    max-height: 350px;
    opacity: 1;
    padding: 17px;
    border-top: 1px solid #e5e7eb;
}

.credit-card-form.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
    border-top: none;
}

/* 浮动标签容器 */
.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.credit-card-form .floating-label {
    position: relative;
    margin-bottom: 28px;
}

.credit-card-form .form-group {
    margin-bottom: 20px;
}

.credit-card-form .form-row .form-group {
    margin-bottom: 0;
}

/* 输入框样式 */
.card-input,
.input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.credit-card-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

/* 卡号输入框需要更多右边距为图标留空间 */
#card-number {
    padding-right: 60px !important;
}

/* 输入框聚焦状态 */
.card-input:focus,
.input-wrapper input:focus,
.credit-card-form input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* 浮动标签文字 */
.credit-card-form .floating-label-text {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 2;
}

/* 浮动状态 - 修复选择器 */
.credit-card-form .input-wrapper.floating-label.active .floating-label-text {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: #6b7280;
}

/* 当标签浮动时，用伪元素遮挡边框创建间隙 */
.credit-card-form .input-wrapper.floating-label.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 12px;
    height: 2px;
    background: white;
    z-index: 1;
}

/* 不同输入框的切断线宽度 */
.credit-card-form .input-wrapper.floating-label.active:has(input[id="card-number"])::before {
    width: 78px;
}

.credit-card-form .input-wrapper.floating-label.active:has(input[id="expiration-date"])::before {
    width: 45px;
}

.credit-card-form .input-wrapper.floating-label.active:has(input[id="security-code"])::before {
    width: 30px;
}

.credit-card-form .input-wrapper.floating-label.active:has(input[id="name-on-card"])::before {
    width: 82px;
}

/* 输入框内的安全图标（锁图标） */
.input-wrapper .security-icon {
    position: absolute;
    right: 16px;
    top: 20px; /* 固定位置，相对于输入框顶部 */
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 3;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    /* 初始隐藏，防止加载时显示异常 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 页面加载完成后显示锁图标 */
body.loaded .input-wrapper .security-icon,
.input-wrapper .security-icon.show {
    opacity: 1;
    visibility: visible;
}

/* 强制限制所有SVG在安全图标容器内的尺寸 */
.security-icon svg,
.card-type-icon svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}

/* 帮助图标样式 */
.help-icon {
    position: absolute;
    right: 12px;
    top: 20px; /* 固定位置，相对于输入框顶部 */
    transform: translateY(-50%);
    z-index: 3;
}

.help-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #6b7280;
    transition: color 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.help-button:hover {
    color: #374151;
}

.help-button:focus {
    outline: none;
    box-shadow: none;
}

.help-button:active {
    background: none;
}

.help-svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* CVV 提示框样式 */
.tooltip {
    position: absolute;
    bottom: 100%;
    right: -10px;
    background: #1f2937;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 25px;
    border: 8px solid transparent;
    border-top-color: #1f2937;
}

/* 悬浮时显示提示框 */
.help-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 卡类型图标样式 */
.card-type-icon {
    position: absolute;
    right: 12px;
    top: 20px; /* 固定位置，相对于输入框顶部 */
    transform: translateY(-50%);
    z-index: 3;
    width: 35px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-type-icon svg {
    width: 35px !important;
    height: 24px !important;
    max-width: 35px !important;
    max-height: 24px !important;
}

.card-type-icon .card-icon-img2 {
    width: 35px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    transform: scale(1.5);
    transform-origin: center;
    border-radius: 3px;
}

/* 锁图标SVG样式 */
.lock-icon {
    width: 16px !important;
    height: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-icon svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #9ca3af;
    fill: none;
    stroke-width: 1.5;
}

.input-wrapper.focused input {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-wrapper.focused .floating-label-text {
    color: #2563eb;
}

.credit-card-form .input-wrapper.focused input {
    border-color: #007cba;
    box-shadow: none;
}

.credit-card-form .input-wrapper.focused .floating-label-text {
    color: #007cba;
}

/* PayPal 表单样式 */
.paypal-form {
    background: #f4f4f4;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.paypal-form.expanded {
    max-height: 200px;
    opacity: 1;
    padding: 17px;
    border-top: 1px solid #e5e7eb;
}

.paypal-form.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
    border-top: none;
}



/* COD (Cash on Delivery) 表单样式 */
.cod-form {
    background: #f8f9fa;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cod-form.expanded {
    max-height: 250px;
    opacity: 1;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

.cod-form.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
    border-top: none;
}

.cod-info-container {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.cod-description {
    margin-bottom: 16px;
}

.cod-description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

.cod-percentage {
    font-weight: 600;
    color: #059669;
}

.cod-breakdown {
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
}

.cod-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cod-row:last-child {
    margin-bottom: 0;
}

.cod-label {
    font-size: 14px;
    color: #6b7280;
}

.cod-amount {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.cod-amount .currency-symbol {
    font-weight: 500;
}

.paypal-checkout-container {
    text-align: center;
}



.paypal-btn-icon {
    width: 20px;
    height: 20px;
}

.paypal-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    max-width: 300px;
    margin: 0 auto;
}

.paypal-description p {
    margin: 0;
}

.mobile-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
}

.form-group {
    position: relative;
}

/* 安全提示 */
.security-notice {
    text-align: center;
    margin: 20px 0;
    color: #666;
    font-size: 14px;
}

/* 操作按钮区域 */
.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
}

/* 返回链接 */
.back-link {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    flex-shrink: 0;
}

.back-link:hover {
    color: #005a8b;
    text-decoration: underline;
}

/* 完成购买按钮 */
.complete-purchase-btn {
    flex: 1;
    background: #007cba;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 130px;
    max-width: 220px;
    min-height: 40px;
}

.complete-purchase-btn:hover {
    background: #005a8b;
}

/* PayPal 支付按钮 */
.paypal-payment-btn {
    flex: 1;
    background: #0070ba;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 160px;
    max-width: 250px;
    min-height: 48px;
}

.paypal-payment-btn:hover {
    background: #005ea6;
}

/* Shipping options styles */
.shipping-section {
    margin-bottom: 30px;
}

.shipping-notice {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.shipping-notice p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.shipping-options {
    margin-bottom: 20px;
}

.shipping-option {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 12px;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 16px;
}

.shipping-option:hover {
    border-color: #2563eb;
}

.shipping-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #2563eb;
}

.shipping-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.shipping-info {
    flex: 1;
}

.shipping-name {
    font-weight: 600;
    color: #374151;
    font-size: 16px;
    margin-bottom: 4px;
}

.shipping-description {
    color: #6b7280;
    font-size: 14px;
}

.shipping-price {
    font-weight: 600;
    color: #374151;
    font-size: 16px;
}

/* 选中状态样式 */
.shipping-option:has(input[type="radio"]:checked) {
    border-color: #2563eb;
    background-color: #f0f9ff;
}

.shipping-option:has(input[type="radio"]:checked) .shipping-name {
    color: #2563eb;
}

.shipping-option:has(input[type="radio"]:checked) .shipping-price {
    color: #2563eb;
}

/* 兼容性备用样式 */
.shipping-option.selected {
    border-color: #2563eb !important;
    background-color: #f0f9ff !important;
}

.shipping-option.selected .shipping-name {
    color: #2563eb !important;
}

.shipping-option.selected .shipping-price {
    color: #2563eb !important;
}

/* Order Summary Mobile - 仅在移动端显示 */
.order-summary-mobile {
    display: none;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin: 24px 0;
    background: white;
    overflow: hidden;
}

.order-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.order-summary-header:hover {
    background: #f3f4f6;
}

.order-summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.order-summary-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-total {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.order-summary-icon {
    transition: transform 0.3s ease;
    color: #6b7280;
}

.order-summary-icon.expanded {
    transform: rotate(180deg);
}

.order-summary-content {
    background: #f9fafb;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.order-summary-content.expanded {
    max-height: 500px;
    opacity: 1;
    padding: 17px;
    border-top: 1px solid #e5e7eb;
}

.order-summary-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
    border-top: none;
}

/* 商品列表 - 继承右侧产品列表样式 */
.order-items {
    margin-bottom: 20px;
}



/* 价格明细 - 与右侧summary-section保持一致 */
.price-breakdown {
    margin-bottom: 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #6b7280;
}

.price-row.total-row {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    margin-top: 12px;
    font-weight: 600;
    color: #111827;
    font-size: 16px;
}

.total-label {
    font-size: 16px;
    font-weight: 600;
}

.amount {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .order-summary-mobile {
        display: block;
    }

    .express-checkout {
        gap: 6px;
        margin-bottom: 20px;
    }

    .payment-btn {
        padding: 12px 8px;
        min-width: 80px;
        font-size: 13px;
    }

    .action-buttons {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        margin: 20px 0;
    }

    .back-link {
        font-size: 13px;
        flex-shrink: 0;
    }

    .complete-purchase-btn,
    .paypal-payment-btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
        min-width: auto;
    }
}

/* 条款说明 */
.terms-notice {
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 20px;
}

.terms-notice a {
    color: #007cba;
    text-decoration: none;
}

.terms-notice a:hover {
    text-decoration: underline;
}

/* 产品列表样式 */
.product-list {
    margin-bottom: 30px;
}

/* 价格摘要样式 */
.summary-section {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-row.total {
    font-weight: 600;
    font-size: 16px;
    border-top: 1px solid #ddd;
    padding-top: 12px;
    margin-top: 20px;
}

/* FAQ 样式 */
.faq-section {
    margin-top: 20px;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #007cba;
}

.faq-icon {
    transition: transform 0.2s ease;
    color: #666;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    padding: 0;
}

.faq-answer.active {
    max-height: 150px;
    padding: 15px 0;
}

.faq-answer p {
    margin: 0;
}

/* 移动端FAQ部分 - 默认隐藏 */
.faq-section-desktop {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        background: #ffffff !important;
    }

    .container {
        flex-direction: column;
        background: #ffffff;
    }

    .right-section {
        width: 100%;
        position: static;
        height: auto;
        order: -1;
        background: #ffffff;
        padding: 20px;
    }

    .left-section {
        width: 100%;
        background: #ffffff;
        padding: 20px;
    }

    .logo {
        margin-bottom: 20px;
    }

    /* 隐藏右侧的FAQ，显示底部的FAQ */
    .right-section .faq-section {
        display: none;
    }

    .faq-section-desktop {
        display: block;
        margin: 0 20px 20px 20px;
        border-top: 1px solid #ddd;
        padding-top: 20px;
        background: #ffffff;
    }

    .faq-section-desktop .faq-question {
        padding: 15px 0;
        font-size: 14px;
        background: #ffffff;
    }

    .faq-section-desktop .faq-answer.active {
        padding: 15px;
        background: #f8f9fa;
    }

    .faq-section-desktop .faq-answer p {
        margin: 0;
    }
}

/* ===== Shopify 产品列表样式 ===== */

/* 产品列表项 */
.product-list-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    gap: 12px;
}

.product-list-item:last-child {
    border-bottom: none;
}

/* 产品图片 */
.product-list-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}

/* 产品信息容器 */
.product-list-item-info {
    flex: 1;
    min-width: 0;
}

/* 产品名称 */
.product-list-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 产品详情（数量和价格） */
.product-list-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
}

/* 产品数量 */
.product-list-item-quantity {
    color: #888;
    font-size: 12px;
}

/* 产品价格 */
.product-list-item-price {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* 产品列表容器 */
.product-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

/* 滚动条样式 */
.product-list::-webkit-scrollbar {
    width: 6px;
}

.product-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.product-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.product-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 空状态样式 */
.product-list:empty::before {
    content: "No products found";
    display: block;
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .product-list-item {
        padding: 10px 0;
        gap: 10px;
    }

    .product-list-item-image {
        width: 50px;
        height: 50px;
    }

    .product-list-item-name {
        font-size: 13px;
    }

    .product-list-item-details {
        font-size: 12px;
    }

    .product-list-item-price {
        font-size: 13px;
    }
}

/* ===== Shopify Logo 样式 ===== */

/* Logo容器样式 */
.logo {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 40px !important;
    min-height: 60px !important;
}

/* 商店Logo图片样式 */
.logo .store-logo {
    max-width: 200px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    border: none !important;
    background: transparent !important;
}

/* 隐藏默认文字（当有真实logo时） */
.logo span {
    transition: opacity 0.3s ease;
}

.logo:has(.store-logo) span {
    display: none !important;
}

/* 移动端Logo适配 */
@media (max-width: 768px) {
    .logo .store-logo {
        max-width: 150px !important;
        max-height: 45px !important;
    }

    .logo {
        margin-bottom: 30px !important;
        min-height: 45px !important;
    }
}

/* 确保logo在加载时有合适的占位 */
.logo .store-logo[src=""] {
    display: none !important;
}

.logo .store-logo:not([src]),
.logo .store-logo[src=""] {
    display: none !important;
}
