/* Modal Styling */
.wcp-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10001; /* Sit on top - higher than most WC elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.wcp-modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 25px;
    border: 1px solid #ddd;
    width: 90%; /* Could be more or less, depending on screen size */
    max-width: 650px; /* Maximum width */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.wcp-modal-close {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
}

.wcp-modal-close:hover,
.wcp-modal-close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

#wcp-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

/* Form elements inside modal */
#wcp-product-extra-info-form .form-row {
    margin-bottom: 15px;
    padding: 0; /* Override WooCommerce default padding for form-row */
}

#wcp-product-extra-info-form .form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
}

#wcp-product-extra-info-form .form-row input[type="text"],
#wcp-product-extra-info-form .form-row textarea,
#wcp-product-extra-info-form .form-row select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}
#wcp-product-extra-info-form .form-row textarea {
    min-height: 80px;
}


#wcp-product-extra-info-form .required {
    color: red;
    margin-left: 3px;
}

/* Shipping Options */
.wcp-shipping-options legend {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #444;
    width: 100%; /* Take full width */
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
.wcp-shipping-options ul.wcp-radio-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
.wcp-shipping-options ul.wcp-radio-list li {
    margin-bottom: 8px;
}

.wcp-shipping-options label { /* Label for radio button */
    font-weight: normal;
    display: inline-flex; /* Align radio button and text */
    align-items: center;
    cursor: pointer;
}
.wcp-shipping-options input[type="radio"] {
    margin-right: 8px;
    width: auto; /* Override general input width */
}


/* Messages */
#wcp-form-message {
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
}
#wcp-form-message.error {
    color: #a94442;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
}
#wcp-form-message.success {
    color: #3c763d;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
}

/* WooCommerce specific form-row classes for layout */
#wcp-product-extra-info-form .form-row-first {
    float: left;
    width: 48%;
    clear: none;
}
#wcp-product-extra-info-form .form-row-last {
    float: right;
    width: 48%;
    clear: none;
}
#wcp-product-extra-info-form .form-row-wide {
    clear: both;
    width: 100%;
}
#wcp-product-extra-info-form .clear {
    clear: both;
}

/* Button styling - inherit from theme or add custom */
#wcp-submit-form-button {
    /* Example: */
    /* padding: 10px 20px; */
    /* font-size: 1.1em; */
}
#wcp-product-extra-info-form .wcp-shipping-options {
	border: none;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .wcp-modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    #wcp-product-extra-info-form .form-row-first,
    #wcp-product-extra-info-form .form-row-last {
        float: none;
        width: 100%;
    }
}
