/* Basic styling for the subscriptions container */
#plaid-subscriptions {
  margin: 1em 0;
  font-family: Poppins, sans-serif;
}

/* Styling for the title */
#plaid-subscriptions h3 {
  color: #333;
  margin-bottom: 0.5em;
  display: none;
}

/* Styling for the outflow list */
/* The outflow list */
.plaid-outflow-list {
  list-style: none;
  margin: 1em 0;
  padding: 0;
}
div#plaid-sync-container{
    display: none;
}

.plaid-outflow-item {
    background: #1a1c1f;
    border: 1px solid #323232;
    margin-bottom: 0.5em;
    border-radius: 15px;
    padding: 15px;
}

/* Row/Column layout */
.plaid-row {
  display: flex;
  align-items: center;
  gap: 1em;
}

/*.plaid-col {*/
/*  flex: 1;*/
/*}*/

.plaid-col.col-info {
    width: 55%;
}

.plaid-col.col-select {
    width: 45%;
}
select.plaid-select {
    display: block;
    background: #3a3a3c !important;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwIDE0TDIgN0wzLjQ5OTkgNS41TDEwIDExLjVMMTYuNSA1LjVMMTggN0wxMCAxNFoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg==) !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 12px !important;
    color: #ccc !important;
    border: 1px solid #323232 !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.plaid-col.col-toggle {
    width: 15%;
}
.col-logo img {
  max-width: 50px;
  border-radius: 4px;
}

/* Merchant info */
.merchant-name {
    font-weight: 500;
    margin-bottom: 0px;
    font-size: 14px;
    color: #fff;
}
.merchant-category,
.merchant-date,
.merchant-amount {
  font-size: 13px;
  color: #ccc;
}

/* The toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider.round {
  border-radius: 34px;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #666;
  transition: .4s;
  border-radius: 20px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px; width: 14px;
  left: 3px; top: 3px;
  background-color: #222;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #1dd364;
}
input:checked + .slider:before {
  transform: translateX(20px);
}


/* Container that holds the skeleton rows */
.plaid-skeleton {
  /* Optional: a bit of padding or background color if desired */
  /* background: #1b1b1b;  */
  /* padding: 20px; */
}

/* Each skeleton row */
.skeleton-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-radius: 6px;
  /* If you want a row background, uncomment:
  background: #2c2c2c;
  padding: 15px;
  */
}

/* Circular icon placeholder */
.skeleton-icon {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  border-radius: 50%;
  background: linear-gradient(100deg, #333 0%, #444 50%, #333 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s ease-in-out infinite;
}

/* Info container for lines */
.skeleton-info {
  flex: 1;
}

/* Common skeleton line styling */
.skeleton-line {
  height: 12px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: linear-gradient(100deg, #333 0%, #444 50%, #333 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s ease-in-out infinite;
}

/* Different widths for variety */
.skeleton-line.short {
  width: 50%;
}
.skeleton-line.medium {
  width: 70%;
}

/* Placeholder for the select box */
.skeleton-select {
  width: 100px;
  height: 30px;
  border-radius: 4px;
  background: linear-gradient(100deg, #333 0%, #444 50%, #333 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s ease-in-out infinite;
  margin-left: 15px;
}

/* Keyframes for the smooth left-to-right movement */
@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
