/**
 * ccHeroes WooCommerce Blocks Checkout CSS
 */

.ccheroes-payment-form {
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ccheroes-form-row {
    margin-bottom: 15px;
}

.ccheroes-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    padding-left: 0;
}
.ccheroes-form-row p label {
    padding-left: 0;
}
.wc-ccheroes-form p{
    padding: 10px 15px; 
}

.ccheroes-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.ccheroes-input:focus {
    border-color: #666;
    outline: none;
}

.ccheroes-form-row-first {
    float: left;
    width: 48%;
}

.ccheroes-form-row-last {
    float: right;
    width: 48%;
}

.ccheroes-payment-form::after {
    content: "";
    display: table;
    clear: both;
}

.ccheroes-error {
    color: #e2401c;
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.ccheroes-test-mode-notice {
    background-color: #fcf8e3;
    color: #8a6d3b;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Responsive styles */
@media screen and (max-width: 480px) {
    .ccheroes-form-row-first,
    .ccheroes-form-row-last {
        float: none;
        width: 100%;
    }
}

/* WooCommerce Blocks specific styles */
.wc-block-components-payment-method-icons {
    margin-bottom: 10px;
}

.wc-block-components-payment-method-label--with-icon {
    display: flex;
    align-items: center;
}

/* Make sure our form works well with the block editor's dark mode */
.is-dark-theme .ccheroes-payment-form {
    background-color: #2c3338;
    color: #f0f0f1;
}

.is-dark-theme .ccheroes-input {
    background-color: #3c434a;
    border-color: #4f5861;
    color: #f0f0f1;
}

.is-dark-theme .ccheroes-input:focus {
    border-color: #8c8f94;
}

/* Fix for Storefront theme */
.theme-storefront .ccheroes-payment-form input[type="text"] {
    padding: 10px;
    font-size: 16px;
    line-height: 1.5;
}

/* Fix for Twenty Twenty-One theme */
.theme-twentytwentyone .ccheroes-payment-form input[type="text"] {
    border: 1px solid #ddd;
}
