/*
 * Styles for the Dual Button shortcode component.
 * MODIFIED with new professional theme.
 */

/* Main container for the buttons */
.cod-dual-button-container {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    max-width: 500px !important; /* You can adjust this max-width as needed */
    margin: 20px auto !important;
    direction: ltr !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
}

/* Common styles for all buttons, adapted from your new style */
.cod-dual-btn {
    flex: 1 1 33.33% !important; /* Distribute space for three buttons */
    padding: 14px 0 !important;
    font-size: 15px !important;
    font-weight: bold !important;
    text-align: center !important;
    text-decoration: none !important;
    color: #fff !important;
    border: none;
    z-index: 1;
    transition: 0.3s ease;
    white-space: nowrap;
    line-height: 1.2em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.cod-dual-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}


/* Button 1 (Left - Order Now) styles */
.cod-dual-btn.btn-one {
    background: linear-gradient(to right, #ec008c, #fc6767) !important;
    border-radius: 40px 0 0 40px !important; /* Rounded on the left */
}

/* Button 2 (Middle - Add to Cart) styles */
.cod-dual-btn.btn-add-to-cart {
    background: linear-gradient(45deg, #FF00FF, #0000FF) !important; /* Keeping green for cart */
    border-radius: 0 !important; /* Straight edges */
}

/* Button 3 (Right - View Details) styles */
.cod-dual-btn.btn-two {
    background: linear-gradient(to right, #6a11cb, #2575fc) !important;
    border-radius: 0 40px 40px 0 !important; /* Rounded on the right */
}

/* "OR" separator styles - Using our flexible method with your new aesthetic */
.cod-dual-separator {
    position: relative;
    z-index: 2;
    margin: 0 -18px; /* Overlap amount */
}

.cod-dual-separator span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    background: #fff !important;
    color: #444 !important;
    font-weight: bold !important;
    font-size: 13px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}


/* Modal container styles (No changes here) */
#cod-dual-button-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

#cod-dual-button-modal-container .cod-form-modal-inner {
    position: relative;
    background: transparent;
    width: 100%;
    max-width: 1040px; 
    padding: 0;
    border-radius: 15px; 
}

#cod-dual-button-modal-container .cod-form-container {
    max-width: 800px;
    margin-top: 5vh;
    margin-bottom: 5vh;
}


/* Close button for the modal (No changes here) */
#cod-dual-button-modal-container .cod-modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 99999;
    transition: background-color 0.2s;
}

#cod-dual-button-modal-container .cod-modal-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Simple loader animation (No changes here) */
.cod-dual-loader {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #E85A9B;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 100px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .cod-dual-button-container {
    padding: 0 10px !important;
  }

  .cod-dual-btn {
    font-size: 14px !important; /* Adjusted for smaller screens */
    padding: 14px 5px !important; /* Adjusted for smaller screens */
  }

  .cod-dual-separator span {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 12px !important;
  }
   .cod-dual-separator {
    margin: 0 -15px;
   }
}