/* Registration Page Styling - Copied from berean.3pm.services */

/* Container & Layout */
#register-page {
    max-width: 900px;
    width: 900px;
    margin: 50px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    animation: fadeInUp 0.6s ease-out;
    box-sizing: border-box;
}

/* Page Background */
body.register #container {
    background: linear-gradient(180deg, #eaf9ff 0%, #ffffff 100%);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
#register-page .register-section {
    border: 1px solid #e6e6e6;
    background: #F5F5F5;
    border-radius: 24px;
    padding: 30px;
    max-width: 520px !important;
    width: 520px !important;
    margin-left: auto;
    margin-right: auto;
}

/* Headings */
#register-page h4 {
    color: #0d86af;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #5FAFC9;
}

/* Form Elements - Input Fields */
#register-page input[type="text"],
#register-page input[type="password"],
#register-page input[type="email"],
#register-page select,
#register-page textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 42px;
    background: #fff;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#register-page input[type="text"]:focus,
#register-page input[type="password"]:focus,
#register-page input[type="email"]:focus,
#register-page select:focus,
#register-page textarea:focus {
    outline: none;
    border-color: #5FAFC9;
    box-shadow: 0 0 0 3px rgba(95, 175, 201, 0.1);
    background: #fff;
}

/* Force gray borders on all inputs per design system */
#register-page input[type="text"],
#register-page input[type="password"],
#register-page input[type="email"],
#register-page select {
    border-color: #ccc !important;
}

/* Labels */
#register-page label {
    display: block;
    color: #444;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    margin-top: 16px;
}

#register-page label:first-of-type {
    margin-top: 0;
}

/* Buttons - matching login page */
#register-page input[type="submit"],
#register-page .submit input {
    background: #5FAFC9;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 42px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "DM Sans", sans-serif;
}

#register-page input[type="submit"]:hover,
#register-page .submit input:hover {
    background: #4a9ab3;
    box-shadow: 0 4px 12px rgba(95, 175, 201, 0.4);
    transform: translateY(-2px);
}

/* Submit Button Container */
#register-page .submit {
    text-align: center;
    margin-top: 30px;
}

/* Two-column form layout for name fields */
#register-page .user_register_name {
    display: block;
    width: 100%;
    vertical-align: top;
}

#register-page .user_register_fname {
    margin-right: 4%;
}

/* Radio buttons */
#register-page .radio {
    margin: 16px 0;
}

#register-page .radio label {
    display: inline-block;
    font-weight: normal;
    margin-right: 20px;
    margin-top: 0;
}

#register-page .radio input[type="radio"] {
    width: auto;
    margin-right: 6px;
    accent-color: #5FAFC9;
}

/* Checkboxes */
#register-page .checkbox {
    margin: 16px 0;
}

#register-page .checkbox label {
    display: inline-block;
    font-weight: normal;
    margin-right: 20px;
    margin-top: 0;
}

#register-page .checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
    accent-color: #5FAFC9;
}

/* Error messages */
#register-page .error {
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 10px 0;
    font-size: 13px;
}

/* Field descriptions */
#register-page .description {
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin-top: 6px;
}

/* Select dropdowns */
#register-page select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360CBF6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Editfield container */
#register-page .editfield {
    margin-bottom: 20px;
}

/* User type field */
#register-page #user_type_field {
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #register-page {
        margin: 20px;
        padding: 30px 25px;
        gap: 30px;
    }

    #register-page .user_register_name {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    #register-page .register-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    #register-page {
        margin: 10px;
        padding: 20px 15px;
        border-radius: 12px;
    }

    #register-page h4 {
        font-size: 18px;
    }
}

/* Blog details toggle */
#register-page #blog-details {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f0f8fc;
    border-radius: 8px;
}

#register-page #blog-details.show {
    display: block;
}

/* Recaptcha styling */
#register-page .agr-recaptcha-wrapper {
    text-align: right;
    margin: 20px 0;
}

#register-page .agr-recaptcha-wrapper > div {
    display: inline-block;
    vertical-align: top;
}

/* Notice messages */
#register-page .standard-form#signup_form > p {
    background: transparent;
    border-left: none;
    padding: 15px 0px;
    border-radius: 0px;
    margin-bottom: 20px;
    color: #27272D;
}

/* Completion confirmation */
#register-page h2 {
    color: #0d86af;
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

/* Suffix field spacing */
#register-page .user_register_suffix {
    margin-top: 16px;
}

/* Date selector styling */
#register-page .datebox select {
    width: auto;
    display: inline-block;
    margin-right: 10px;
}

/* ============================================
   Activation Page Styling - Centered Layout
   ============================================ */

/* Activation page background - matching registration page */
body.activation #container {
    background: linear-gradient(180deg, #eaf9ff 0%, #ffffff 100%);
}

/* Center the activation page content */
#activate-page {
    max-width: 900px;
    width: 900px;
    margin: 50px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 40px 50px;
    box-sizing: border-box;
    animation: fadeInUp 0.6s ease-out;
}

/* Override float:left from parent #content */
body.activation #content {
    float: none !important;
    margin: 0 auto !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Activation page heading */
#activate-page h3 {
    color: #0d86af;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* Success message text */
#activate-page p {
    font-size: 16px;
    color: #27272D;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

/* Activation form styling */
#activate-page .standard-form {
    max-width: 520px;
    margin: 0 auto;
    padding: 30px;
    background: #F5F5F5;
    border-radius: 24px;
}

#activate-page label {
    display: block;
    color: #444;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

#activate-page input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 42px;
    background: #fff;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 20px;
}

#activate-page input[type="text"]:focus {
    outline: none;
    border-color: #5FAFC9;
    box-shadow: 0 0 0 3px rgba(95, 175, 201, 0.1);
}

/* Submit button */
#activate-page input[type="submit"],
#activate-page .submit input {
    background: #5FAFC9;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 42px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "DM Sans", sans-serif;
    width: 100%;
}

#activate-page input[type="submit"]:hover {
    background: #4a9ab3;
    box-shadow: 0 4px 12px rgba(95, 175, 201, 0.4);
    transform: translateY(-2px);
}

/* "Go to Home Page" button */
#activate-page .button-href {
    display: inline-block;
    background: #5FAFC9;
    color: #fff;
    padding: 15px 40px;
    border-radius: 42px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    font-family: "DM Sans", sans-serif;
    transition: all 0.3s ease;
    margin-top: 20px;
}

