/* ==========================================================================
   Stripe-Inspired Modern Checkout UI for Helcim
   ========================================================================== */

#helcim-inline-container {
    margin: 20px 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: all 0.2s ease-in-out;
}

/* Form Container Fieldset Reset */
#wc-helcim-cc-form {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Card Icons Bar */
.helcim-card-brands {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 16px;
}

.helcim-card-brands svg {
    height: 22px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.helcim-card-brands svg:hover {
    opacity: 1;
}

/* Labels */
#wc-helcim-cc-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4f566b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#wc-helcim-cc-form label .required {
    color: #df1b41;
    text-decoration: none;
}

/* Inputs Styling */
#wc-helcim-cc-form input.input-text {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 500;
    color: #30313d;
    background-color: #ffffff;
    border: 1px solid #e6e8eb;
    border-radius: 6px;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

#wc-helcim-cc-form input.input-text::placeholder {
    color: #a3acb9;
    font-weight: 400;
}

/* Focus States (Stripe Blue Ring) */
#wc-helcim-cc-form input.input-text:focus {
    border-color: #635bff;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

/* Form Row Grid Layout */
#wc-helcim-cc-form .form-row {
    margin-bottom: 16px;
    padding: 0;
}

#wc-helcim-cc-form .form-row-wide {
    width: 100%;
    float: none;
    clear: both;
}

#wc-helcim-cc-form .form-row-first {
    width: 48%;
    float: left;
}

#wc-helcim-cc-form .form-row-last {
    width: 48%;
    float: right;
}

#wc-helcim-cc-form .clear {
    clear: both;
}

/* Card Input Icon Wrapper */
.helcim-input-icon-wrapper {
    position: relative;
}

.helcim-input-icon-wrapper input {
    padding-right: 42px !important;
}

.helcim-input-icon-wrapper .card-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.4;
}

/* Security Badge */
.helcim-security-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
    color: #8792a2;
    font-weight: 500;
}

.helcim-security-footer svg {
    width: 14px;
    height: 14px;
    fill: #635bff;
}