/* WowPets Pet Profiles Frontend Styles */

/* Pet Profile Form */
.woocommerce-pet-profile-form {
    margin-bottom: 30px;
}

.woocommerce-pet-profile-form label {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.woocommerce-pet-profile-form .woocommerce-input-wrapper {
    display: block;
    margin-top: 5px;
}

.woocommerce-pet-profile-form textarea {
    min-height: 100px;
}

/* Registration Form */
.woocommerce-form-register .pet-info-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.woocommerce-form-register .pet-info-section h3 {
    margin-bottom: 15px;
}

/* Newsletter Consent */
.newsletter-consent-wrapper {
    margin: 15px 0;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 4px;
}

.newsletter-consent-wrapper label {
    font-weight: normal;
    cursor: pointer;
    padding: 5px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.newsletter-consent-wrapper input[type="checkbox"] {
    margin-right: 5px;
}

.newsletter-consent-description {
    margin-bottom: 0;
}

.newsletter-privacy-notice {
    margin-top: 5px;
    margin-left: 30px;
    font-size: 0.9em;
    color: #666;
}

/* Sample Product Buttons */
.sample-already-ordered {
    opacity: 0.7;
}

.complete-profile-to-order {
    background-color: #f7f7f7 !important;
    color: #777 !important;
    border-color: #ddd !important;
}

/* Log in to access button */
.login-to-access-button {
    background-color: #4CAF50 !important;
    color: white !important;
    border-color: #4CAF50 !important;
}

.login-to-access-button:hover {
    background-color: #45a049 !important;
    border-color: #45a049 !important;
}

/* Sample product notice for logged-out users */
.woocommerce-info a.button.btn-sm {
    margin: 0 5px;
    padding: 5px 10px;
    font-size: 0.9em;
    display: inline-block;
    vertical-align: middle;
}

/* Gray out product tiles for users who already ordered a sample */
.sample-already-claimed {
    opacity: 0.7;
    pointer-events: none;
}
.sample-already-claimed .button {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}
.sample-already-claimed:before {
    content: "Sample already claimed";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    z-index: 10;
    font-weight: bold;
}

/* Style for ineligible users */
.sample-ineligible .pet-profile-button {
    background-color: transparent;
    font-weight: 700;
    cursor: pointer;
}

/* Sample price style */
.sample-price {
    font-weight: bold;
    color: #4CAF50;
    font-size: 28px;

    @media (max-width: 768.98px) {
    font-size: 20px;
}
}

/* Tooltip styles */
.sample-tooltip {
    position: relative;
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #777;
    background-color: #f7f7f7;
    padding: 5px 10px;
    border-radius: 3px;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
}

.pet-profile-message .button {
    margin-left: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Form Validation */
.wowpets-form-error {
    color: red;
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
}

/* Notification Messages */
.wowpets-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wowpets-notification-success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.wowpets-notification-error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.wowpets-notification-info {
    background-color: #d9edf7;
    color: #31708f;
    border: 1px solid #bce8f1;
}

/* Campaign Banner */
.wowpets-campaign-banner {
    margin-bottom: 30px;
    display: block;
    text-align: center;
}

.wowpets-banner-link {
    display: block;
    text-decoration: none;
}

.wowpets-banner-link img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Desktop banner - show by default, hide on mobile */
.wowpets-desktop-banner {
    display: block;
}

.wowpets-mobile-banner {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .woocommerce-pet-profile-form .form-row {
        width: 100%;
        float: none;
    }

    .pet-profile-message {
        flex-direction: column;
        align-items: flex-start;
    }

    .pet-profile-message .button {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    /* Switch banners on mobile */
    .wowpets-desktop-banner {
        display: none;
    }

    .wowpets-mobile-banner {
        display: block;
    }
}