#activate-page .button-href:hover {
    background: #4a9ab3;
    box-shadow: 0 4px 12px rgba(95, 175, 201, 0.4);
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
    #activate-page {
        margin: 20px;
        padding: 30px 25px;
    }
}

/* ============================================
   Homepage Design Updates - Light Blue Theme
   ============================================ */

/* Light blue background for body - matching login/register pages */
body {
    background: #d6edf9 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
}

/* Main container takes all available space, pushing footer to bottom */
#main {
    flex: 1 !important;
}

/* Remove white background from content container on frontpage */
.page-template-frontpage3-php #content,
.page-template-frontpage3-php .frontpage,
.page-template-frontpage3-php #container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Remove margins to bring content up */
.page-template-frontpage3-php #frontpage-info {
    margin-bottom: 10px !important;
    height: auto !important;
}

.page-template-frontpage3-php .frontpage {
    margin-top: 0 !important;
}

/* Custom Header Banner - matching login/register pages */
.custom-header-banner {
    width: 900px;
    height: 250px;
    background: url("/wp-content/uploads/2016/04/new-banner.png") no-repeat center/cover;
    border-radius: 25px;
    margin: 20px auto 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Responsive banner */
@media (max-width: 900px) {
    .custom-header-banner {
        width: 90%;
        max-width: 900px;
        height: 180px;
    }
}

/* Footer styling - matching login/register pages */
footer {
    background: #5FAFC9 !important;
    width: 100% !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

footer .footer-right {
    color: #ffffff !important;
    font-weight: 500;
    margin: 0 !important;
}

footer .footer-left {
    display: none;
}

/* ============================================
   Main Content Box - White Style (matching login/register)
   ============================================ */

/* White box container - matching login page */
.main-content-box {
    max-width: 466px;
    width: 466px;
    height: 380px;
    margin: 25px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 25px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    animation: fadeInUp 0.6s ease-out;
    box-sizing: border-box;
}

/* Logout button - matching login page submit button */
.logout-button {
    width: 100%;
    background: #5FAFC9 !important;
    color: #fff !important;
    border: none;
    padding: 15px;
    border-radius: 42px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    font-family: "DM Sans", sans-serif;
}

.logout-button:hover {
    background: #4a9ab3 !important;
}

/* ============================================
   Navigation Buttons - White Style (Under Banner)
   ============================================ */

/* Container for navigation buttons */
.nav-tabs-container {
    width: 900px;
    margin: 20px auto 0 auto;
    padding: 0;
}

/* Navigation buttons list */
.main-nav-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: nowrap;
}

.main-nav-tabs li {
    margin: 0;
    padding: 0;
}

/* Navigation button style */
.main-nav-tabs li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 240px;
    background: #ffffff;
    color: #666666;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.main-nav-tabs li a:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    color: #5FAFC9;
}

/* Navigation Icons - Individual Images */
.nav-icon {
    display: inline-block;
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-right: 8px;
    transition: filter 0.3s ease;
}

/* Change icon color to blue on hover */
.main-nav-tabs li a:hover .nav-icon {
    filter: brightness(0) saturate(100%) invert(58%) sepia(66%) saturate(427%) hue-rotate(154deg) brightness(94%) contrast(88%);
}

/* Notification badge */
.main-nav-tabs li a .badge {
    background: #ff4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    min-width: 18px;
    text-align: center;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .nav-tabs-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .main-nav-tabs {
        gap: 10px;
    }

    .main-nav-tabs li a {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* ============================================
   Custom Footer Bar - Unified Design
   ============================================ */

.custom-footer-bar {
    margin-top: auto;
    height: 60px;
    width: 100%;
    background: #5FAFC9;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Banner Overlay - Go to Home Page Button
   ============================================ */

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
    box-sizing: border-box;
}

.custom-header-banner {
    position: relative;
    overflow: hidden;
}

.custom-header-banner:hover .banner-overlay {
    opacity: 1;
}

.banner-content {
    text-align: center;
}

.banner-text {
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #27272D;
    margin: 0 0 20px 0;
}

.banner-button {
    display: inline-block;
    width: 130px;
    height: 30px;
    background: #fff;
    color: #27272D;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    line-height: 30px;
    transition: all 0.3s ease;
}

.banner-button:hover {
    background: #5FAFC9;
    color: #fff;
}

/* ============================================
   BuddyPress Profile Page Styles
   ============================================ */

/* Ensure body has light blue background on BuddyPress pages */
body.buddypress {
    background: #d6edf9 !important;
}

/* Remove white background from ALL parent containers */
body.buddypress #main,
#bp-default #main {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.buddypress #container,
body.buddypress #container,
#bp-default #container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Center using #buddypress wrapper */
#buddypress {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0 !important;
}

.buddypress #item-body,
.buddypress .item-body {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Remove shadows from all inner elements */
.buddypress #item-header,
.buddypress .item-header {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* White content box on profile pages - centered */
.buddypress #content {
    background: #fff !important;
    border-radius: 24px !important;
    padding: 30px !important;
    margin: 15px 0 11px 0 !important;
    width: 900px !important;
    max-width: 900px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
    flex-shrink: 0 !important;
}

/* Profile fields table alignment */
.profile-fields {
    border-collapse: collapse !important;
    width: 100% !important;
}

.profile-fields tr {
    line-height: 1.5 !important;
}

.profile-fields td {
    vertical-align: middle !important;
    padding: 10px 15px !important;
    border: none !important;
}

.profile-fields td.label {
    text-align: left !important;
    font-weight: 600 !important;
    width: 200px !important;
}

.profile-fields td.data {
    text-align: left !important;
    position: relative !important;
    top: 8px !important;
}

/* Hide unwanted navigation tabs on Settings page */
#item-nav #object-nav li#profile-personal-li,
#item-nav #object-nav li a[href*="/profile/"],
#item-nav #object-nav li a[href*="/events/"],
li#bp-user-profile,
li#bp-user-events,
li[id*="profile-"][id*="-personal-li"],
li[id*="events-"] {
    display: none !important;
}

/* Shift settings page container 150px to the right */
body.settings #content,
body.settings #buddypress {
    margin-left: 150px !important;
}

/* Change Save Changes button color to footer color on Settings page and Profile edit page */
body.settings input[type="submit"],
body.settings button[type="submit"],
body.bp-user input[type="submit"],
body.bp-user button[type="submit"] {
    background-color: #5FAFC9 !important;
    border: 1px solid #5FAFC9 !important;
    color: #ffffff !important;
    padding: 15px 40px !important;
    font-size: 18px !important;
    border-radius: 42px !important;
    cursor: pointer !important;
}

body.settings input[type="submit"]:hover,
body.settings button[type="submit"]:hover,
body.bp-user input[type="submit"]:hover,
body.bp-user button[type="submit"]:hover {
    background-color: #4a9bb0 !important;
    border-color: #4a9bb0 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* ============================================
   Settings Page Navigation Panels
   ============================================ */

/* Remove any background/border from #item-nav container */
body.settings #item-nav,
body.bp-settings #item-nav,
body[class*="settings"] #item-nav {
    background: none !important;
    border: none !important;
    margin: 0;
    padding: 0;
}

/* First panel: #object-nav (Settings/Notifications) */
body.settings #object-nav,
body.settings #object-nav2,
body.bp-settings #object-nav,
body.bp-settings #object-nav2,
body[class*="settings"] #object-nav,
body[class*="settings"] #object-nav2 {
    height: 8px;
    width: 100%;
    border: none !important;
    border-bottom: 2px solid #e0e0e0 !important;
    margin-bottom: 30px;
    margin-top: 0;
    position: relative;
    background: none !important;
    padding: 0;
    overflow: visible;
    border-radius: 0 !important;
}

