/* File block - Frontend styles */

/* Base styles for file block */
.wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wp--custom--semantic--spacing--200, 16px);
}

.wp-block-file__content-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--wp--custom--semantic--spacing--base, 8px);
}

/* Link styles */
.wp-block-file a:not(.wp-block-file__button) {
  color: var(--wp--custom--semantic--color--text--link--default, var(--wp--preset--color--primary));
  text-decoration: none;
}

.wp-block-file a:not(.wp-block-file__button):hover {
  color: var(--wp--custom--semantic--color--text--link--hover);
  text-decoration: underline;
}

/* Button styles */
.wp-block-file .wp-block-file__button {
  background-color: var(
    --wp--custom--semantic--color--background--action--primary--default,
    var(--wp--preset--color--primary)
  );
  color: var(
    --wp--custom--semantic--color--foreground--action--primary--default,
    var(--wp--preset--color--on-primary)
  );
  padding: var(--wp--custom--semantic--spacing--base, 8px)
    var(--wp--custom--semantic--spacing--200, 16px);
  border-radius: var(--wp--custom--semantic--border--radius--base, 4px);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.wp-block-file .wp-block-file__button:hover {
  background-color: var(--wp--custom--semantic--color--background--action--primary--hover);
  color: var(--wp--custom--semantic--color--foreground--action--primary--hover);
}
