/* Estilos para o checkout Glender */
body {
    background-color: #110d06;
    color: #F0A030;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Garantir que o header seja consistente com o tema principal */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.85);
    transition: background-color 0.3s ease;
    margin: 0;
}

/* Ajustes para a barra de administração do WordPress */
html {
    margin-top: 0 !important;
}

/* Remover qualquer espaço acima do body */
body.woocommerce-checkout,
body.woocommerce-cart {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.admin-bar .site-header {
    top: 32px !important; /* Ajuste para quando estiver logado como admin */
}

body:not(.admin-bar) .site-header {
    top: 0 !important; /* Garantir que esteja no topo quando não estiver logado */
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px !important; /* Ajuste para telas menores quando estiver logado como admin */
    }
}

/* Estilo para a página de carrinho */
.cart-wrapper {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 20px;
    min-height: calc(100vh - 400px);
    padding-top: 120px; /* Ajustado para o header fixo */
}

.checkout-wrapper {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 20px;
    min-height: calc(100vh - 400px);
    padding-top: 120px; /* Ajustado para o header fixo */
}

.checkout-title {
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    text-align: center;
    margin-bottom: 0;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 2px;
}

.checkout-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 2px;
    color: #F0A030;
}

.glender-checkout-content {
    color: #F0A030;
    font-family: 'Playfair Display', serif;
}

/* Layout de colunas */
.checkout-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 10px;
}

.checkout-column {
    flex: 1;
    min-width: 300px;
}

.column-title {
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Coluna de pedido */
.order-column {
    background-color: #110d06;
    border: 1px solid #F0A030;
    padding: 20px;
    margin-right: 10px;
}

/* Coluna de faturação */
.billing-column {
    background-color: #110d06;
    border: 1px solid #F0A030;
    padding: 20px;
    margin-left: 10px;
}

/* Tabela de produtos */
.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    color: #F0A030;
}

.shop_table th,
.shop_table td {
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid rgba(240, 160, 48, 0.3);
}

.shop_table thead th {
    font-weight: 600;
    text-transform: uppercase;
}

.shop_table tfoot th {
    font-weight: normal;
}

.shop_table tfoot tr:last-child {
    font-weight: 600;
}

.shop_table tfoot td {
    text-align: right;
}

.shop_table .product-name {
    text-align: left;
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
}

.shop_table .product-name img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    object-fit: cover;
    border: 1px solid #F0A030;
}

.shop_table .product-total {
    text-align: right;
    color: #F0A030;
    font-family: 'Playfair Display', serif;
}

/* Coluna de faturamento */
.billing-column {
    background-color: #110d06;
    border: 1px solid #F0A030;
    padding: 20px;
}

/* Campos de formulário */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    margin-bottom: 20px;
}

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

.form-row label {
    display: block;
    margin-bottom: 5px;
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row textarea,
.form-row select,
.woocommerce-billing-fields input[type="text"],
.woocommerce-billing-fields input[type="tel"],
.woocommerce-billing-fields input[type="email"],
.woocommerce-billing-fields input[type="password"],
.woocommerce-billing-fields textarea,
.woocommerce-billing-fields select,
.woocommerce-shipping-fields input[type="text"],
.woocommerce-shipping-fields input[type="tel"],
.woocommerce-shipping-fields input[type="email"],
.woocommerce-shipping-fields input[type="password"],
.woocommerce-shipping-fields textarea,
.woocommerce-shipping-fields select,
.woocommerce-additional-fields input[type="text"],
.woocommerce-additional-fields input[type="tel"],
.woocommerce-additional-fields input[type="email"],
.woocommerce-additional-fields input[type="password"],
.woocommerce-additional-fields textarea,
.woocommerce-additional-fields select {
    width: 100%;
    padding: 10px;
    background-color: #110d06;
    border: 1px solid #F0A030;
    color: #F0A030;
    font-family: 'Montserrat', sans-serif;
    border-radius: 0;
    height: 40px;
    box-sizing: border-box;
}

.form-row textarea,
.woocommerce-billing-fields textarea,
.woocommerce-shipping-fields textarea,
.woocommerce-additional-fields textarea {
    height: 100px;
}

.form-row input::placeholder,
.form-row textarea::placeholder,
.woocommerce-billing-fields input::placeholder,
.woocommerce-billing-fields textarea::placeholder,
.woocommerce-shipping-fields input::placeholder,
.woocommerce-shipping-fields textarea::placeholder,
.woocommerce-additional-fields input::placeholder,
.woocommerce-additional-fields textarea::placeholder {
    color: rgba(240, 160, 48, 0.6);
}

.select2-container--default .select2-selection--single,
.state_select {
    width: 100%;
    padding: 10px;
    background-color: #110d06;
    border: 1px solid #F0A030;
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    border-radius: 0;
    height: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23F0A030" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 8px;
}

/* Estilo para o campo de país */
.country-field .woocommerce-input-wrapper {
    position: relative;
    display: block;
}

.country-field select {
    width: 100%;
    padding: 10px 15px;
    background-color: #110d06;
    color: #F0A030;
    border: 1px solid #F0A030;
    font-family: 'Playfair Display', serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    font-size: 16px;
    height: auto;
    line-height: 1.5;
    border-radius: 0;
}

.country-field select:focus {
    outline: none;
    border-color: #F0A030;
    box-shadow: 0 0 5px rgba(240, 160, 48, 0.5);
}

.country-field .woocommerce-input-wrapper::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #F0A030;
    pointer-events: none;
}