body.settings #object-nav ul,
body.settings #object-nav2 ul {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: baseline;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.settings #object-nav ul li,
body.settings #object-nav2 ul li {
    margin: 0;
    padding: 0;
    float: none;
    background: none !important;
}

/* Force remove background from current/selected/hover states in #object-nav */
body.settings #object-nav ul li.current,
body.settings #object-nav ul li.selected,
body.settings #object-nav ul li:hover,
body.settings #object-nav2 ul li.current,
body.settings #object-nav2 ul li.selected,
body.settings #object-nav2 ul li:hover {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

body.settings #object-nav ul li a,
body.settings #object-nav2 ul li a {
    color: #999999;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    padding: 0 !important;
    background: none !important;
    border: none;
    display: inline-block;
}

/* Line under each tab in #object-nav */
body.settings #object-nav ul li a::after,
body.settings #object-nav2 ul li a::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
    transition: background-color 0.3s ease;
    z-index: 1;
}

/* Hover state for #object-nav */
body.settings #object-nav ul li a:hover,
body.settings #object-nav2 ul li a:hover {
    color: #000000;
    background: none !important;
}

body.settings #object-nav ul li a:hover::after,
body.settings #object-nav2 ul li a:hover::after {
    background-color: #000000;
}

/* Active/current tab in #object-nav */
body.settings #object-nav ul li.current a,
body.settings #object-nav ul li.selected a,
body.settings #object-nav2 ul li.current a,
body.settings #object-nav2 ul li.selected a {
    color: #000000;
    font-weight: 500;
    background: none !important;
}

body.settings #object-nav ul li.current a::after,
body.settings #object-nav ul li.selected a::after,
body.settings #object-nav2 ul li.current a::after,
body.settings #object-nav2 ul li.selected a::after {
    background-color: #000000;
}

/* Hide notification counters on Settings page */
body.settings #object-nav ul li a span,
body.settings #object-nav2 ul li a span {
    display: none;
}

/* Second panel: #subnav (General/Email) */
body.settings #subnav.item-list-tabs {
    height: 8px;
    width: 100%;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
    margin-top: 0;
    position: relative;
    background: none;
    padding: 0;
    overflow: visible;
    clear: both;
    display: block;
}

body.settings #subnav.item-list-tabs ul {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: baseline;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.settings #subnav.item-list-tabs ul li {
    margin: 0;
    padding: 0;
    float: none;
}

body.settings #subnav.item-list-tabs ul li a {
    color: #999999;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    padding: 0;
    background: none;
    border: none;
    display: inline-block;
}

/* Line under each tab in #subnav */
body.settings #subnav.item-list-tabs ul li a::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
    transition: background-color 0.3s ease;
    z-index: 1;
}

/* Hover state for #subnav */
body.settings #subnav.item-list-tabs ul li a:hover {
    color: #000000;
    background: none;
}

body.settings #subnav.item-list-tabs ul li a:hover::after {
    background-color: #000000;
}

/* Active/current tab in #subnav */
body.settings #subnav.item-list-tabs ul li.current a,
body.settings #subnav.item-list-tabs ul li.selected a {
    color: #000000;
    font-weight: 500;
    background: none;
}

body.settings #subnav.item-list-tabs ul li.current a::after,
body.settings #subnav.item-list-tabs ul li.selected a::after {
    background-color: #000000;
}

/* Keep old styles for bp-user pages (Profile pages) */
body.bp-user #object-nav,
body.bp-user #object-nav2 {
    background: #5FAFC9 !important;
    border: 2px solid #5FAFC9 !important;
    border-radius: 12px !important;
}

body.bp-user #object-nav ul li:hover,
body.bp-user #object-nav2 ul li:hover {
    background: #4a9bb0 !important;
}

body.bp-user #object-nav ul li.current,
body.bp-user #object-nav2 ul li.current {
    background: #4a9bb0 !important;
}

body.bp-user #object-nav ul li a span,
body.bp-user #object-nav2 ul li a span {
    background: #4a9bb0 !important;
    border: 1px solid #4a9bb0 !important;
}

/* Add spacing between password fields on Settings page */
body.settings #pass1,
body.bp-user #pass1 {
    margin-bottom: 5px !important;
}

/* Add horizontal spacing between notification tables */
body.notifications table.notification-settings,
body.bp-user table.notification-settings {
    margin-right: 5px !important;
    margin-bottom: 5px !important;
    border-spacing: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    border-collapse: separate !important;
}

/* Change table header color to footer color on notifications page */
body.notifications th,
body.bp-user th {
    background: #5FAFC9 !important;
}

/* Hide first column (icon column) in notification tables */
body.notifications table.notification-settings th:first-child,
body.notifications table.notification-settings td:first-child,
body.bp-user table.notification-settings th:first-child,
body.bp-user table.notification-settings td:first-child {
    display: none !important;
}

/* Round corners of table cells */
body.notifications table.notification-settings tr:first-child th:nth-child(2),
body.bp-user table.notification-settings tr:first-child th:nth-child(2) {
    border-top-left-radius: 6px !important;
}

