/* Reset e Base */
.hidden {
    display: none !important;
}

#checkout-ui-wrapper {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Timer Bar - Header (cor será definida inline pelo PHP) */
#checkout-ui-timer-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* Header do Produto */
.checkout-ui-product-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.checkout-ui-logo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.logo-text-green {
    color: #2d7a52;
    font-weight: 800;
    font-size: 24px;
}

.logo-text-black {
    color: #000;
    font-weight: 800;
    font-size: 24px;
}

.checkout-ui-product-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-top: 10px;
}

/* Order Bump Style - Restored & Modernized */
.order-bump-wrapper {
    position: relative;
    margin-bottom: 16px;
}

/* Checkbox oculto mas funcional para lógica CSS */
.orderbump-checkbox.hidden {
    display: none;
}

.order-bump-block {
    display: block;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.75rem; /* rounded-xl */
    border: 2px solid #e5e7eb; /* gray-200 */
    position: relative;
    z-index: 1;
    background-color: white;
}

.order-bump-block:hover {
    border-color: var(--accent-color);
}

/* Estado Selecionado */
.orderbump-checkbox:checked + .order-bump-block {
    border-color: var(--accent-color) !important;
    background: linear-gradient(to bottom, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.02)) !important;
}

.orderbump-checkbox:checked + .order-bump-block .order-bump-checkbox-visual {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.orderbump-checkbox:checked + .order-bump-block .checkmark {
    opacity: 1 !important;
}

.orderbump-checkbox:checked + .order-bump-block .order-bump-checkbox-visual {
    background: #10b981 !important;
    border-color: #10b981 !important;
}

.orderbump-checkbox:checked + .order-bump-block .order-bump-checkbox-visual .checkmark {
    opacity: 1 !important;
}

.order-bump-checkbox {
    transition: all 0.2s ease;
}

.checkmark {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Payment Tabs Style */
.payment-tab {
    position: relative;
    color: #6b7280;
    border-color: #e5e7eb;
    background: white;
}

.payment-tab:hover {
    color: #374151;
    border-color: #d1d5db;
}

.payment-tab.payment-tab-active,
.payment-tab[data-active="true"] {
    color: #0d9488;
    border-color: #0d9488;
    background: white;
}

.payment-tab.payment-tab-active i,
.payment-tab[data-active="true"] i {
    color: #0d9488 !important;
}

.payment-radio-stripe {
    border-color: #d1d5db;
    transition: all 0.2s ease;
}

.payment-tab.payment-tab-active .payment-radio-stripe,
.payment-tab[data-active="true"] .payment-radio-stripe {
    border-color: var(--accent-color, #0d9488);
}

.payment-radio-check {
    transition: all 0.2s ease;
}

.payment-tab .pix-icon {
    filter: grayscale(100%) brightness(0.6);
    transition: all 0.2s ease;
}

.payment-tab.payment-tab-active .pix-icon,
.payment-tab[data-active="true"] .pix-icon {
    filter: none !important;
}

/* Inputs Style */
.input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
    transition: all 0.2s ease;
}

.input:focus,
#checkout-ui-wrapper input[type="text"]:focus,
#checkout-ui-wrapper input[type="email"]:focus,
#checkout-ui-wrapper input[type="tel"]:focus {
    outline: none;
    border-color: var(--accent-color, #009933);
    box-shadow: 0 0 0 3px rgba(0, 153, 51, 0.1);
}

.input::placeholder {
    color: #9ca3af;
}

.label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 8px;
}

/* Phone Input with Country Code */
.phone-input-container {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.phone-input-container:focus-within {
    border-color: var(--accent-color, #009933);
    box-shadow: 0 0 0 3px rgba(0, 153, 51, 0.1);
}

.phone-input-container .country-code {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 12px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    font-size: 14px;
    color: #374151;
}

.phone-input-container input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 14px;
    color: #374151;
    background: white;
}

.phone-input-container input:focus {
    outline: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    color: #9ca3af;
    font-size: 12px;
    background: #f5f5f5;
}

.footer strong {
    color: #666;
}

.footer img {
    height: 20px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Estilos de Inputs do Checkout (do código antigo) */
.checkout-input {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.checkout-input:focus {
    border-color: var(--accent-color, #009933);
    box-shadow: 0 0 0 2px rgba(0, 153, 51, 0.25);
    outline: none;
}

/* Payment Method Cards - Design horizontal com ícone à esquerda */
/* Espaçamento no título de pagamento */
#checkout-ui-payment-section h3 {
    margin-bottom: 1.5rem !important;
    margin-top: 1rem !important;
}

#checkout-ui-payment-section .payment-method-card {
    transition: all 0.3s ease-in-out;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 16px 20px !important;
    min-height: 120px !important;
    gap: 8px;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    box-sizing: border-box;
}

#checkout-ui-payment-section .payment-method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#checkout-ui-payment-section .payment-method-card i,
#checkout-ui-payment-section .payment-method-card svg {
    margin-bottom: 0 !important;
    flex-shrink: 0;
    width: 32px !important;
    height: 32px !important;
    max-width: 100%;
}
