/* Delivery Address Form Plugin Styles */


.daf-checkout-edit p{
    margin-top: 15px;
    margin-bottom: 0;
    padding-top: 15px;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid #e0e0e0;
    text-align: left;
    width: 100%;
    clear: both;
    float: none;
}

.daf-checkout-edit .button {
    font-size: 14px;
    padding: 8px 15px;
    float: none;
    display: inline-block;
}


.daf-checkout-edit p{
    margin-top: 2rem !important;
}

.daf-delivery-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.daf-delivery-form {
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.daf-delivery-form h1 {
    margin-bottom: 10px;
    font-size: 28px;
    color: #333;
}

.daf-field-group {
    margin-bottom: 20px;
}

.daf-field-row {
    display: flex;
    gap: 15px;
}

.daf-field-half {
    flex: 1;
}

.daf-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.daf-label .required {
    color: #e2401c;
}

.daf-input,
.daf-textarea,
.daf-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.daf-select {
    background-color: #fff;
    cursor: pointer;
}

.daf-textarea {
    resize: vertical;
    min-height: 80px;
}

.daf-input:focus,
.daf-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.daf-error {
    display: block;
    color: #e2401c;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.daf-error-field {
    border-color: #e2401c !important;
}

.daf-error-field:focus {
    border-color: #e2401c !important;
    box-shadow: 0 0 0 2px rgba(226, 64, 28, 0.1) !important;
}

.daf-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.daf-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.daf-button-back {
    background: #f0f0f0;
    color: #333;
}

.daf-button-back:hover {
    background: #e0e0e0;
    color: #000;
}

.daf-button-primary {
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
}

.daf-button-primary:hover {
    background: #005a87 !important;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .daf-delivery-form-wrapper {
        padding: 10px;
    }
    
    .daf-delivery-form {
        padding: 20px;
    }
    
    .daf-field-row {
        flex-direction: column;
    }
    
    .daf-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .daf-button {
        width: 100%;
    }
}

/* Checkout page delivery address display - match WooCommerce checkout styling */
.daf-checkout-delivery-info {
    margin: 0 0 20px 0;
    padding: 20px;
    width: 100%;
    clear: both;
    box-sizing: border-box;
    float: none;
    display: block;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.daf-checkout-delivery-info .woocommerce-checkout-section-title {
    margin: 0 0 15px 0 !important;
    padding: 0 0 10px 0 !important;
    color: #333;
    text-align: left;
    width: 100%;
    clear: both;
    float: none;
    display: block;
    border-bottom: 1px solid #e0e0e0;
}

.daf-checkout-address {
    width: 100%;
    clear: both;
    float: none;
    display: block;
}

.daf-checkout-address p {
    margin: 8px 0;
    padding: 0;
    line-height: 1.6;
    text-align: left;
    width: 100%;
    clear: both;
    float: none;
    color: #333;
}

/* Add margin-top to edit button paragraph - use very specific selector */
.woocommerce-shipping-fields.daf-checkout-delivery-info .woocommerce-billing-fields__field-wrapper.daf-checkout-address p.daf-checkout-edit,
.daf-checkout-delivery-info .daf-checkout-address p.daf-checkout-edit {
    margin-top: 2rem !important;
    margin-bottom: 0 !important;
    padding-top: 15px !important;
    border-top: 1px solid #e0e0e0 !important;
}


.daf-checkout-address-text {
    text-align: left;
    margin-bottom: 10px;
    padding: 0;
    width: 100%;
    font-size: 14px;
}

.daf-checkout-major-intersection,
.daf-checkout-install-surface,
.daf-checkout-dropdown {
    margin-top: 10px;
    margin-bottom: 0;
    padding: 0;
    text-align: left;
    width: 100%;
    clear: both;
    float: none;
    font-size: 14px;
}

.daf-checkout-major-intersection strong,
.daf-checkout-install-surface strong,
.daf-checkout-dropdown strong {
    font-weight: 600;
}

.daf-checkout-stairs {
    margin-top: 10px;
    margin-bottom: 0;
    padding: 0;
    text-align: left;
    width: 100%;
    clear: both;
    float: none;
    font-size: 14px;
}

.daf-checkout-instructions {
    margin-top: 15px;
    padding-top: 15px;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid #e0e0e0;
    text-align: left;
    width: 100%;
    clear: both;
    float: none;
    font-size: 14px;
}

.daf-checkout-instructions strong {
    font-weight: 600;
}