body.notifications table.notification-settings tr:first-child th:last-child,
body.bp-user table.notification-settings tr:first-child th:last-child {
    border-top-right-radius: 6px !important;
}

body.notifications table.notification-settings tr:last-child td:nth-child(2),
body.bp-user table.notification-settings tr:last-child td:nth-child(2) {
    border-bottom-left-radius: 6px !important;
}

body.notifications table.notification-settings tr:last-child td:last-child,
body.bp-user table.notification-settings tr:last-child td:last-child {
    border-bottom-right-radius: 6px !important;
}

/* Style delete account button */
#delete-account-button {
    padding: 15px 40px !important;
    font-size: 18px !important;
    border-radius: 8px !important;
}

/* ============================================
   Profile Edit Page Design - Following Design System
   ============================================ */

/* Profile edit form container */
body.bp-user #profile-edit-form {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* Profile edit heading - outside gray box */
body.bp-user #profile-edit-form h4 {
    position: absolute;
    top: -55px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: "DM Sans", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Edit field container */
body.bp-user #profile-edit-form .editfield {
    margin-bottom: 20px;
}

/* Labels */
body.bp-user #profile-edit-form label {
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #27272D;
    margin-bottom: 8px;
}

/* Text inputs and textareas */
body.bp-user #profile-edit-form input[type="text"],
body.bp-user #profile-edit-form input[type="email"],
body.bp-user #profile-edit-form input[type="url"],
body.bp-user #profile-edit-form textarea {
    width: 100%;
    padding: 14px 20px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: #27272D;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

/* Textarea specific styling */
body.bp-user #profile-edit-form textarea {
    border-radius: 24px;
    min-height: 100px;
    resize: vertical;
}

/* Input focus state */
body.bp-user #profile-edit-form input[type="text"]:focus,
body.bp-user #profile-edit-form input[type="email"]:focus,
body.bp-user #profile-edit-form input[type="url"]:focus,
body.bp-user #profile-edit-form textarea:focus {
    border-color: #5FAFC9;
    box-shadow: 0 0 0 3px rgba(95,175,201,0.1);
}

/* Select dropdowns */
body.bp-user #profile-edit-form select {
    width: 100%;
    padding: 14px 20px;
    padding-right: 50px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: #27272D;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360CBF6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 22px center;
    background-size: 20px;
}

body.bp-user #profile-edit-form select:focus {
    border-color: #5FAFC9;
}

/* Radio buttons container */
body.bp-user #profile-edit-form .radio {
    margin-bottom: 20px;
}

body.bp-user #profile-edit-form .radio .label {
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #27272D;
    margin-bottom: 10px;
}

body.bp-user #profile-edit-form .radio label {
    display: inline-block;
    margin-right: 20px;
    font-weight: 400;
}

/* Radio buttons - custom styled like donation page */
body.bp-user #profile-edit-form .radio {
    margin-bottom: 10px;
}

body.bp-user #profile-edit-form .radio label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #27272D;
}

body.bp-user #profile-edit-form .radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

body.bp-user #profile-edit-form .radio label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.2s ease;
}

body.bp-user #profile-edit-form .radio input[type="radio"]:checked + label::before,
body.bp-user #profile-edit-form .radio label:has(input[type="radio"]:checked)::before {
    background: #5FAFC9;
    border-color: #5FAFC9;
    box-shadow: inset 0 0 0 2px #fff;
}

/* Checkbox container */
body.bp-user #profile-edit-form .checkbox {
    margin-bottom: 20px;
}

body.bp-user #profile-edit-form .checkbox .label {
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #27272D;
    margin-bottom: 10px;
}

body.bp-user #profile-edit-form .checkbox label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
}

/* Date selector */
body.bp-user #profile-edit-form .datebox {
    margin-bottom: 20px;
}

body.bp-user #profile-edit-form .datebox label {
    margin-bottom: 10px;
}

body.bp-user #profile-edit-form .datebox select {
    width: auto;
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    border-radius: 25px;
}

/* Description text */
body.bp-user #profile-edit-form .description {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    color: #a0a0a0;
    margin-top: 5px;
}

/* Submit button container */
body.bp-user #profile-edit-form .submit {
    margin-top: 30px;
}

/* Submit button */
body.bp-user #profile-edit-form input[type="submit"] {
    width: 100%;
    padding: 15px;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #5FAFC9;
    border: none;
    border-radius: 42px;
    cursor: pointer;
    transition: background 0.3s;
}

body.bp-user #profile-edit-form input[type="submit"]:hover {
    background: #4a9ab3;
}

/* Required field indicator */
body.bp-user #profile-edit-form .required {
    color: #c62828;
}

/* Responsive design */
@media (max-width: 600px) {
    body.bp-user #profile-edit-form {
        margin: 20px auto;
        padding: 20px;
        border-radius: 16px;
    }

    body.bp-user #profile-edit-form h4 {
        font-size: 20px;
    }
}

/* ============================================
   Profile Navigation Tabs
   ============================================ */

/* Hide profile photo and name on profile pages - they will be implemented in a different location */
body.bp-user.profile #item-header-avatar,
body.bp-user.profile #item-header-content {
    display: none;
}

/* Gray content box below navigation */
body.bp-user .profile {
    max-width: 466px;
    width: 100%;
    margin: 0 auto;
    margin-top: 80px;
    background: #f5f5f5;
    border-radius: 24px;
    padding: 30px;
    padding-top: 15px;
    position: relative;
}

/* "View My Profile" title - outside gray box */
body.bp-user .profile .bp-widget h4 {
    position: absolute;
    top: -55px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Navigation container with horizontal line */
body.bp-user #subnav.item-list-tabs {
    height: 8px;
    width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
    margin-top: -15px;
    position: relative;
    background: none;
    padding: 0;
    overflow: visible;
}

/* Tabs list container */
body.bp-user #subnav.item-list-tabs ul {
    position: absolute;
    bottom: 6px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-around;
    align-items: baseline;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual tab items */
body.bp-user #subnav.item-list-tabs ul li {
    margin: 0;
    padding: 0;
    float: none;
}

/* Tab links */
body.bp-user #subnav.item-list-tabs ul li a {
    color: #999999;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    padding: 0;
    background: none;
    border: none;
    display: inline-block;
}

