/* Basic styles for the tab navigation */
#iafwmc-plugin-tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    background-color: #c6c6c600; /* Subtle background color */
    /* margin-bottom: 15px;  */
    /* align-items: center; */
    flex-wrap: wrap;
}

.iafwmc-tab {
    padding: 9px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    margin-right: 5px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
    text-decoration: none;
    background-color: #0073aad4;
    color: white;
    min-width: 42px;
    text-align: center;
}

.iafwmc-tab-active {
    font-weight: bold; /* Makes the text bold */
    border: none; /* Removes any previous borders */
    /* background-color: #005785;  */
    color: #ffffff; /* Text color to match the background */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow for depth */
    transition: all 0.3s ease; /* Smooth transition for hover or state changes */
    padding-left: 15px; /* Adds space between the text and the left border */
    position: relative; /* Ensures the pseudo-element positions relative to this tab */
}

.iafwmc-tab-active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #dfdfdf transparent;
    z-index: 1;
    bottom: -1%;
}




.iafwmc-tab:hover {
    background-color: #d1e8ff;
    color: #005b8a;
    border-color: #005b8a;
}

/* Styling for the tab content */
.iafwmc-tab-content {
    padding: 25px;
    border-left: 1px solid #ccc;
    border-top: none; /* Aligns border with tabs */
    background-color: #c6c6c600; /* Transparent background for tab content */
    /* box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1); */
    /* min-height: 500px;   */
    height: auto;  /* Height auto to adjust if content exceeds 500px */
    box-sizing: border-box;
    /* border-radius: 0 0 10px 10px;  */
}

/* Adjustments for better responsiveness */
@media (max-width: 768px) {
    .iafwmc-tab {
        padding: 10px 15px;
        font-size: 14px;
    }

    .iafwmc-tab-content {
        padding: 20px;
    }
}

.iafwmc-plugin-header {
    /* background-color: #005a8c; */
    /* color: #ffffff; */
    /* padding: 5px 6px; */
    float: right;
    font-size: 14px;
    text-align: left;
    border-radius: 8px;
    /* margin: 11px 0; */
    /* box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); */
    display: flex;
    align-items: center;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.iafwmc-logo-container {
    background-image: url('../img/mailchimp-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 105px;
    height: 28px;
}

.iafwmc-plugin-logo {
    height: 24px; /* Adjust logo size */
    width: auto; /* Keep aspect ratio */
}

.iafwmc-plugin-header .iafwmc-main-message {
    font-weight: bold;
    font-size: 15px;
}

.iafwmc-plugin-header p {
    margin: 0;
}
.iafwmc-span-header
{
    font-size: 20px;
    font-weight: 500;
}

/* ── Help dropdown ── */
.iafwmc-help-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.iafwmc-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 10px 0 8px;
    border-radius: 20px;
    background: #2271b1;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 26px;
    box-sizing: border-box;
    transition: background 0.2s;
}

.iafwmc-help-btn:hover,
.iafwmc-help-btn[aria-expanded="true"] {
    background: #135e96;
}

.iafwmc-help-btn .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #fff;
    line-height: 1;
    vertical-align: middle;
}

.iafwmc-help-btn-label {
    color: #fff;
    white-space: nowrap;
    line-height: 1;
}

.iafwmc-help-copy-btn {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #a7aaad;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.iafwmc-help-copy-btn:hover {
    color: #2271b1;
    border-color: #2271b1;
    background: #f0f6fc;
}

.iafwmc-help-copy-btn.iafwmc-copied {
    color: #00a32a;
    border-color: #00a32a;
    background: #f0faf0;
}

.iafwmc-help-copy-btn svg {
    display: block;
    flex-shrink: 0;
}

.iafwmc-help-copy-btn .iafwmc-check-icon {
    display: none;
}

.iafwmc-help-copy-btn.iafwmc-copied .iafwmc-copy-icon {
    display: none;
}

.iafwmc-help-copy-btn.iafwmc-copied .iafwmc-check-icon {
    display: block;
}

.iafwmc-help-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 99999;
}

.iafwmc-help-dropdown[hidden] {
    display: none;
}

.iafwmc-help-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #1d2327;
    border-bottom: 1px solid #f0f0f1;
    transition: background 0.15s;
}

.iafwmc-help-item:last-of-type {
    border-bottom: none;
}

.iafwmc-help-item:hover {
    background: #f6f7f7;
    color: #1d2327;
    text-decoration: none;
}

.iafwmc-help-item-icon {
    color: #2271b1;
    flex-shrink: 0;
}

.iafwmc-help-item-text {
    display: flex;
    flex-direction: column;
}

.iafwmc-help-item-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.iafwmc-help-item-sub {
    font-size: 11px;
    color: #787c82;
    line-height: 1.3;
    margin-top: 1px;
}

.iafwmc-help-version {
    text-align: center;
    font-size: 11px;
    color: #a7aaad;
    padding: 6px 14px;
    border-top: 1px solid #f0f0f1;
}