/* WooCommerce Custom Payment Options Frontend Styles */

.wc-payment-options-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wc-payment-options-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc-payment-options-list {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

/* Single Payment Option Row */
.wc-payment-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    user-select: none;
    position: relative;
}

/* Separator between rows */
.wc-payment-option-row:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

/* Hover State */
.wc-payment-option-row:hover {
    background-color: #f8fafc;
}

/* Active State */
.wc-payment-option-row.active {
    background-color: #f0f7ff;
}

/* Left Content Wrapper (Radio + Label) */
.wc-payment-option-left-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

/* Hide native radio but keep accessible */
.wc-payment-option-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

/* Custom Radio Wrapper */
.wc-payment-option-radio-wrapper {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
}

/* Custom Radio Outer Circle */
.wc-payment-option-radio-custom {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
}

/* Hover and Checked states on Radio Circle */
.wc-payment-option-row:hover .wc-payment-option-radio-custom {
    border-color: #94a3b8;
}

.wc-payment-option-radio:checked ~ .wc-payment-option-radio-custom {
    border-color: #2563eb;
    background-color: #2563eb;
}

/* Custom Radio Inner Dot (White Dot) */
.wc-payment-option-radio-custom::after {
    content: "";
    position: absolute;
    display: none;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.wc-payment-option-radio:checked ~ .wc-payment-option-radio-custom::after {
    display: block;
}

/* Label text styles */
.wc-payment-option-label-text {
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.wc-payment-option-row.active .wc-payment-option-label-text {
    color: #1e3a8a;
    font-weight: 600;
}

/* Right Content Wrapper (Price) */
.wc-payment-option-price-content {
    text-align: right;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

/* Price html output from WooCommerce */
.wc-payment-option-price-html,
.wc-payment-option-price-html bdi,
.wc-payment-option-price-html span {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

/* Suffix styles (e.g. /mo) */
.wc-payment-option-price-suffix {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.wc-payment-option-row.active .wc-payment-option-price-suffix {
    color: #3b82f6;
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .wc-payment-option-row {
        padding: 12px 14px;
    }
    .wc-payment-option-price-html,
    .wc-payment-option-price-html bdi,
    .wc-payment-option-price-html span {
        font-size: 16px;
    }
    .wc-payment-option-label-text {
        font-size: 13px;
    }
}