/* Line under each tab */
body.bp-user #subnav.item-list-tabs ul li a::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
    transition: background-color 0.3s ease;
    z-index: 1;
}

/* Hover state */
body.bp-user #subnav.item-list-tabs ul li a:hover {
    color: #000000;
    background: none;
}

body.bp-user #subnav.item-list-tabs ul li a:hover::after {
    background-color: #000000;
}

/* Active/current tab */
body.bp-user #subnav.item-list-tabs ul li.current a,
body.bp-user #subnav.item-list-tabs ul li.selected a {
    color: #000000;
    font-weight: 500;
    background: none;
}

body.bp-user #subnav.item-list-tabs ul li.current a::after,
body.bp-user #subnav.item-list-tabs ul li.selected a::after {
    background-color: #000000;
}

/* Responsive design for tabs */
@media (max-width: 768px) {
    body.bp-user #subnav.item-list-tabs ul {
        gap: 20px;
    }

    body.bp-user #subnav.item-list-tabs ul li a {
        font-size: 13px;
    }
}

/* ============================================
   Profile Photo Page
   ============================================ */

/* Profile Photo container */
.profile-photo-container {
    text-align: center;
    padding: 40px 20px;
}

/* Avatar */
.profile-photo-avatar {
    margin-bottom: 20px;
}