.select2-container--default .select2-selection--single {
    background-color: #110d06;
    border: 1px solid #F0A030;
    border-radius: 0;
    height: 42px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #F0A030;
    line-height: 42px;
    padding-left: 10px;
    font-family: 'Playfair Display', serif;
}

/* Garantir que o select2 seja exibido corretamente */
.country-field .select2-container {
    width: 100% !important;
}

/* Remover o span fora do select2 */
.country-field .selected-country {
    display: none;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

.select2-dropdown {
    background-color: #110d06;
    border: 1px solid #F0A030;
}

.select2-container--default .select2-results__option {
    color: #F0A030;
    font-family: 'Playfair Display', serif;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #F0A030;
    color: #110d06;
}

/* Métodos de pagamento */
.woocommerce-checkout-payment {
    margin-top: 20px;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.wc_payment_method {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(240, 160, 48, 0.3);
}

.wc_payment_method label {
    display: inline-block;
    margin-left: 5px;
    color: #F0A030;
    font-family: 'Playfair Display', serif;
}

.payment_box {
    padding: 10px;
    margin-top: 10px;
    background-color: rgba(240, 160, 48, 0.1);
}

/* Botão de finalizar pedido */
.checkout-place-order,
.checkout-place-order-bottom {
    text-align: center;
    margin-top: 20px;
}

.button.alt,
#place_order,
.place-order-button {
    background-color: #F0A030;
    color: #110d06;
    border: none;
    padding: 15px 30px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    position: relative;
}

#place_order:hover,
#place_order_bottom:hover {
    background-color: #d88c1e;
}

.place-order-wrapper {
    margin-top: 30px;
    position: relative;
}

/* Adicionar a linha vermelha no botão */
.place-order-button .place-order-text {
    position: relative;
    z-index: 1;
}

.place-order-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ff0000;
    bottom: 50%;
    left: 0;
    transform: rotate(-3deg);
    z-index: 0;
}

/* Métodos de pagamento */
.woocommerce-checkout-payment {
    margin-top: 20px;
    background-color: #110d06 !important;
    border: 1px solid #F0A030;
    padding: 15px;
}

.woocommerce-checkout-payment-section h3 {
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.payment_methods,
.payment-method-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment_methods li,
.payment-method-item {
    margin-bottom: 10px;
}

.payment_methods label,
.payment-method-item label {
    display: flex;
    align-items: center;
    color: #F0A030;
    font-family: 'Playfair Display', serif;
}

.payment_methods input[type="radio"],
.payment-method-item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #F0A030;
    border-radius: 50%;
    background-color: #110d06;
    margin-right: 10px;
    position: relative;
}

.payment_methods input[type="radio"]:checked:after,
.payment-method-item input[type="radio"]:checked:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #F0A030;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.payment_box {
    padding: 10px;
    margin: 5px 0 10px 28px;
    background-color: rgba(240, 160, 48, 0.1) !important;
    border-left: 2px solid #F0A030;
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
}

.payment_box p {
    margin: 0;
    color: #F0A030;
}

/* Checkbox para envio para endereço diferente */
#ship-to-different-address {
    margin-top: 20px;
    margin-bottom: 20px;
}

#ship-to-different-address label {
    display: flex;
    align-items: center;
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    font-weight: normal;
    cursor: pointer;
}

#ship-to-different-address input {
    margin-right: 10px;
}

/* Mensagens de erro e notificações */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    background-color: #110d06 !important;
    color: #F0A030 !important;
    border: 1px solid #F0A030 !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
    list-style: none !important;
    font-family: 'Playfair Display', serif !important;
    border-radius: 0 !important;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    color: #F0A030 !important;
}

.woocommerce-error li {
    color: #F0A030 !important;
}

/* Links em mensagens */
.woocommerce-error a,
.woocommerce-info a,
.woocommerce-message a {
    color: #F0A030 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

.woocommerce-error a:hover,
.woocommerce-info a:hover,
.woocommerce-message a:hover {
    color: #d88c1e !important;
}

/* Botões nas mensagens */
.woocommerce-error .button,
.woocommerce-info .button,
.woocommerce-message .button {
    background-color: #F0A030 !important;
    color: #110d06 !important;
    border: none !important;
    padding: 8px 15px !important;
    font-family: 'Playfair Display', serif !important;
    text-transform: uppercase !important;
    float: right !important;
    border-radius: 0 !important;
}

.woocommerce-error .button:hover,
.woocommerce-info .button:hover,
.woocommerce-message .button:hover {
    background-color: #d88c1e !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .checkout-columns {
        flex-direction: column;
    }
    
    .checkout-column {
        width: 100%;
    }
    
    .checkout-subtitle {
        font-size: 30px;
    }
    
    .checkout-wrapper,
    .cart-wrapper {
        padding-top: 100px;
    }
    
    .order-column {
        order: 2;
    }
    
    .billing-column {
        order: 1;
    }
}

@media (max-width: 480px) {
    .checkout-wrapper,
    .cart-wrapper {
        padding-top: 50px;
    }
    
    .checkout-subtitle {
        font-size: 24px;
    }
}

/* Ajustes para campos de formulário específicos */
#billing_first_name_field,
#billing_last_name_field,
#billing_phone_field,
#billing_email_field {
    width: 100%;
}

/* Estilização para checkbox de pagamento direto */
.woocommerce-form__input-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #F0A030;
    background-color: #110d06;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 5px;
}

.woocommerce-form__input-checkbox:checked::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #F0A030;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