.profile-photo-avatar img {
    border-radius: 50%;
    border: 4px solid #5FAFC9;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* User name */
.profile-photo-name {
    font-family: "DM Sans", sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

/* Username */
.profile-photo-username {
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    color: #999;
    font-weight: 400;
}

/* ============================================
   Change Avatar Page
   ============================================ */

/* Change Picture heading - outside gray box */
body.bp-user .profile > h4:first-child {
    position: absolute;
    top: -55px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: "DM Sans", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Second gray box for avatar and name - below the form */
.profile-avatar-display {
    max-width: 466px;
    width: 100%;
    margin: 15px auto 0;
    background: #f5f5f5;
    border-radius: 24px;
    padding: 20px 30px 120px 30px;
    text-align: center;
}

.profile-avatar-display img {
    border-radius: 50%;
    border: 4px solid #5FAFC9;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.profile-avatar-display .user-name {
    font-family: "DM Sans", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.profile-avatar-display .user-username {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    color: #999;
    font-weight: 400;
}

/* ============================================
   WooCommerce Single Product Page
   ============================================ */

/* Light blue background for single product pages */
body.single-product {
    background: #d6edf9 !important;
}

/* White container box - matching other pages */
body.single-product #content {
    max-width: 900px;
    width: 900px;
    margin: 15px auto 11px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    box-sizing: border-box;
    float: none !important;
}

/* Remove default WooCommerce container backgrounds */
body.single-product #container {
    background: transparent !important;
    border: none !important;
}

/* Product layout: 65% image, 35% info */
body.single-product .product {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 20px;
    align-items: stretch;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Product image section - NO extra margins */
body.single-product .woocommerce-product-gallery {
    background: #f5f5f5 !important;
    border-radius: 24px !important;
    padding: 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.single-product .woocommerce-product-gallery__wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product .woocommerce-product-gallery img {
    border-radius: 16px !important;
    width: 100% !important;
    height: auto !important;
}

/* Product info section - fill entire yellow area, NO margins */
body.single-product .summary,
body.single-product div.product div.summary {
    grid-column: 2;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Product title */
body.single-product .product_title {
    font-family: "DM Sans", sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Product price */
body.single-product .price {
    font-family: "DM Sans", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #5FAFC9;
    margin-bottom: 30px;
    display: block;
}

body.single-product .price .amount {
    color: #5FAFC9;
}

/* Product description */
body.single-product .woocommerce-product-details__short-description {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

/* Add to cart form - push to bottom and shift right 120px */
body.single-product .cart {
    margin-top: auto;
    margin-bottom: 0;
    margin-left: 120px;
}

/* Quantity input */
body.single-product .quantity input.qty {
    width: 80px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 42px;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    text-align: center;
    margin-right: 15px;
}

/* Add to Cart button - FORCE blue color, smaller height */
body.single-product .single_add_to_cart_button,
body.single-product button.single_add_to_cart_button,
body.single-product .cart button.single_add_to_cart_button,
body.single-product form.cart button[type="submit"],
body.single-product .woocommerce-variation-add-to-cart button,
.single-product button.single_add_to_cart_button.button,
.woocommerce .single-product button.single_add_to_cart_button,
body.woocommerce.single-product button.single_add_to_cart_button.alt {
    background: #5FAFC9 !important;
    background-color: #5FAFC9 !important;
    background-image: none !important;
    color: #ffffff !important;
    padding: 12px 30px !important;
    height: auto !important;
    line-height: normal !important;
    border-radius: 42px !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: 1px solid #5FAFC9 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

body.single-product .single_add_to_cart_button:hover,
body.single-product button.single_add_to_cart_button:hover,
body.single-product .cart button.single_add_to_cart_button:hover,
body.single-product form.cart button[type="submit"]:hover,
.single-product button.single_add_to_cart_button.button:hover,
body.woocommerce.single-product button.single_add_to_cart_button.alt:hover {
    background: #4a95ab !important;
    background-color: #4a95ab !important;
    background-image: none !important;
    border-color: #4a95ab !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(95, 175, 201, 0.4) !important;
    color: #ffffff !important;
}

/* Product meta (SKU, Categories, Tags) */
body.single-product .product_meta {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: #999;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

body.single-product .product_meta span {
    display: block;
    margin-bottom: 8px;
}

/* Product tabs (Description, Additional Info, Reviews) - centered with standard width */
body.single-product .woocommerce-tabs {
    margin-top: 40px;
    background: #f5f5f5;
    border-radius: 24px;
    padding: 30px;
    grid-column: 1 / -1;
    max-width: 466px;
    width: 466px;
    margin-left: auto;
    margin-right: auto;
}

body.single-product .woocommerce-tabs .tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}

body.single-product .woocommerce-tabs .tabs li {
    margin: 0;
    padding: 0;
    background: none !important;
}

body.single-product .woocommerce-tabs .tabs li a {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #999;
    text-decoration: none;
    padding-bottom: 15px;
    display: block;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

body.single-product .woocommerce-tabs .tabs li a:hover {
    color: #333;
}

body.single-product .woocommerce-tabs .tabs li.active a {
    color: #333;
    border-bottom-color: #5FAFC9;
}

body.single-product .woocommerce-tabs .panel {
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    body.single-product #content {
        width: 90%;
        margin: 20px auto;
        padding: 30px 25px;
    }

    body.single-product .product {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    body.single-product .summary {
        grid-column: 1;
    }

    body.single-product .product_title {
        font-size: 24px;
    }

    body.single-product .price {
        font-size: 28px;
    }
}

/* ============================================
   WooCommerce Button Override - MAXIMUM PRIORITY
   ============================================ */

/* Nuclear option: override ALL button styles with blue - SMALLER */
body.single-product button.single_add_to_cart_button.button.alt,
body.woocommerce.single-product div.product form.cart .button,
.single-product .single_add_to_cart_button.button.alt.wp-element-button,
body.single-product .cart .single_add_to_cart_button {
    background: #5FAFC9 !important;
    background-color: #5FAFC9 !important;
    background-image: none !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    height: auto !important;
    min-height: auto !important;
    line-height: 1.2 !important;
    border-radius: 42px !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 1px solid #5FAFC9 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

body.single-product button.single_add_to_cart_button.button.alt:hover,
body.woocommerce.single-product div.product form.cart .button:hover,
.single-product .single_add_to_cart_button.button.alt.wp-element-button:hover,
body.single-product .cart .single_add_to_cart_button:hover {
    background: #4a95ab !important;
    background-color: #4a95ab !important;
    background-image: none !important;
    border-color: #4a95ab !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(95, 175, 201, 0.4) !important;
    color: #ffffff !important;
}

/* ===================================
   CART PAGE STYLING
   =================================== */

/* OVERRIDE WOOCOMMERCE RESPONSIVE STYLES - Force table layout */
body.woocommerce-cart table.shop_table_responsive thead {
    display: table-header-group !important;
}

body.woocommerce-cart table.shop_table_responsive tbody {
    display: table-row-group !important;
}

body.woocommerce-cart table.shop_table_responsive tr {
    display: table-row !important;
}

body.woocommerce-cart table.shop_table_responsive thead th,
body.woocommerce-cart table.shop_table_responsive tbody td {
    display: table-cell !important;
}

/* Remove the ::before content that adds data-title */
body.woocommerce-cart table.shop_table_responsive tr td::before {
    display: none !important;
}

/* Fix text alignment - override responsive styles */
body.woocommerce-cart table.shop_table_responsive tr td {
    text-align: center !important;
}

body.woocommerce-cart table.shop_table_responsive tr td.product-name {
    text-align: left !important;
}

/* White container for cart page - 900px */
body.woocommerce-cart #content {
    max-width: 900px !important;
    width: 900px !important;
    margin: 15px auto 11px auto !important;
    background: #fff !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    padding: 40px 30px !important;
    box-sizing: border-box !important;
    float: none !important;
}

/* Cart table styling */
body.woocommerce-cart .woocommerce table.shop_table {
    background: #f5f5f5 !important;
    border-radius: 24px !important;
    border: 2px solid #f5f5f5 !important;
    margin-bottom: 30px !important;
    overflow: hidden !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* Table header */
body.woocommerce-cart .woocommerce table.shop_table thead {
    background: #5FAFC9 !important;
    color: #ffffff !important;
}

body.woocommerce-cart .woocommerce table.shop_table thead th {
    background: #5FAFC9 !important;
    color: #ffffff !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 15px !important;
    border: none !important;
    text-align: center !important;
}

body.woocommerce-cart .woocommerce table.shop_table thead th.product-name {
    text-align: left !important;
}

/* Round top corners of table header */
body.woocommerce-cart .woocommerce table.shop_table thead tr th:first-child {
    border-top-left-radius: 22px !important;
}

body.woocommerce-cart .woocommerce table.shop_table thead tr th:last-child {
    border-top-right-radius: 22px !important;
}

/* Table body */
body.woocommerce-cart .woocommerce table.shop_table tbody td {
    background: #ffffff !important;
    border: 1px solid #f5f5f5 !important;
    padding: 20px 15px !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    vertical-align: middle !important;
}

/* Round bottom corners of last table row */
body.woocommerce-cart .woocommerce table.shop_table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 22px !important;
}

body.woocommerce-cart .woocommerce table.shop_table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 22px !important;
}

/* Product thumbnail */
body.woocommerce-cart .woocommerce table.shop_table .product-thumbnail img {
    border-radius: 12px !important;
    max-width: 80px !important;
    height: auto !important;
}

/* Product name */
body.woocommerce-cart .woocommerce table.shop_table .product-name a {
    color: #333 !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.woocommerce-cart .woocommerce table.shop_table .product-name a:hover {
    color: #5FAFC9 !important;
}

/* Product price */
body.woocommerce-cart .woocommerce table.shop_table .product-price,
body.woocommerce-cart .woocommerce table.shop_table .product-subtotal {
    color: #5FAFC9 !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* Column widths */
body.woocommerce-cart .woocommerce table.shop_table thead th.product-remove,
body.woocommerce-cart .woocommerce table.shop_table tbody td.product-remove {
    width: 50px !important;
}

body.woocommerce-cart .woocommerce table.shop_table thead th.product-thumbnail,
body.woocommerce-cart .woocommerce table.shop_table tbody td.product-thumbnail {
    width: 100px !important;
}

body.woocommerce-cart .woocommerce table.shop_table thead th.product-name,
body.woocommerce-cart .woocommerce table.shop_table tbody td.product-name {
    width: auto !important;
}

/* Force show Price column */
body.woocommerce-cart table.shop_table thead th.product-price,
body.woocommerce-cart table.shop_table tbody td.product-price,
body.woocommerce-cart table.shop_table_responsive thead th.product-price,
body.woocommerce-cart table.shop_table_responsive tbody td.product-price {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    text-align: center !important;
    display: table-cell !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Force show Quantity column */
body.woocommerce-cart table.shop_table thead th.product-quantity,
body.woocommerce-cart table.shop_table tbody td.product-quantity,
body.woocommerce-cart table.shop_table_responsive thead th.product-quantity,
body.woocommerce-cart table.shop_table_responsive tbody td.product-quantity {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    text-align: center !important;
    display: table-cell !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Override responsive hiding */
@media (max-width: 768px) {
    body.woocommerce-cart table.shop_table_responsive thead th.product-price,
    body.woocommerce-cart table.shop_table_responsive tbody td.product-price,
    body.woocommerce-cart table.shop_table_responsive thead th.product-quantity,
    body.woocommerce-cart table.shop_table_responsive tbody td.product-quantity {
        display: table-cell !important;
    }
}

body.woocommerce-cart .woocommerce table.shop_table thead th.product-subtotal,
body.woocommerce-cart .woocommerce table.shop_table tbody td.product-subtotal {
    width: 80px !important;
    text-align: center !important;
}

/* Quantity input */
body.woocommerce-cart .woocommerce table.shop_table .quantity input.qty {
    width: 60px !important;
    height: 40px !important;
    border-radius: 20px !important;
    border: 2px solid #5FAFC9 !important;
    text-align: center !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* Remove button */
body.woocommerce-cart .woocommerce table.shop_table .product-remove a {
    background: #f5f5f5 !important;
    color: #333 !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

body.woocommerce-cart .woocommerce table.shop_table .product-remove a:hover {
    background: #5FAFC9 !important;
    color: #ffffff !important;
}

/* Hide empty action row at bottom of cart table */
body.woocommerce-cart .woocommerce table.shop_table .actions {
    display: none !important;
}

/* Cart totals section */
body.woocommerce-cart .cart-collaterals {
    width: 100% !important;
    float: none !important;
    margin-top: 30px !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
    float: none !important;
    width: 100% !important;
    background: #f5f5f5 !important;
    border-radius: 24px !important;
    padding: 30px !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .cart_totals h2 {
    font-family: "DM Sans", sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 20px !important;
}

body.woocommerce-cart .cart_totals table {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: none !important;
    margin-bottom: 20px !important;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
    padding: 15px !important;
    border: none !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 16px !important;
}

body.woocommerce-cart .cart_totals table th {
    color: #333 !important;
    font-weight: 600 !important;
}

body.woocommerce-cart .cart_totals table td {
    color: #5FAFC9 !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

/* Hide Update Cart button */
body.woocommerce-cart .woocommerce button[name="update_cart"] {
    display: none !important;
}

/* Proceed to Checkout button */
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: #5FAFC9 !important;
    background-color: #5FAFC9 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 42px !important;
    padding: 15px 40px !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-block !important;
    width: 100% !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #4a95ab !important;
    background-color: #4a95ab !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(95, 175, 201, 0.4) !important;
}

/* Actions section (Update Cart) */
body.woocommerce-cart .woocommerce .actions {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Hide coupon form on Cart and Checkout pages */
body.woocommerce-cart .woocommerce .coupon,
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
    display: none !important;
}

body.woocommerce-checkout form.checkout_coupon {
    display: none !important;
}

/* Responsive design for Cart page */
@media (max-width: 768px) {
    body.woocommerce-cart #content {
        width: 100% !important;
        margin: 10px !important;
        padding: 20px 15px !important;
        border-radius: 16px !important;
    }

    body.woocommerce-cart .woocommerce table.shop_table {
        font-size: 12px !important;
    }

    body.woocommerce-cart .woocommerce table.shop_table thead th {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }

    body.woocommerce-cart .woocommerce table.shop_table tbody td {
        padding: 15px 10px !important;
        font-size: 12px !important;
    }

    body.woocommerce-cart .woocommerce table.shop_table .product-thumbnail img {
        max-width: 60px !important;
    }

    body.woocommerce-cart .woocommerce table.shop_table .product-name a {
        font-size: 14px !important;
    }

    body.woocommerce-cart .cart-collaterals .cart_totals {
        padding: 20px 15px !important;
    }
}

/* ===================================
   CHECKOUT PAGE STYLING
   =================================== */

/* White container for checkout page - 900px */
body.woocommerce-checkout #content {
    max-width: 900px !important;
    width: 900px !important;
    margin: 15px auto 11px auto !important;
    background: #fff !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    padding: 40px 30px !important;
    box-sizing: border-box !important;
    float: none !important;
}

/* Checkout form layout - single column like profile page */
body.woocommerce-checkout .woocommerce {
    display: block !important;
}

body.woocommerce-checkout .woocommerce-checkout {
    display: flex !important;
    flex-direction: column !important;
    gap: 80px !important;
    align-items: center !important;
}

/* Billing section - gray box with title outside */
body.woocommerce-checkout .col2-set {
    width: 466px !important;
    max-width: 466px !important;
    float: none !important;
    margin: 0 !important;
    position: relative !important;
    margin-top: 80px !important;
}

/* Hide col-1 and col-2 wrappers - make billing fields direct child */
body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Hide Additional information inside col2-set */
body.woocommerce-checkout .col2-set .woocommerce-additional-fields {
    display: none !important;
}

body.woocommerce-checkout .woocommerce-billing-fields {
    background: #f5f5f5 !important;
    border-radius: 24px !important;
    padding: 30px !important;
    padding-top: 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    position: relative !important;
}

/* Billing heading - outside gray box */
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout h3#billing_details {
    position: absolute !important;
    top: -55px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* Additional information section - gray box with title outside */
body.woocommerce-checkout .woocommerce-checkout > .woocommerce-additional-fields {
    display: block !important;
    width: 466px !important;
    max-width: 466px !important;
    float: none !important;
    margin: 0 auto !important;
    background: #f5f5f5 !important;
    border-radius: 24px !important;
    padding: 30px !important;
    padding-top: 15px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Additional information heading - outside gray box */
body.woocommerce-checkout .woocommerce-additional-fields h3 {
    position: absolute !important;
    top: -55px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* Order review section - gray box with title outside */
body.woocommerce-checkout #order_review_heading {
    position: absolute !important;
    top: -55px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

body.woocommerce-checkout #order_review {
    width: 466px !important;
    max-width: 466px !important;
    background: #f5f5f5 !important;
    border-radius: 24px !important;
    padding: 30px !important;
    padding-top: 15px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Form fields */
body.woocommerce-checkout .woocommerce-billing-fields .form-row,
body.woocommerce-checkout .woocommerce-checkout .form-row {
    margin-bottom: 20px !important;
}

body.woocommerce-checkout .form-row label {
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .form-row textarea {
    width: 100% !important;
    height: 50px !important;
    border-radius: 50px !important;
    border: 2px solid #5FAFC9 !important;
    padding: 0 20px !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    box-sizing: border-box !important;
    background: #fff !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Custom arrow for select dropdowns */
body.woocommerce-checkout .form-row select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%235FAFC9" d="M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    padding-right: 45px !important;
}

body.woocommerce-checkout .form-row textarea {
    border-radius: 24px !important;
    height: 100px !important;
    padding: 15px 20px !important;
    resize: vertical !important;
}

body.woocommerce-checkout .form-row input.input-text:focus,
body.woocommerce-checkout .form-row select:focus,
body.woocommerce-checkout .form-row textarea:focus {
    outline: none !important;
    border-color: #4a95ab !important;
    box-shadow: 0 0 0 3px rgba(95, 175, 201, 0.1) !important;
}

/* Form row layout - first and last in one row (like First name / Last name) */
body.woocommerce-checkout .form-row-first,
body.woocommerce-checkout .form-row-last {
    width: 48% !important;
    float: left !important;
    clear: none !important;
}

body.woocommerce-checkout .form-row-last {
    float: right !important;
}

/* Card Number field - full width */
body.woocommerce-checkout #payment .payment_box .form-row:nth-of-type(1) {
    width: 100% !important;
    clear: both !important;
    margin-bottom: 20px !important;
}

/* Expiry field - left side, 24% */
body.woocommerce-checkout #payment .payment_box .form-row:nth-of-type(2) {
    width: 24% !important;
    float: left !important;
    clear: none !important;
    margin-bottom: 20px !important;
    margin-right: 2% !important;
}

/* CVV field - right side, 24% */
body.woocommerce-checkout #payment .payment_box .form-row:nth-of-type(3) {
    width: 24% !important;
    float: left !important;
    clear: none !important;
    margin-bottom: 20px !important;
}

/* Clear float after payment fields */
body.woocommerce-checkout #payment .payment_box::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

body.woocommerce-checkout #payment .payment_box .form-row input {
    width: 100% !important;
    height: 50px !important;
    border-radius: 50px !important;
    border: 2px solid #5FAFC9 !important;
    padding: 0 20px !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    box-sizing: border-box !important;
    background: #fff !important;
}

body.woocommerce-checkout #payment .payment_box .form-row label {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
}

/* Order review table - simple, no nested boxes */
body.woocommerce-checkout .woocommerce-checkout-review-order-table {
    background: transparent !important;
    border: none !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
    background: transparent !important;
    color: #333 !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 0 !important;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    text-align: left !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody td,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    padding: 15px 0 !important;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    background: transparent !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th {
    font-weight: 600 !important;
    color: #333 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal td,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
    color: #5FAFC9 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px !important;
}

/* Payment section - simple, no white boxes */
body.woocommerce-checkout #payment {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 20px !important;
}

body.woocommerce-checkout #payment ul.payment_methods {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    list-style: none !important;
}

body.woocommerce-checkout #payment ul.payment_methods li {
    background: transparent !important;
    border: none !important;
    margin-bottom: 15px !important;
    padding: 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li label {
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

body.woocommerce-checkout #payment div.payment_box {
    background: transparent !important;
    border: none !important;
    padding: 10px 0 !important;
    margin: 10px 0 !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 13px !important;
    color: #666 !important;
}

/* Hide payment box and description if empty */
body.woocommerce-checkout #payment div.payment_box:empty,
body.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

body.woocommerce-checkout #payment div.payment_box p:empty {
    display: none !important;
}

/* Place Order button */
body.woocommerce-checkout #payment #place_order {
    background: #5FAFC9 !important;
    background-color: #5FAFC9 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 42px !important;
    padding: 15px 40px !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

body.woocommerce-checkout #payment #place_order:hover {
    background: #4a95ab !important;
    background-color: #4a95ab !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(95, 175, 201, 0.4) !important;
}

/* Privacy policy text */
body.woocommerce-checkout .woocommerce-privacy-policy-text {
    font-family: "DM Sans", sans-serif !important;
    font-size: 12px !important;
    color: #666 !important;
    margin-top: 15px !important;
}

/* Terms and conditions */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-top: 15px !important;
}

body.woocommerce-checkout .woocommerce-terms-and-conditions {
    background: #f9f9f9 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 13px !important;
    color: #666 !important;
    max-height: 200px !important;
    overflow-y: auto !important;
}

/* Responsive design for Checkout page */
@media (max-width: 768px) {
    body.woocommerce-checkout #content {
        width: 100% !important;
        margin: 10px !important;
        padding: 20px 15px !important;
        border-radius: 16px !important;
    }

    body.woocommerce-checkout .col2-set,
    body.woocommerce-checkout .woocommerce-additional-fields,
    body.woocommerce-checkout #order_review_heading,
    body.woocommerce-checkout #order_review {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.woocommerce-checkout .woocommerce-billing-fields,
    body.woocommerce-checkout .woocommerce-additional-fields,
    body.woocommerce-checkout #order_review {
        padding: 20px 15px !important;
    }
}

/* ===================================
   SHOP/CART NAVIGATION
   =================================== */

/* Shop/Cart navigation container */
#shop-cart-nav.item-list-tabs {
    width: 100%;
    max-width: 900px;
    margin: 15px auto 30px auto;
    position: relative;
    background: none;
    padding: 0;
    overflow: visible;
    clear: both;
    display: block;
}

/* Gray line spanning full width */
#shop-cart-nav.item-list-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 0;
}

/* Black highlight line - left half for Shop (when selected) */
#shop-cart-nav.item-list-tabs.shop-active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 2px;
    background-color: #000000;
    z-index: 1;
}

/* Black highlight line - right half for Cart (when selected) */
#shop-cart-nav.item-list-tabs.cart-active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 2px;
    background-color: #000000;
    z-index: 1;
}

#shop-cart-nav.item-list-tabs ul {
    position: relative;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    list-style: none;
    margin: 0;
    padding: 0 0 12px 0;
}

#shop-cart-nav.item-list-tabs ul li {
    margin: 0;
    padding: 0;
    float: none;
    width: 50%;
    text-align: center;
}

#shop-cart-nav.item-list-tabs ul li a {
    color: #999999;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    padding: 0;
    background: none;
    border: none;
    display: inline-block;
}

/* Hover state */
#shop-cart-nav.item-list-tabs ul li a:hover {
    color: #000000;
    background: none;
}

/* Selected (active) tab */
#shop-cart-nav.item-list-tabs ul li.selected a {
    color: #000000;
    font-weight: 400;
}
